Rank by vote

MindYourCraft

New Member
I would like to be able to rank sites by votes instead of in/out. I would be willing to pay for this if someone could make a plugin to do this.

I would need it where each person could only vote once per day.
 

Mark

Administrator
Staff member
Hello, this is already how it works.

click in = vote.

By default each person can only vote once per day.
 

MindYourCraft

New Member
that is what i am actually trying to get around. I know this sort of defeats the purpose of a topsites stript but I am trying to do a site like http://minecraftservers.net I want them to be able to click and vote for their favorite server every day without the traffic having to come from a website. It is a very niche market and the few sites like this get a massive amount of traffic. Like I said I would be willing to pay for someone to help me with this.
 

Basti

Administrator
Staff member
?a=in&u={$username} would be the link you will need to place on your topsite, works the same way as on the member website. Gateway shows up, vote or no vote -> rredirected back to rankings
 

Mark

Administrator
Staff member
to elaborate just a little more :)

Add this to your stats.html template and style as you like:
Code:
<a href="{$list_url}/index.php?a=in&u={$username}">VOTE</a>
 

MindYourCraft

New Member
thank you...

I guess what I am really trying to do though is rank by vote only, I want to get rid of rank by ins and out completely.
 

MindYourCraft

New Member
ohh gotcha, nice.. guess that makes it a lot easier. What file do I need to edit to get rid of Catagories and ranking method on the side bar? I just want the side bar to show new customers. Sorry this ended up being in the wrong section I thought I was going to need a plug-in to do what I wanted but this script already does pretty much everything for me.
 

Basti

Administrator
Staff member
from wrapper.html, you will need to remove
Code:
        <h3 class="heading">{$lng->main_method}</h3>
        <ul class="category_menu">
              <li><a href="{$list_url}/{$url_helper_method}in{$cat_sort}{$url_tail}">{$lng->rank_hits_in} {$method_in}</a></li>
              <li><a href="{$list_url}/{$url_helper_method}out{$cat_sort}{$url_tail}">{$lng->rank_hits_out} {$method_out}</a></li>
              <li{$pv_hide}><a href="{$list_url}/{$url_helper_method}pv{$cat_sort}{$url_tail}">{$lng->rank_pageviews} {$method_views}</a></li>
            </ul>
       
        <h3 class="heading">{$lng->a_skins_categories}</h3>
        {$category_menu}
and from join_form, edit_form, join_form_existing, stats, table_row, table_top_row and properbly a few other html files you will need to remove category related stuff, such as
Code:
  <label>{$lng->g_category}<br />
    {$categories_menu}
  </label><br />
from the form html files

and
Code:
{$category}
from the other files. That prints their category they are listed in.
 

MindYourCraft

New Member
Thank you that worked great... I know I am asking a lot but.. if you're willing to continue helping there is a few other things I need to do...

I want their Title and banner to go to the stats page instead of their webpage and on the right under their screen shot where it says stats I want to change that to vote which I assume would just be
Code:
<a href="{$list_url}/index.php?a=in&u={$username}">VOTE</a>
but I am not sure where to find the code to change
 

Basti

Administrator
Staff member
I want their Title and banner to go to the stats page instead of their webpage
table_top_row.html, table_top_row_premium.html found 2 times ( title link, banner link )
Code:
href="{$url}" onclick="out(this,'{$username}');"
will become
Code:
href="{$list_url}/{$url_helper_a}stats{$url_helper_u}{$username}{$url_tail}"
table_row.html, table_row_premium.html same change as above



and on the right under their screen shot where it says stats I want to change that to vote
table_row.html, table_row_premium.html
Code:
<a href="{$list_url}/{$url_helper_a}stats{$url_helper_u}{$username}{$url_tail}"><img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /></a>
change to
Code:
<a href="{$list_url}/?a=in&u={$username}">VOTE</a>
here, you were correct, index.php cant be left out though, to keep the url shorter

table_top_row.html, table_top_row_premium.html
Code:
        {$screenshot}<br />
        <img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /><br />{$lng->table_stats} <br /><img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng->up_down}" /></a>
change to
Code:
        {$screenshot}<br />
        <img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /></a><br />
        <a href="{$list_url}/?a=in&u={$username}">VOTE</a><br />
       <img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng->up_down}" />
 

MindYourCraft

New Member
thanks you guys are great!! I have one more question and i'll try to stay out of your hair for awhile...

on the signup page I want to change Title to say "Title & Server address" and is there a way to allow larger banner file sizes?


thank you so much again!
 

Basti

Administrator
Staff member
There are 2 way of doing that.
1. edit the html join_form and replace {$lng->g_title} with your text
2. find in english.php $LNG['g_title'] and change it there.

I properbly would do the first until we have moved all the language stuff into the database so custom edits are not lost during script updates


100kb file should be plenty, has been discussed before. I recommend you listen to what mark said ( little above is the code change) here: http://visiolist.com/community/threads/questions-about-banners.344/#post-2210
 
Top