PDA

View Full Version : Toplist


Pages : 1 2 3 4 5 [6] 7

bonjurkes
10-14-2006, 10:36 PM
Did you edit image.png to change the path to your forums?

chdir('/full/path/to/your/forums');


fixed, thanks :)

DementedMindz
10-15-2006, 09:32 PM
I remove that image.png everytime along with the code it never worked for me even when I tried on my server and a few others.

derekivey
10-15-2006, 09:36 PM
I remove that image.png everytime along with the code it never worked for me even when I tried on my server and a few others.
Does your server have GD? If not then that's probably why, or maybe you didn't change the file to have your forums full path?

DementedMindz
10-15-2006, 09:39 PM
yeah I had gd on every one its what I use for when new members sign up to create the random font and image. Yeah I edited the png but it never worked no big deal though its not hard to remove the code from that page.

sixty6
10-15-2006, 09:43 PM
This works with vB 3.6 as well, I have it installed here:
http://forums.arcadewebmasters.com/toplist.php

DementedMindz
10-16-2006, 10:13 PM
Derek you ever figure out what was up with the emails? when it sends a email it sends this..

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]
Username: Demented

derekivey
10-18-2006, 10:50 PM
Hmm, try editing the toplist_email phrase that is in the Email Body Text phrase group, and put curly braces { } around those variables, and see if that fixes it.

Derek

jellybaby
10-19-2006, 09:06 AM
Derek you ever figure out what was up with the emails? when it sends a email it sends this..

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]
Username: Demented


I changed mine to:

A new site has been submitted to $vboptions[bbtitle]'s Toplist. Please check it and if it looks ok, validate it. Here are the details of it:

Site Name: {$vbulletin->GPC[sitename]}
URL: {$vbulletin->GPC[url]}
Description: {$vbulletin->GPC[description]}
Username: {$vbulletin->userinfo['username']}

To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist.

Hope this helps

Mr Peabody
10-19-2006, 07:13 PM
Hi

Did a upgrade to 3.6.2 and the latest version of Toplist and have just noticed the rating stars are not showing up in firefox where they use to work, they work fine in IE. Anybody else having this issue?
Cheers
Travis

derekivey
10-20-2006, 03:07 AM
What happens when you right click and click properties, and then go to the URL of the image directly?

loonytune15
10-20-2006, 04:18 AM
My only concern so far is that all the arrows are red ones facing down. No equals ones, and i know a couple of sites moved up..

Mr Peabody
10-20-2006, 08:28 PM
What happens when you right click and click properties, and then go to the URL of the image directly?

Ahh yes in firefox if there is a broken image it does not show it at all where as IE shows the image not found box. Seems to be missing images in one of my skins I'll fix it.
Strange though it use to work with this skin (Black and gold) without having to move the images.
Cheers

derekivey
10-20-2006, 11:10 PM
Can both of you guys PM me your url to your sites so I can look at both problems?

Thanks,
Derek

loonytune15
10-21-2006, 07:59 AM
Not sure if that was at me, but my toplist is here:

http://www.monster-designs.com/forums/toplist.php

sross
10-22-2006, 02:11 AM
Hi, I have attached the template "Toplist", i am willing to pay someone to remove 3 columns from the main toplist page. I need [In] [Out] [Rating] removed and the code sent back to me. If it works $20 paypal, I just don't know how to do this edit. PM me Thanks!

Also, willing to pay 35$ for a mod that will allow me to have a link to click that shows all my buttons in 1 single giant block, maybe with like a 5pixel padding..

sorry, i know i could post this is serv requests but would rather deal with folks who know this mod well..

sross
10-22-2006, 02:17 AM
Ok, this one is odd my view counts are stuck on zero and nothing will increase them. From what I can see all my settings are fine and it was working beofre I upgrade.. Thanks for any help! ;)

Blackhat
10-22-2006, 11:05 AM
Does it work for VB 3.6.X ?

loonytune15
10-22-2006, 01:57 PM
Does it work for VB 3.6.X ?

Yes It does..

But there will be a vb 3.6 version released in the very near future..

DementedMindz
10-22-2006, 01:57 PM
Blackhat yes it does

derekivey
10-22-2006, 02:05 PM
Not sure if that was at me, but my toplist is here:

http://www.monster-designs.com/forums/toplist.php
Make sure you added the cron for it. The instructions are in the readme. I installed this on my live site, and had the same problem, I forgot to add the cron. Once you add the cron, click run now and run it. Let me know if that fixes it.

Hi, I have attached the template "Toplist", i am willing to pay someone to remove 3 columns from the main toplist page. I need [In] [Out] [Rating] removed and the code sent back to me. If it works $20 paypal, I just don't know how to do this edit. PM me Thanks!

Also, willing to pay 35$ for a mod that will allow me to have a link to click that shows all my buttons in 1 single giant block, maybe with like a 5pixel padding..

sorry, i know i could post this is serv requests but would rather deal with folks who know this mod well..
Try these templates...

Toplist:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<script type="text/javascript" src="clientscript/toplist.js?version=$toplist_version"></script>
<script type="text/javascript">
// rating phrases.
vbphrase["toplist_cannot_rate_site_no_permission"] = "$vbphrase[toplist_cannot_rate_site_no_permission]";
vbphrase["toplist_cannot_rate_site_no_site_selected"] = "$vbphrase[toplist_cannot_rate_site_no_site_selected]";
vbphrase["toplist_cannot_rate_site_site_does_not_exist"] = "$vbphrase[toplist_cannot_rate_site_invalid_rating]";
vbphrase["toplist_cannot_rate_site_invalid_rating"] = "$vbphrase[toplist_cannot_rate_site_invalid_rating]";
vbphrase["toplist_cannot_rate_site_already_rated"] = "$vbphrase[toplist_cannot_rate_site_already_rated]";
vbphrase["toplist_site_rated_successfully"] = "$vbphrase[toplist_site_rated_successfully]";
vbphrase["toplist_vote"] = "$vbphrase[toplist_vote]";
vbphrase["toplist_votes"] = "$vbphrase[toplist_votes]";
// report phrases.
vbphrase["toplist_report_site_no_permission"] = "$vbphrase[toplist_report_site_no_permission]";
vbphrase["toplist_report_site_no_site_selected"] = "$vbphrase[toplist_report_site_no_site_selected]";
vbphrase["toplist_report_site_site_does_not_exist"] = "$vbphrase[toplist_report_site_site_does_not_exist]";
vbphrase["toplist_report_site_reason_field_blank"] = "$vbphrase[toplist_report_site_reason_field_blank]";
vbphrase["toplist_report_site_report_submitted"] = "$vbphrase[toplist_report_site_report_submitted]";
</script>
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
</head>
<body>
$header
$navbar
<if condition="$disabled != 1">
<if condition="$vboptions['toplist_check_if_code_exists'] == 1 AND $validate_bits != ''">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
<td class="tcat" colspan="4">{$vbphrase['toplist_sites_pending_validation']}</td>
</tr>
<tr align="center">
<td class="alt1" colspan="4">$vbphrase[toplist_sites_pending_validation_desc]</td>
</tr>
<tr align="center">
<td class="thead">$vbphrase[toplist_site_name]</td>
<td class="thead">$vbphrase[toplist_site_url]</td>
<td class="thead">$vbphrase[toplist_edit]</td>
<td class="thead">$vbphrase[toplist_validate]</td>
</tr>
$validate_bits
<tr align="center">
<td class="thead" colspan="7"><div class="smallfont">&nbsp;</div></td>
</tr>
</table>
<br />
</if>
<form action="toplist.php" method="get">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="right">
<tr align="center">
<td>
<div class="smallfont">
$vbphrase[toplist_select_category]:
<select name="cid" onchange="this.form.submit();">
<option selected="selected" value="">$vbphrase[toplist_view_all_sites]</option>
<optgroup label="$vbphrase[toplist_categories]">
$cat_list
</optgroup>
</select>
<input type="submit" class="button" value="$vbphrase[toplist_go]" />
</div>
</td>
</tr>
</table>
</form>
<br /><br />
<if condition="$vboptions['toplist_show_random_sites'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
<td class="tcat" colspan="<if condition="$show['layout'] == 0">4<else />3</if>">{$vbphrase['toplist_random_site']}</td>
</tr>
<tr align="center">
<td class="thead" width="20">$vbphrase[toplist_rank]</td>
<td class="thead">$vbphrase[toplist_site_name_and_description]</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 0">
<td class="thead" width="88">$vbphrase[toplist_button]</td>
</if>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
</tr>
<if condition="$randchk >= 1 OR $num_rows >= 1">
<tr align="center">
<td class="alt2">$rand_rank</td>
<td class="alt1">
<a href="$randsite[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($randsite[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>>$randsite[name]</a><br />$randsite[description]<br />
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND ($show['layout'] == 1 OR $show['layout'] == 2)">
<if condition="$randsite['imagecode'] != ''">
<br /><a href="$randsite[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($randsite[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$randsite[id]" border="0" alt="" /></a>
</if>
</if>
</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 0">
<if condition="$randsite['imagecode'] != ''">
<td class="alt2" width="88"><a href="$randsite[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($randsite[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$randsite[id]" border="0" alt="" /></a></td>
<else />
<td class="alt2" width="88">$vbphrase[toplist_none]</td>
</if>
</if>
<td class="alt1" width="50">$randsite[views]</td>
<tr align="center">
<td class="thead" colspan="4"><div class="smallfont">&nbsp;</div></td>
</tr>
</table>
<br />
</if>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
<td class="tcat" colspan="<if condition="$show['layout'] == 0">4<else />3</if>">{$vboptions[bbtitle]} {$vbphrase['toplist']}</td>
</tr>
<tr align="center">
<if condition="$cat != 1">
<td class="thead" width="20">$vbphrase[toplist_rank]</td>
</if>
<td class="thead">$vbphrase[toplist_site_name_and_description]</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 0">
<td class="thead" width="88">$vbphrase[toplist_button]</td>
</if>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
</tr>
$html
<tr align="center">
<td class="thead" colspan="4">
<div class="smallfont">
<if condition="$vboptions['toplist_enabled'] == 1 AND $permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canaddsites']">
<a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a>
<else />
&nbsp;
</if>
</div>
</td>
</tr>
</table>
<br />
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr align="$stylevar[right]">
<td>$pagenav</td>
</tr>
</table>
<br />
<center>$last_reset</center>
$report_menus
$footer
</body>
</html>


Toplist_Site_Bits:

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><if condition="$show['rank_images']"><span style="float:right"><img src="$stylevar[imgdir_misc]/$rank_image" alt="" /></span></if><a href="$sr[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($sr[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>>$sr[name]</a><br />$sr[description]
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 1">
<if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$sr[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($sr[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a><br />
</if>
</if>
<if condition="$show['edit'] OR $show['delete'] OR $show['report']">
<br />
</if>
<if condition="$show['edit']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]
</if>
<if condition="$show['delete']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
<if condition="$show['report']">
<span id="reportmenu_$sr[id]">
[ <a href="toplist.php?do=report&amp;id=$sr[id]"<if condition="!$show['popups'] OR $show['ajax']"> onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=report&amp;id=$sr[id]','report','menubar=0,resizable=1,width=320,height =220');return false;"</if>>$vbphrase[toplist_report]</a> ] <if condition="$show['popups'] AND !$show['ajax']"><script type="text/javascript"> vbmenu_register("reportmenu_$sr[id]", true); </script></if>
</span>
</if>
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 2">
<if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$sr[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($sr[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a>
</if>
</if>
</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 0">
<if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<td class="alt2" width="88"><a href="$sr[url]"<if condition="$vboptions['toplist_count_out_from_guests'] OR !$show['guest']"> onclick="out($sr[id])"</if><if condition="$vboptions[toplist_open_in_new_window]"> target="_blank"</if>><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a></td>
<else />
<td class="alt2" width="88">$vbphrase[toplist_none]</td>
</if>
</if>
<td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $show['layout'] == 0">1<else />2</if>" width="50">$sr[views]</td>
</tr>


Ok, this one is odd my view counts are stuck on zero and nothing will increase them. From what I can see all my settings are fine and it was working beofre I upgrade.. Thanks for any help! ;)
Can you provide me with a link to your site so I can look into this?

sross
10-22-2006, 08:10 PM
Thanks for the help derek! I tried updating the templates, got an error on the first but the second updated ok. the error on the first was:

[/quote]The following error occurred when attempting to evaluate this template:

The conditional on line 28 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.[/quote]
I saved it anyways and got a blank page. I'll see if i can find the missing bit.

sross
10-22-2006, 08:20 PM
ok found it, for anyone who might need it just put another </if> after:

</tr>
$validate_bits
<tr align="center">
<td class="thead" colspan="7"><div class="smallfont">&nbsp;</div></td>
</tr>
</table>
<br />
</if>

Looking good now, will PM you

sross
10-23-2006, 03:05 AM
fyi- for future reference if anyone needs the info.. my view counts are working now after derek made me realize my toplist.js file wasn't copied over. thanks Derek!

derekivey
10-23-2006, 09:48 AM
fyi- for future reference if anyone needs the info.. my view counts are working now after derek made me realize my toplist.js file wasn't copied over. thanks Derek!
No Problem. I prolly forgot to remove an </if> when I edited your templates.

Derek

loonytune15
10-23-2006, 01:16 PM
cool, i missed the change to the cron :)

furst
10-29-2006, 06:07 AM
Hey Derek, nice hack. I'm just having a problem getting it to allow guests to add sites. Every time I log out and go to "add site" it asks me to log in again. Here are my settings for my Guests usergroup:
http://img9.imagepile.net/img9/18753whatsupdoc.jpg

jellybaby
10-29-2006, 09:15 AM
Everything seems to be working great apart from the random site on the top. When I click on it, it just takes me straight back to the toplist. Any ideas please?

Thanks

dendrob
10-29-2006, 11:20 AM
Derek, any progress reports? If you can please add a "ranking period" to the mod. Right now, it ranks forever. So if anyone joins 3 months ago and another one joins this week and both sites have similar traffic, the newer site will never catch the older site in ranking, although they should be pretty much next to each other. Would be nice if the list would reset automatically every day/week/month based on admin selection.

Great mod, just my list is stagnant and not used because I'm not popularizing it due to the missing features. On the other hand, I have a bussling topsite based on AArdvark.

Also would be great to get rid of the iframe code as it leaves traces on the page under various browsers - in fact it would be great to have just one standardized code to calculate all the statistics.

let us know what you're working on.

derekivey
10-29-2006, 11:26 AM
Hey Derek, nice hack. I'm just having a problem getting it to allow guests to add sites. Every time I log out and go to "add site" it asks me to log in again. Here are my settings for my Guests usergroup:
http://img9.imagepile.net/img9/18753whatsupdoc.jpg
I think I have a line in add_site.php that automatically prints the no permission page for guests. You will have to comment that line out to let guests add sites, I'll prolly delete that line in the next version.

Derek, any progress reports? If you can please add a "ranking period" to the mod. Right now, it ranks forever. So if anyone joins 3 months ago and another one joins this week and both sites have similar traffic, the newer site will never catch the older site in ranking, although they should be pretty much next to each other. Would be nice if the list would reset automatically every day/week/month based on admin selection.

Great mod, just my list is stagnant and not used because I'm not popularizing it due to the missing features. On the other hand, I have a bussling topsite based on AArdvark.

Also would be great to get rid of the iframe code as it leaves traces on the page under various browsers - in fact it would be great to have just one standardized code to calculate all the statistics.

let us know what you're working on.
I am currently working on getting those done. A new Toplist version won't be out for awhile, as I am currently working on updating one of my scripts, and also making a new hack.

Derek

derekivey
10-29-2006, 02:37 PM
A bug has been found in the random site part of the Toplist. Here is how you fix it...

Open toplist.php.

Find:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Replace With:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Find:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Replace With:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Save and Close toplist.php.

Derek

furst
10-29-2006, 08:49 PM
I think I have a line in add_site.php that automatically prints the no permission page for guests. You will have to comment that line out to let guests add sites, I'll prolly delete that line in the next version.

Which line is it that I need to comment out?

loonytune15
10-30-2006, 07:28 AM
A bug has been found in the random site part of the Toplist. Here is how you fix it...

Open toplist.php.

Find:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Replace With:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes` , `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Find:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Replace With:

if ($vbulletin->options['toplist_check_if_code_exists'])
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' AND `added_code` = 1 ORDER BY RAND() LIMIT 1";
}
else
{
$randsite1 = "SELECT `id`, `name`, `url`, `description`, `imagecode`, `in`, `out`, `views`, `votes`, `rating_average` FROM " . TABLE_PREFIX . "toplist_sites WHERE `status` = 'active' ORDER BY RAND() LIMIT 1";
}


Save and Close toplist.php.

Derek

Umm so what was the problem??

derekivey
10-30-2006, 09:56 AM
Which line is it that I need to comment out?
In add_site.php:

// ################ SHOW NO PERMISSION PAGE TO GUESTS ####################
if ($vbulletin->userinfo['usergroupid'] == 1)
{
print_no_permission();
}


Umm so what was the problem??
It was not getting the URL of the random site, and therefore it was a blank link so it just went to the forum index...

jellybaby
10-31-2006, 09:59 AM
Ive done the fix but still not working for me :(

jellybaby
11-04-2006, 09:23 PM
Anyone else have this problem?

derekivey
11-05-2006, 12:01 AM
It should work if you applied the fix. Please PM me FTP information and I will verify that you did it right.

Thanks,
Derek

Lionel
11-08-2006, 06:00 PM
Thank you for the hack. I just installed it and had the random problem. The fix took care of it for me.

Lionel
11-09-2006, 05:15 AM
Hi, why would the email show like that? Thanks
Please check it and if it looks ok, validate it.
Here are the details of it:

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]

jaks
11-11-2006, 03:12 AM
For some reason the voting popup doesn't popup anymore since the last update. The randon Topsite rating popup works just fine on the Topsite page and in the VBA cmps module but not the rest of the sites on the topsite.php.

Anyone else having that prob?

derekivey
11-12-2006, 02:01 PM
Hi, why would the email show like that? Thanks
Here's how to fix it. I think I forgot to fix it in 2.0.0.

Edit the phrased called toplist_email under the email body text phrase group.

Change it's contents from:

A new site has been submitted to $vboptions[bbtitle]'s Toplist.
Please check it and if it looks ok, validate it.
Here are the details of it:
Site Name: $vbulletin->GPC[sitename]
URL: $vbulletin->GPC[url]
Description: $vbulletin->GPC[description]
Username: {$vbulletin->userinfo['username']}
To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist.


To:

A new site has been submitted to {$vboptions[bbtitle]}'s Toplist.
Please check it and if it looks ok, validate it.
Here are the details of it:
Site Name: {$vbulletin->GPC[sitename]}
URL: {$vbulletin->GPC[url]}
Description: {$vbulletin->GPC[description]}
Username: {$vbulletin->userinfo['username']}
To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist.


Click Save.

For some reason the voting popup doesn't popup anymore since the last update. The randon Topsite rating popup works just fine on the Topsite page and in the VBA cmps module but not the rest of the sites on the topsite.php.

Anyone else having that prob?
I'll look into this. I probably forgot to update the vBadvanced module for 2.0.0.

Derek

Lionel
11-12-2006, 03:35 PM
Thanks for the fix.

jellybaby
11-12-2006, 04:48 PM
I have it sorted now thanks

derekivey
11-12-2006, 05:04 PM
No Problem.

jaks
11-12-2006, 11:01 PM
If I right click on a rate this site link on toplist.php and select open in new window the voting thing will open but not if you just click it. Weird how the random ones work fine but the regular ones don't. Same thing in Firefox and IE.

michaelsilvia
11-14-2006, 12:26 AM
3.6.3 done yet? Excited to see it!

Mike

derekivey
11-14-2006, 12:34 AM
No, I haven't gotten around to finishing it. Just go ahead and use the current version here, as it will work fine. The only changes in the 3.6 version is that it uses the admin message system to tell new installers to remember to set the settings and stuff, and I also added the version check url, and thread url to the product.

Derek

jaks
11-14-2006, 07:04 AM
Any idea about my rating link prob Derek? You must be a busy boy these days. If you need a beta tester for your really cool hack I'm game.

derekivey
11-14-2006, 09:51 AM
I'll look into it hopefully today.

Derek

Mecho
11-15-2006, 12:13 AM
Wow . perfect .

Installed in vb 3.6.3 :)

derekivey (https://vborg.vbsupport.ru/member.php?u=81169) i'm really appreciate coz of it

Mecho
11-15-2006, 07:21 PM
hi .

is it possible to add this option below Upload button that users can upload their logos in their own server or ... and send URL of it ?

that would be great if u can add this option .

and another thing that email for validation is sometimes send and often not !!

Thanks for this great mod .

RWDF1
11-15-2006, 09:03 PM
I seem to have a problem with the random site bit. The site listed, when you click it, it points to the toplist url and not the url of the site. in the toplist, list, the links work fine, just the random link dosent work.

edit- I have done the toplist.php edit but it still isnt working

zentz
11-16-2006, 10:19 PM
im a n00b and cant get this work. i didnt understand these steps:

4. Edit each usergroup's permissions and set the Toplist Permissions to what ever you want for each usergroup.

5. Adjust the settings to your liking under the Toplist Category on the AdminCP Nav (dont forget to set the IN url!).

Where is the Toplist Category ? Where to set the IN url ?

Help is well appreciated!

Mecho
11-17-2006, 08:40 AM
4. Edit each usergroup's permissions and set the Toplist Permissions to what ever you want for each usergroup.

IN Admin Control panel > users group > user group manager > Edit ( users group one by one )


5. Adjust the settings to your liking under the Toplist Category on the AdminCP Nav (dont forget to set the IN url!).
Where is the Toplist Category ? Where to set the IN url ?


In Admin Control panel > Toplist ( when u was done with upload XML this option added in panel Under VB OPTION ) > Catagories .

and about Set IN url . i think u dont need to set it ( i didnt find any option ) but it was set automaticly .

regards

derekivey
11-17-2006, 09:31 AM
hi .

is it possible to add this option below Upload button that users can upload their logos in their own server or ... and send URL of it ?

that would be great if u can add this option .

and another thing that email for validation is sometimes send and often not !!

Thanks for this great mod .
I am planning on adding this to the next version.

I seem to have a problem with the random site bit. The site listed, when you click it, it points to the toplist url and not the url of the site. in the toplist, list, the links work fine, just the random link dosent work.

edit- I have done the toplist.php edit but it still isnt working
Can you send me FTP details so I can take a look at your files?

IN Admin Control panel > users group > user group manager > Edit ( users group one by one )



In Admin Control panel > Toplist ( when u was done with upload XML this option added in panel Under VB OPTION ) > Catagories .

and about Set IN url . i think u dont need to set it ( i didnt find any option ) but it was set automaticly .

regards
Actually, the setting is there, so I'm not sure how yours was set automatically, try clicking an IN link and see if it works.

Derek

derekivey
11-17-2006, 09:32 AM
Any idea about my rating link prob Derek? You must be a busy boy these days. If you need a beta tester for your really cool hack I'm game.
Sorry for the delay, I will be looking into this tonight hopefully. I got tied up with lots of homework and projects for school these past days, so I should be able to look at it tonight.

Derek

Mecho
11-17-2006, 04:07 PM
I am planning on adding this to the next version.

that would be great . i have these suggestions too for next release :

1 - URL of Other Sites button .

2 - ADD SITE is so Small .. so i think its hard for users to find it in top list . if u can make button for it that would be great .

3 - i allow guests to ADD Sites , so i think for someone like me that would be great if u can add Email require for quests or ... who wants to submit .

Hmmm , i have nothing more in my mind right now but if u think these suggestions help u for next version i can think of it and if i find more i will tell u . anyway i loved this mod and its so useful for me .



Actually, the setting is there, so I'm not sure how yours was set automatically, try clicking an IN link and see if it works.
Derek

oops . i saw it and it doest work . it set this link automaticly :

http://www.mechodownload.com/forum/in.php?id=20

so , i set IN URL in Toplist option ( In Redirect URL ) to my site . but nothing changes !

and 2 problem else :

1 - Select All Button is not working !! is there anybody who has this problem ?
2 - my user name is " Mecho & Sifeet " i didnt received email for validation for all submitted , so i just turn off PM option for it . but system can not realize my user name .. !! and i got this error :

Fatal error:

* The following users were not found:
1. Mecho &amp

Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 763

i will appreciate if u can help me to fix these problems .

Thanks in advance

derekivey
11-17-2006, 07:12 PM
that would be great . i have these suggestions too for next release :

1 - URL of Other Sites button .

2 - ADD SITE is so Small .. so i think its hard for users to find it in top list . if u can make button for it that would be great .

3 - i allow guests to ADD Sites , so i think for someone like me that would be great if u can add Email require for quests or ... who wants to submit .

What do you mean by #1? Can you please explain in further detail? For #2, I'll probably add a link to the top of the Toplist so people don't have to scroll to the bottom to see the link.

#3 I will make the change in the next version.


oops . i saw it and it doest work . it set this link automaticly :

http://www.mechodownload.com/forum/in.php?id=20

so , i set IN URL in Toplist option ( In Redirect URL ) to my site . but nothing changes !

Seems fine now... Clicking that takes me to your forum.


and 2 problem else :

1 - Select All Button is not working !! is there anybody who has this problem ?
2 - my user name is " Mecho & Sifeet " i didnt received email for validation for all submitted , so i just turn off PM option for it . but system can not realize my user name .. !! and i got this error :
#1 - Where is the select all button you are talking about?

#2 - I will look into this.

Derek

Mecho
11-17-2006, 08:58 PM
What do you mean by #1? Can you please explain in further detail?

I meant users can put the links of their button , not upload in our host . ( i said it before but i just said all suggestions together .. )


For #2, I'll probably add a link to the top of the Toplist so people don't have to scroll to the bottom to see the link.

#3 I will make the change in the next version.


Thanks Alot . i think next version will be really greater and perfect .


Seems fine now... Clicking that takes me to your forum.


yeah . its fine . i didnt checked it .


#1 - Where is the select all button you are talking about?


when site added successfully , 3 code shows up for users that they must put one of them in their site . above of each codes is one button named " Select ALL " . i meant that .



#2 - I will look into this.

Derek

Thanks for all ur supports and attention .

Regards ( Sorry for my bad English )

derekivey
11-18-2006, 03:16 AM
I meant users can put the links of their button , not upload in our host . ( i said it before but i just said all suggestions together .. )



Thanks Alot . i think next version will be really greater and perfect .



yeah . its fine . i didnt checked it .



when site added successfully , 3 code shows up for users that they must put one of them in their site . above of each codes is one button named " Select ALL " . i meant that .




Thanks for all ur supports and attention .

Regards ( Sorry for my bad English )
Ok I'll look into these.

zentz
11-18-2006, 01:13 PM
so how do i add toplist to be part of my forum ?

I want it to appear as a child forum, for example:

General Forums
- Chat
- Love
- Toplist (I want it here)
- sex

derekivey
11-18-2006, 02:08 PM
so how do i add toplist to be part of my forum ?

I want it to appear as a child forum, for example:

General Forums
- Chat
- Love
- Toplist (I want it here)
- sex
This is currently not possible.

Sorry.

Derek

derekivey
11-19-2006, 02:38 AM
Any idea about my rating link prob Derek? You must be a busy boy these days. If you need a beta tester for your really cool hack I'm game.
Hmm, can you show me a screen shot or something of what happens? It seems to work fine on my test board... When you just click it, the normal vB drop down thing should come down to allow you to rate the site.

ubblite
11-19-2006, 09:00 AM
Hey Derekivey, I have a suggestion:

Can you make this hack so we can turn off the uploading of images completely, like a setting in the usercp?

Another nice feature would be the ability to turn off the "In", "Out" & "Views" columns as I'd rather not use them.

Thanks

derekivey
11-19-2006, 11:42 AM
Hey Derekivey, I have a suggestion:

Can you make this hack so we can turn off the uploading of images completely, like a setting in the usercp?

Another nice feature would be the ability to turn off the "In", "Out" & "Views" columns as I'd rather not use them.

Thanks
Sure, I will add the feature to turn of uploading images... but those other ones, I decided not too add because it's too hard to get the alt classes to look right, if I did that they would all not alternate, some would be the same as the ones next to them, so I suggest you just edit the templates if you want to remove those.

Derek

jaks
11-20-2006, 09:50 PM
Hmm, can you show me a screen shot or something of what happens? It seems to work fine on my test board... When you just click it, the normal vB drop down thing should come down to allow you to rate the site.

Really don't need a screenshot but i can point you to the page. The link for rating sites from the regular not the random don't work unless it's right clicked and you select open in New window.

I made it so that guests can vote but I see that option doesn't seem to work. Is that a bug aswell?

I'll pm you an account login for now. Here is the link for my top site. http://www.trulyunusual.com/wards/toplist.php Like I said the random sites are ratable by just clicking but all the rest in IE and Firefox have to be open in a new window manually.

jaks
11-21-2006, 10:45 AM
My bad :( When I reverted the templates it didn't carry over to the child styles hense the ratings no worky.

Thanks for checking this out for me Derek. :)

zentz
11-21-2006, 07:29 PM
how do i create the scheduled task to have the toplist reset every week ?

thanks

derekivey
11-21-2006, 07:36 PM
how do i create the scheduled task to have the toplist reset every week ?

thanks
AdminCP --> Scheduled Tasks --> Add New Scheduled Task

Make sure to use the info I specified in the readme file.

Derek

redlabour
11-21-2006, 08:20 PM
Any new Release for 3.6.x Series ?

zentz
11-21-2006, 09:36 PM
i added Toplist Update Rank Cache and Toplist In Code Validation per instruction in the readme file but the toplist is not updating. which one of those is for the toplist reset ?

derekivey
11-22-2006, 02:05 AM
Any new Release for 3.6.x Series ?
Not yet. Just use the 3.5 version for now, as it works fine. The only difference in the 3.6 version is just adding the version check url for that new feature, and small things like that.

derekivey
11-22-2006, 02:07 AM
i added Toplist Update Rank Cache and Toplist In Code Validation per instruction in the readme file but the toplist is not updating. which one of those is for the toplist reset ?
What do you mean the Toplist is not updating?

zentz
11-22-2006, 12:20 PM
What do you mean the Toplist is not updating?

sorry i meant to say the toplist (hits in, hits out, views) is not getting reset.

derekivey
11-22-2006, 01:36 PM
How often did you set the cron to reset the Toplist?

zentz
11-24-2006, 12:00 AM
actualy the most probably is that i didnt even set the cron to reset the toplist. all i did set up is those two scheduled tasks from the readme file, i thought that they will do the reseting. how do i set the cron to reset the toplist ? what command will do the reset ?

derekivey
11-24-2006, 09:59 PM
Sorry, I forgot that I didn't do the cron file to reset the toplist yet. It will be in the next version. For now, you should just reset it from the AdminCP.

Derek

hotcomputers
11-27-2006, 07:21 PM
please tell me how do i add more categories
I have looked all over the admin area

thanks in advance

---------------

Sorry i have seen now

works very good with 3.6.3

Thanks

derekivey
11-28-2006, 02:25 AM
AdminCP --> Toplist --> Categories

DarkDraco07
11-29-2006, 03:50 AM
Not yet. Just use the 3.5 version for now, as it works fine. The only difference in the 3.6 version is just adding the version check url for that new feature, and small things like that.

im trying to use this on 3.6 but i cant add the cron jobs because it needs a variable not stated in the text =/

derekivey
11-29-2006, 10:03 AM
Just type in the filename without the php extension or something, the var name isn't that important...

Derek

redlabour
11-29-2006, 11:05 AM
Does not work with 3.6.4 because the Installinstructions do not describe how to add the Cronjobs with 3.6.x ......

It allways told me that Fields are empty or a "Phrase" is not correct if i try to add them at AdminCP.

Update : Have fixed it for me after seen the last Posting !

Please make a clean Update to 3.6.x with new Installinstructions that are more detailed please.

Another Bug:

If a User has entered a new Site he get?s 3 Code. A small Button, THEN NOTHING, and a Textlink.

In the middle (THEN NOTHING) there is a URL created (http://www.politikstube.de/forum/images/toplist/buttons/dynamic/image.png?id=4) that only gives me this if i enter it into a Browserwindow :

escape_string($_GET['id']) . "' LIMIT 1"; $sqlr = $db->query_read($sql); $sr = $db->fetch_array($sqlr); if ($vbulletin->options['toplist_ranking_method'] == 0) { $order = '`in`'; } else if ($vbulletin->options['toplist_ranking_method'] == 1) { $order = '`out`'; } else if ($vbulletin->options['toplist_ranking_method'] == 2) { $order = '`rating_average`'; } else if ($vbulletin->options['toplist_ranking_method'] == 3) { $order = '`views`'; } else { $order = '`in`'; } $rank1 = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites ORDER BY " . $order . " DESC"; $rank2 = $db->query_read($rank1); $i = 1; while($rank3 = $db->fetch_array($rank2)) { if ($rank3['id'] == $_GET['id']) { $rank = $i; } else { $i++; } } // ############################# CREATE IMAGE ############################ imagestring($image, $font, 44, 28, $rank, $color); imagestring($image, $font, 52, 42, $sr['in'], $color); imagestring($image, $font, 62, 56, $sr['out'], $color); imagestring($image, $font, 52, 70, $sr['rating_average'], $color); imagestring($image, 2, 5, 83, $sr['name'], $color); imagepng($image); imagedestroy($image); ?>

Somethings not working there - what should this middle Image be ???

derekivey
11-29-2006, 07:05 PM
Do you have GD installed? Also when I go to that URL it gives me a 404 page...

redlabour
11-30-2006, 05:01 AM
Also when I go to that URL it gives me a 404 page...

Yes because i have uninstalled this Hack.

DarkDraco07
11-30-2006, 09:50 PM
works great now. just wondering how to make the marquee thats on the forum home appear in the header/footer instead =/

DarkDraco07
11-30-2006, 10:48 PM
i have a request. a time-out system for the toplist. set them for xx days before they automatically go inactive.

derekivey
12-01-2006, 12:34 AM
Ok, I'll see about adding that.

Would they then reactivate the site themselves, or would the admin do it?

DarkDraco07
12-01-2006, 08:52 PM
i would use it as the admin having to reactivate it.

also adding the forum home marquee as header/footer on all pages would be nice too ^_^

derekivey
12-01-2006, 10:35 PM
i would use it as the admin having to reactivate it.

also adding the forum home marquee as header/footer on all pages would be nice too ^_^
Ok, I'll try and have a setting to allow people to choose where they want it in the next version.

Derek

DarkDraco07
12-01-2006, 10:45 PM
ty ty ^_^
any ETA on next version release?

derekivey
12-02-2006, 10:52 PM
No, I do not have an ETA. It won't be for awhile though, because I am working on my newest hack that I am making.

Derek

loonytune15
12-06-2006, 01:51 AM
I moved servers yesterday and none of the site image files would move. Kept telling me permission denied.

Then when I tried to replace the images it gave me the following error:

Warning: getimagesize(/hsphere/local/home/monster/monster-designs.com/forums/images/toplist/buttons/sites/d8lWJL2QSLgTWIo4CfGF): failed to open stream: No such file or directory in /admincp/toplist_admin.php on line 479


So do I have to start again??

derekivey
12-06-2006, 02:02 AM
Did you copy all the files over from your old server?

Also, make sure images/buttons/sites/ is chmodded to 777.

Derek

loonytune15
12-06-2006, 03:00 AM
I cant copy the files in the sites folder. I also cant change the permissions of that folder.

derekivey
12-06-2006, 09:53 AM
You might have to have your old host send you a zip folder of them, it's probably owned as nobody and not letting your ftp username copy them.

Derek

loonytune15
12-06-2006, 10:30 AM
But should that be happening?

angkor408
12-06-2006, 10:49 PM
For some reason under " Randsom site" when I click on my banner it take to a about:blank page.


Under: KHMERCLUB.COM Toplist it seem to open the url page correctly.

Here my link to the toplist:

http://www.khmerclub.com/toplist.php

loonytune15
12-07-2006, 01:52 AM
Is there a query I can run to remove all button images?

derekivey
12-07-2006, 02:10 AM
But should that be happening?
Yes, thats just the way PHP works. It saves them as nobody because PHP runs as nobody.

Is there a query I can run to remove all button images?
UPDATE toplist_sites SET imagecode=''

derekivey
12-07-2006, 02:14 AM
For some reason under " Randsom site" when I click on my banner it take to a about:blank page.


Under: KHMERCLUB.COM Toplist it seem to open the url page correctly.

Here my link to the toplist:

http://www.khmerclub.com/toplist.php
Try this fix...

https://vborg.vbsupport.ru/showpost.php?p=1106841&postcount=1281

loonytune15
12-07-2006, 03:01 AM
Yes, thats just the way PHP works. It saves them as nobody because PHP runs as nobody.


UPDATE toplist_sites SET imagecode=''

I just remeber the toplist saving the images as 1.gif and 2.gif and so forth which matched the site number.

The query worked, and made the buttons not there, but i still cant upload any images to get them to work..

derekivey
12-07-2006, 09:44 AM
Nope... it's never did that. It's always been a random string of letters and numbers. If you want, I can take a look at your permissions and stuff for that folder. PM me FTP info if you want me to look.

Derek

angkor408
12-09-2006, 05:24 PM
U the man :) Thanx it work like a charm. Angkor


;) ;) :D :surprised: :rolleyes: :classic: :pirate:

Try this fix...

https://vborg.vbsupport.ru/showpost.php?p=1106841&postcount=1281

Ohiosweetheart
12-10-2006, 10:34 PM
for some odd reason, the marquee stopped scrolling. I don't know why, as the settings seem to be correct.

any ideas?

derekivey
12-10-2006, 10:54 PM
Hmm, odd... Can you post the link to your site so I can take a look?

Thanks,
Derek

Ohiosweetheart
12-10-2006, 10:59 PM
Hmm, odd... Can you post the link to your site so I can take a look?

Thanks,
Derek

here you go, thank you for looking

http://www.top-vb.com/

dendrob
12-11-2006, 10:28 AM
Hi, I uninstalled the hack few days ago, but I'm getting db errors, Derek any idea how to fix this?

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT `id` FROM vb_toplist_clicks WHERE `ip` = '74.6.86.xxx' AND `site_id` = '5';

MySQL Error : Table 'ob_community.vb_toplist_clicks' doesn't exist Error Number : 1146
Date : Monday, December 11th 2006 @ 01:25:21 AM
Script : http://www.orchidboard.com/community/in.php?id=5
Referrer :
IP Address : 74.6.86.xxx
Username : Unregistered
Classname : vb_database

Ohiosweetheart
12-11-2006, 12:35 PM
for some odd reason, the marquee stopped scrolling. I don't know why, as the settings seem to be correct.

any ideas?

Hmm, odd... Can you post the link to your site so I can take a look?

Thanks,
Derek

here you go, thank you for looking

http://www.top-vb.com/

Did you get a chance to look Derek?

derekivey
12-11-2006, 06:38 PM
Hi, I uninstalled the hack few days ago, but I'm getting db errors, Derek any idea how to fix this?

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT `id` FROM vb_toplist_clicks WHERE `ip` = '74.6.86.xxx' AND `site_id` = '5';

MySQL Error : Table 'ob_community.vb_toplist_clicks' doesn't exist Error Number : 1146
Date : Monday, December 11th 2006 @ 01:25:21 AM
Script : http://www.orchidboard.com/community/in.php?id=5
Referrer :
IP Address : 74.6.86.xxx
Username : Unregistered
Classname : vb_database
What page are you seeing the errors on?

derekivey
12-11-2006, 06:39 PM
Did you get a chance to look Derek?
I'll take a look in a second.

Derek

Ohiosweetheart
12-11-2006, 07:19 PM
Well, my server is down at the moment, so it'll have to wait now.

Ohiosweetheart
12-11-2006, 08:53 PM
Derek my site is back up, if you could please look when you have a chance. The marquee is still not working.

http://www.top-vb.com/

derekivey
12-12-2006, 01:49 AM
Looking into it. It seems to be caused by a Javascript error that I am trying to narrow down.

derekivey
12-12-2006, 01:52 AM
Ok, it seems to be caused by the Webmaster's Hideout site. I guess the javascript doesn't like the '. Can you try editing the site name and deleting the ' and see if that fixes it? I'm going to make it automatically escape ' in the next version.

Thanks,
Derek

Ohiosweetheart
12-12-2006, 08:23 AM
ok I'll try that

Ohiosweetheart
12-12-2006, 08:30 AM
That did it derek, thank you! wow, who would have thought?

Another 2 questions please?

1) How do I remove someone's button image from the toplist? I have a broken image and can't find where to remove it

2) Why would sites keep UNvalidating in the toplist when the linking code is clearly on their site, and on the url submitted?

Thanks again!

derekivey
12-12-2006, 10:08 AM
That did it derek, thank you! wow, who would have thought?

Another 2 questions please?

1) How do I remove someone's button image from the toplist? I have a broken image and can't find where to remove it

2) Why would sites keep UNvalidating in the toplist when the linking code is clearly on their site, and on the url submitted?

Thanks again!
1. Right now you will have to remove the string of random characters from the image field in the toplist_sites table. I will have a check box in the next version to allow them to be deleted. Right now, the way it works is that it just deletes it when they upload a new image.

2. Are you running the cron script that automatically checks them every day?

Ohiosweetheart
12-12-2006, 10:27 AM
hmmm I'm not sure... I haven't touched any settings since I installed this. I'm just wondering why it would knock them off the list when they DO have the code on their sites.

b6gm6n
12-12-2006, 10:15 PM
can i ask.... to rate a site...can guests do this?... im sure i've set this up correctly, just seems people cannot rate or cannot be bothered :)

-b6

derekivey
12-13-2006, 01:23 AM
hmmm I'm not sure... I haven't touched any settings since I installed this. I'm just wondering why it would knock them off the list when they DO have the code on their sites.
Hmm... is it the exact in link URL? http://www.yoursite.com/path_to_forums/in.php?id=x

Also, is it happening for all sites or just certain sites?


can i ask.... to rate a site...can guests do this?... im sure i've set this up correctly, just seems people cannot rate or cannot be bothered

-b6
Not currently. I never allowed it because it is kind of hard to track guests and make sure they don't keep voting for a site. I'm thinking about changing this in the next version and have a new database table to log the IPs of all guest voters and keep track of them that way. I would have it limit them to only vote X number of times (admin setting). Might do the same for the add site page too... let guests add sites, and restrict editing and deletion by their ipaddress. I'm still thinking about this though...

Ohiosweetheart
12-13-2006, 12:34 PM
Hmm... is it the exact in link URL? http://www.yoursite.com/path_to_forums/in.php?id=x

Also, is it happening for all sites or just certain sites?


Hi Derek, no it's not happening with all sites.. but the ones it is happening with, I've followed the link to thier sites, and there sits the link to the toplist just as plain as day, with their link code included.

Now, this morning I'm having this problem.... When I tried to upload a button image for a site I got this error:

Warning: move_uploaded_file(images/toplist/buttons/sites/n62onGm5C3u60T0ai4wr) [function.move-uploaded-file (http://www.top-vb.com/function.move-uploaded-file)]: failed to open stream: Permission denied in /edit_site.php on line 157

Warning: move_uploaded_file() [function.move-uploaded-file (http://www.top-vb.com/function.move-uploaded-file)]: Unable to move '/tmp/php6r3flD' to 'images/toplist/buttons/sites/n62onGm5C3u60T0ai4wr' in /edit_site.php on line 157

Warning: getimagesize(images/toplist/buttons/sites/n62onGm5C3u60T0ai4wr) [function.getimagesize (http://www.top-vb.com/function.getimagesize)]: failed to open stream: No such file or directory in /edit_site.php on line 159


and the image isn't working, just a red x. any ideas?

derekivey
12-13-2006, 06:35 PM
I will look into the issue with it disabling certain sites. For now, I suggest you disable the cron from running until I get it fixed.

CHMOD 777 images/toplist/buttons/sites

Derek

Ohiosweetheart
12-13-2006, 08:35 PM
Ok derek I'll do that. But what about my other issue above? It won't let me add buttons now.

b6gm6n
12-13-2006, 11:33 PM
Del... it'll be great anyways... i'd like to know i could remove the column or have it more functional for guests, i have loads of passtru traffic...

-b6

derekivey
12-16-2006, 05:41 PM
Ok derek I'll do that. But what about my other issue above? It won't let me add buttons now.


CHMOD 777 images/toplist/buttons/sites
Derek

Do what I said above and it should work.

Derek

Ohiosweetheart
12-16-2006, 06:22 PM
I saw that after I posted, sorry. That problem is fixed now too.

Now, if I could just do something about it constantly knocking this ONE site off the list, I'll be a happy camper. The site has the code on it's forumhome, I put it there myself. Yes I'm constantly having to edit this site in the toplist to make it active on the list again... had to do it 3 times just today. :(

Ohiosweetheart
12-16-2006, 06:26 PM
I will look into the issue with it disabling certain sites. For now, I suggest you disable the cron from running until I get it fixed.

which one? the "in code validation"?

derekivey
12-18-2006, 02:24 AM
Yup. That one...

Ohiosweetheart
12-18-2006, 04:24 AM
Yup. That one...
lol.... I disabled that one... kicked the same site off twice more afterwards

Ohiosweetheart
12-19-2006, 09:06 PM
I've been getting multiple database errors for 3 days in a row now. 47 of them within a one hour period just this afternoon!!!

This is what I got today:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/topvb/public_html/includes/class_core.php on line 273


any idea what's going on? is there a fix for this??

derekivey
12-19-2006, 09:09 PM
That has nothing to do with the Toplist hack... is your MySQL server down? Or did you recently change your username or password for the SQL database, and forget to upgrade the vBulletin config?

Ohiosweetheart
12-19-2006, 11:05 PM
That has nothing to do with the Toplist hack... is your MySQL server down? Or did you recently change your username or password for the SQL database, and forget to upgrade the vBulletin config?
nope, neither. If the latter was the case I wouldn't be able to use the site at all.

odd............

derekivey
12-21-2006, 10:49 PM
nope, neither. If the latter was the case I wouldn't be able to use the site at all.

odd............
Did you get it fixed? Seems to be working at the site you linked me to a few pages back... http://www.top-vb.com/top_vbulletin.html

Ohiosweetheart
12-21-2006, 11:10 PM
the site has never been down. I'm just getting multiple database errors... 29 today, in fact. I've emailed my host, but no answer from them so far

derekivey
12-21-2006, 11:12 PM
No, I'm just saying that I don't see any errors? What page did it say the errors were on?

Ohiosweetheart
12-21-2006, 11:19 PM
ugh, I deleted the ones I got today already. When I get the next batch, I'll post it here.

thanks Derek

sandrodz
12-23-2006, 02:34 PM
Hi, installed it works fine with 3.6.4 :)

http://www.flunkme.com/toplist.php

what does "view" section count?? isn't it the same as "out" - I just don't understand... and in addition view and out for the same site are different :) how can that be? maybe a little bug?

How do I disable counting "view"s?

is the toplist thing server intensive?

DementedMindz
12-23-2006, 02:43 PM
no its not intensive at all but i do agree that there is no point cause they both do show the same numbers so having the same thing is pointless

sandrodz
12-23-2006, 03:21 PM
DementedMindz
so its good idea to remove views in the next release ;)

another issue, problem is that I have two different numbers for those fields! I noticed that "in" increases 2X for each click, "view" acts normally. What could be the cause? how can that be fixed?


p.s. after several resets it works fine again... hm... very strange!

sandrodz
12-23-2006, 07:28 PM
also arrows up down don't work.. it always shows down :S

sandrodz
12-24-2006, 09:03 AM
here screenshot of what I'm talkin about! Views and OUT show different results, how can that be??
http://img85.imageshack.us/img85/716/untitled1kb0.gif

derekivey
12-24-2006, 04:01 PM
Hi, installed it works fine with 3.6.4 :)

http://www.flunkme.com/toplist.php

what does "view" section count?? isn't it the same as "out" - I just don't understand... and in addition view and out for the same site are different :) how can that be? maybe a little bug?

How do I disable counting "view"s?

is the toplist thing server intensive?
Views might be messed up. I'll have to look into it. It's supposed to count all pageviews to sites that have added the code that counts them.

also arrows up down don't work.. it always shows down :S
Was this after you reset the toplist or when did this start happening? They should show a minus sign which means there was no change in their rank.

DementedMindz
12-24-2006, 04:02 PM
sandrodz this is not my mod its dereks he provides great support for it so please dont pm asking for help. also is your cron running?

sandrodz
12-24-2006, 05:13 PM
DementedMindz
sorry :) okay I fixed most of the stuff, no problem at all :)

derekivey
I fixed most of things.... http://www.flunkme.com/toplist.php I removed all the "out" section and changed it to show "view"s only. Out thing was messed up, sometimes it counted 2X for one click! Views work well, so I stick to it :)

Also I did couple of the modifications to the code. Nothing special, just tailored it to my needs :)

awesome script, thanks!!

derekivey
12-27-2006, 08:31 PM
DementedMindz
sorry :) okay I fixed most of the stuff, no problem at all :)

derekivey
I fixed most of things.... http://www.flunkme.com/toplist.php I removed all the "out" section and changed it to show "view"s only. Out thing was messed up, sometimes it counted 2X for one click! Views work well, so I stick to it :)

Also I did couple of the modifications to the code. Nothing special, just tailored it to my needs :)

awesome script, thanks!!
No Problem. :)

Shazz
12-27-2006, 09:04 PM
/me installed

squishi
01-01-2007, 08:37 AM
Hello,

some banner images of the toplist sites have disappeared on my toplist.
How can that be?!

derekivey
01-01-2007, 03:33 PM
Hello,

some banner images of the toplist sites have disappeared on my toplist.
How can that be?!
Screenshot please? Not sure which banner images you mean...

Shazz
01-01-2007, 03:44 PM
thanx for the support derekivey :)

derekivey
01-01-2007, 03:54 PM
No Problem :).

angkor408
01-01-2007, 05:41 PM
Hi, I having issue when you trying to add a site and place the image logo to your homepage. For some reason it doesn't link property.

Site Edited Successfully
Please add this html code to your site, so that you can get "in hits" on the toplist:

<a href="http://www.khmerclub.com/in.php?id=6" target="_blank"><img src="http://www.khmerclub.com/images/toplist/buttons/toplist.gif" border="0" alt="KHMERCLUB.COM" /></a>

I copy this code and place on the site but is not linking to the topsite page.
This is the link: http://www.khmerclub.com/in.php?id=6.

If I click on the image link it just keep clicking going to the same page.


Here the test account I had created.

http://www.khmerclub.com/toplist.php
go to the one that say spykill.org

username:test
password:test456


Thank!

Angkor

derekivey
01-01-2007, 05:43 PM
You didn't set the In link url setting. It needs to be the URL to your site, forums, or whatever else you want it to be.

Derek

angkor408
01-01-2007, 05:46 PM
derekivey, Thank for your quick reaspond! Which .php or html file can I edit to link to my topsite?

Are you talking about the on in Toplist_HTML_Code?

I found this: <td><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>

</tr>
<tr>
<td><textarea name="code1" cols="40" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>

Where can I edit to link to my topsite?

angkor408
01-01-2007, 07:57 PM
I think it is working now when I edit this link. Thank! Angkor

I edit from in.php to /forums/toplist.php

I found this: <td><a href="$vboptions/forums/[b]toplist.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>

mac27
01-02-2007, 03:34 AM
What code removes the image that shows the rank and stuff on an image. It seems that only sites that use the image to link back keep getting deactivated from the toplist.

chatfan
01-02-2007, 03:55 PM
Decided to make a little template hack, not complete yet but looks good on my site. Wanted bigger buttons (450x100)

Really like this toplist, works very well. All i need now is for someone to figure out how to fix the random button to fit my layout lol.

My toplist (http://www.palaceplanet.net/forum/toplist.php)

posted the template hacks in template mods, link is in the addon box.

DementedMindz
01-02-2007, 04:24 PM
Decided to make a little template hack, not complete yet but looks good on my site. Wanted bigger buttons (450x100)

Really like this toplist, works very well. All i need now is for someone to figure out how to fix the random button to fit my layout lol.

My toplist (http://www.palaceplanet.net/forum/toplist.php)

posted the template hacks in template mods, link is in the addon box.

why would you need to edit the code when all you have to do is go in admincp and change the Toplist Layout since its already included? Use the large buttons one and your fine.

Toplist Layout
Select the layout you would like to use below. This affects the toplist.php page only.

chatfan
01-02-2007, 06:02 PM
I don't like the large button one.

squishi
01-02-2007, 08:05 PM
Screenshot please? Not sure which banner images you mean...

I was referring to what you call buttons, I suppose.
The column that is titled banner, to the right of the site link and description.
For some sites these banners have disappeared both in the backend and in the toplist.

DementedMindz
01-02-2007, 10:26 PM
I don't like the large button one.

to be honest it looks no different then what you have on your site.

derekivey
01-03-2007, 01:47 AM
derekivey, Thank for your quick reaspond! Which .php or html file can I edit to link to my topsite?

Are you talking about the on in Toplist_HTML_Code?

I found this: <td><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>


</tr>
<tr>
<td><textarea name="code1" cols="40" rows="4" readonly="readonly"><a href="$vboptions[bburl]/in.php?id=$id" target="_blank"><img src="$vboptions[bburl]/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></textarea></td>
</tr>


Where can I edit to link to my topsite?
No it's a setting...

AdminCP --> Toplist --> Toplist Options

look for the In URL setting...

What code removes the image that shows the rank and stuff on an image. It seems that only sites that use the image to link back keep getting deactivated from the toplist.
You have to edit the Toplist_HTML_Code template (I think thats what I named it).

I was referring to what you call buttons, I suppose.
The column that is titled banner, to the right of the site link and description.
For some sites these banners have disappeared both in the backend and in the toplist.
Did you delete the images/toplist/buttons/sites folder or the files inside it?

angkor408
01-03-2007, 03:02 AM
Derekikey, I login to my admincp >toplist>toplist option there no optoin for URL setting.

But what I have done is edit the in.php to my url it work fine now. I'm not sure if other function will work. I was able to click on the image and every site have different ID which seem to link correctly too.

I found this: <td><a href="$vboptions/[b]forums/toplist.php?id=$id" target="_blank"><img src="$vboptions/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>

QUOTE=derekivey;1149592]No it's a setting...

[b]AdminCP --> Toplist --> Toplist Options

look for the In URL setting...


You have to edit the Toplist_HTML_Code template (I think thats what I named it).


Did you delete the images/toplist/buttons/sites folder or the files inside it?[/QUOTE]

Shazz
01-03-2007, 04:12 AM
What exactly does store in the mysql database?

squishi
01-03-2007, 07:35 AM
Did you delete the images/toplist/buttons/sites folder or the files inside it?

Of course not. That's why I contact you. I didn't even touch the folder/images.

mac27
01-03-2007, 07:39 AM
Hey is there away to add a random link from the toplist to the forum home?

derekivey
01-03-2007, 09:56 AM
Derekikey, I login to my admincp >toplist>toplist option there no optoin for URL setting.

But what I have done is edit the in.php to my url it work fine now. I'm not sure if other function will work. I was able to click on the image and every site have different ID which seem to link correctly too.


I found this: <td><a href="$vboptions/[B]forums/toplist.php?id=$id" target="_blank"><img src="$vboptions/images/toplist/buttons/toplist.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
<tr>
<td><input type="button" value="$vbphrase[toplist_select_all]" onclick="code1.focus();code1.select();" /></td>









QUOTE=derekivey;1149592]No it's a setting...

[B]AdminCP --> Toplist --> Toplist Options

look for the In URL setting...


You have to edit the Toplist_HTML_Code template (I think thats what I named it).


Did you delete the images/toplist/buttons/sites folder or the files inside it?[/quote]
It's called In Redirect URL. It's right under the Sites per Page setting... Your file edit probably isn't going to help as that will be replaced when you upgrade to newer versions...


Of course not. That's why I contact you. I didn't even touch the folder/images.
Can you either paste a link to your site here or PM it to me so I can take a look?

Hey is there away to add a random link from the toplist to the forum home?
That will be possible once the API is done (hopefully in the next version).

What exactly does store in the mysql database?
vBulletin settings, all the sites (name, description, in hits, out hits, views, votes (number of ratings), ratings), categories, a table to keep track of who clicked out links or in links to prevent cheating.

That's all that I can think of right now...

squishi
01-05-2007, 12:45 PM
Can you either paste a link to your site here or PM it to me so I can take a look?

Here's the link: Chubbyparade toplist (http://chubbyparade.com/forum/toplist.php)

There are some entries in the toplist that are bannerless, but there's a lot of missing banners.
I know for sure that I uploaded for example the banner for xx-cel, and it was showing fine. But now it's gone.

But not all banners disappeared, only about half of them was not working anymore all of a sudden.

Ninth Dimension
01-05-2007, 05:14 PM
You have an error in your upgrade instructions... it says, for the cron-jobFilename: ./includes/cron/toplist_rankings.phpbut this is meant to be toplink_ranks.php


Also, when you edit a site, it seems to forget which category it's meant to be in...

Shazz
01-05-2007, 08:30 PM
Never noticed it went away from the catagory

derekivey
01-05-2007, 08:52 PM
Here's the link: Chubbyparade toplist (http://chubbyparade.com/forum/toplist.php)

There are some entries in the toplist that are bannerless, but there's a lot of missing banners.
I know for sure that I uploaded for example the banner for xx-cel, and it was showing fine. But now it's gone.

But not all banners disappeared, only about half of them was not working anymore all of a sudden.
Hmm... Odd. Can you go into PHPMyAdmin, and look to see whats in the imagecode field for one of the sites that the image disappeared on? You can find them in the toplist_sites table.

You have an error in your upgrade instructions... it says, for the cron-jobbut this is meant to be toplink_ranks.php


Also, when you edit a site, it seems to forget which category it's meant to be in...
Thanks I must have forgot to change that part in the readme file. I'll get it changed and reupload it.

I'll see if I can confirm the problem with the category too.

derekivey
01-05-2007, 09:15 PM
Thanks. I can confirm this and have fixed it for the next version.

Upload the attached file to fix it.

Derek

Shazz
01-05-2007, 09:21 PM
* Shazz updates thanx :D

derekivey
01-05-2007, 09:31 PM
zip file also updated to include the fix and the change the readme.

Mecho
01-06-2007, 11:41 AM
is that possible in new version that users add URL of their button , not upload in our host ?!?

Thanks .

squishi
01-06-2007, 12:33 PM
Hmm... Odd. Can you go into PHPMyAdmin, and look to see whats in the imagecode field for one of the sites that the image disappeared on? You can find them in the toplist_sites table.

For the XX-cel it is "A3eqssbrC2g6HliNRfTp".
I looked it up on ftp, there is a corresponding file with the same name in the /images/toplist/buttons/sites/ folder.
Why is it not showing anymore? :surprised:

derekivey
01-06-2007, 07:23 PM
is that possible in new version that users add URL of their button , not upload in our host ?!?

Thanks .
Yes, I will add that.

For the XX-cel it is "A3eqssbrC2g6HliNRfTp".
I looked it up on ftp, there is a corresponding file with the same name in the /images/toplist/buttons/sites/ folder.
Why is it not showing anymore? :surprised:
Thanks for getting back to me. I'll take a look at it.

Derek

derekivey
01-06-2007, 08:05 PM
Hmm, when I go to http://chubbyparade.com/forum/images/toplist/buttons/sites/A3eqssbrC2g6HliNRfTp it redirects me to your forums. So maybe that might have something to do with some images now loading?

chatfan
01-07-2007, 04:49 AM
Really? You don't see the difference? No big deal I guess but makes me wonder what you use to compare it.

:cool:


to be honest it looks no different then what you have on your site.

DementedMindz
01-07-2007, 05:25 AM
my eyes lol

squishi
01-07-2007, 08:24 AM
Hmm, when I go to http://chubbyparade.com/forum/images/toplist/buttons/sites/A3eqssbrC2g6HliNRfTp it redirects me to your forums. So maybe that might have something to do with some images now loading?

You are right, that file is not loading in a browser.
But I don't see why?

Take for example this one from the same folder, it loads fine.
http://chubbyparade.com/forum/images/toplist/buttons/sites/9msMHnRPa2M9WwSVmvDT

:confused:

chatfan
01-09-2007, 03:40 AM
my eyes lol

Oh I'm sure its not going to look like your eyes, unless they look like a list of banner pics?

Actually the main difference is: I put all site info under the banner and its not boxed up.

DementedMindz
01-09-2007, 05:12 AM
ok and you can do the same thing once again with the way he has it coded now. but if your happy thats all that matters.

derekivey
01-10-2007, 03:37 AM
You are right, that file is not loading in a browser.
But I don't see why?

Take for example this one from the same folder, it loads fine.
http://chubbyparade.com/forum/images/toplist/buttons/sites/9msMHnRPa2M9WwSVmvDT

:confused:
Can you try temporarily removing that redirect thing and see if it works then?

Derek

chatfan
01-10-2007, 10:51 AM
ok and you can do the same thing once again with the way he has it coded now. but if your happy thats all that matters.

Just for you because i love you so :rolleyes: the difference:

Original Look (http://www.palaceplanet.net/images/toplist-original-below.png)

Hacked version (http://www.palaceplanet.net/images/toplist-hacked.png)

squishi
01-20-2007, 07:16 AM
Can you try temporarily removing that redirect thing and see if it works then?

Derek

I found it. The files had the wrong owner permissions and could only be read by the server.

derekivey
01-20-2007, 03:40 PM
Ok, Great! Glad it's working now.

Derek

chatfan
01-25-2007, 10:01 AM
Hi folks,

Quick question: is it possible to add another protocol to the url validation?

I found this in the add_site.php and edit_site.php:


//------------------------------------------------------------
// Make Sure the URL Submitted is Valid.
//------------------------------------------------------------
$check_url = substr($vbulletin->GPC['url'], 0, 7);


if ($check_url == "http://")
{



My knowledge of IF arguments faded with the selling of my Amiga 12 years ago, I hope someone can whip up an example.

Would like to add two more protocols for radio and chat.


The link check will have to be disabled off course (shame, briliant feature)


Thanks!

derekivey
01-25-2007, 10:07 AM
Try replacing

if ($check_url == "http://")

With:

if ($check_url == "http://" OR $check_url == "protocol://")

Replace protocol with the protocol.

If the protocol is longer than http, you will have to add another $check_url var (different name though, and change the 7 to the total amount of characters including the :// part.

Derek

chatfan
01-25-2007, 06:14 PM
Thanks that worked!

Is it possible to do this:

if ($check_url == "http://" OR $check_url == "protocol1://" OR $check_url == "protocol2://")

anyway, thanks again.

akulion
01-29-2007, 05:48 AM
hi what am i suppsed to put in these feilds when creating a scheduled task?

varname

Log Phrase

Description

cos otherwise it just says "please fill in all required feilds"

thanks
aku

derekivey
01-29-2007, 09:50 AM
Thanks that worked!

Is it possible to do this:

if ($check_url == "http://" OR $check_url == "protocol1://" OR $check_url == "protocol2://")



anyway, thanks again.
You would have to make a new $check_url variable (with a different name), and change the 7 in the function to the number of characters of the protocol you want to check.

hi what am i suppsed to put in these feilds when creating a scheduled task?

varname

Log Phrase

Description

cos otherwise it just says "please fill in all required feilds"

thanks
aku
Please see the readme file. They are listed there.

Derek

tankaya61
02-01-2007, 08:16 PM
i replace image.png but don't work

chdir('/home/username/public_html/');

can you look
http://www.turkishboard.net/images/toplist/buttons/dynamic/image.png?id=3

derekivey
02-01-2007, 08:31 PM
Make sure your server has the GD image library installed. Also can you look in your logs to see if you can see what the error message is for that?

Derek

tankaya61
02-01-2007, 08:36 PM
thanks but now i don't use it

how can i erase center block

derekivey
02-01-2007, 08:38 PM
You will have to modify the Toplist_HTML_Code template to remove it.

tankaya61
02-01-2007, 08:47 PM
thanks for supporter
i erased it table

it been better now for me ;)

DementedMindz
02-05-2007, 01:08 AM
derek I was wondering did you ever figure out why when you submit a link or edit the link such as www.example.com/modules.php?name=MS_TopSites&file=in&id=253 the & in it wont validate on http://validator.w3.org/ the only way I have solved this is by going in phpmyadmin and changing it to & amp; but without the space.

Allan
02-05-2007, 07:56 AM
French Language ;)

Translator: Rom56 and Allan

derekivey
02-05-2007, 09:54 AM
derek I was wondering did you ever figure out why when you submit a link or edit the link such as www.example.com/modules.php?name=MS_TopSites&file=in&id=253 the & in it wont validate on http://validator.w3.org/ the only way I have solved this is by going in phpmyadmin and changing it to & amp; but without the space.
Yes, as a matter of fact, I found out a few days ago. I will try and release a fix later today.

French Language ;)

Translator: Rom56 and Allan
Thanks Allan, I will add it to the first post.

DementedMindz
02-05-2007, 03:39 PM
thats cool it had me going crazy trying to change it when they edit there code. any plans on changing the layout or having it where you can really add any kind of link or code? cause right now its limited to just a site url for example if I tried to enter in something like this which most topsites are switching to then it wont work.

<a href="http://example.net/topsites/">
<img src="http://example.net/topsites/button.php?u=dementedmindz" alt="" border="0" />
</a>

anywares
02-05-2007, 04:31 PM
Does this work on vB 3.6.4? :\

DementedMindz
02-05-2007, 07:09 PM
Yes It Does

Mecho
02-05-2007, 10:17 PM
i set this option " Show Site Images on Forum Home? " Yes .
so it added " top sites: " in the forumhome . how can i edit and change the title (Top Sites:) of that box ?

Thanks

derekivey
02-06-2007, 12:22 AM
thats cool it had me going crazy trying to change it when they edit there code. any plans on changing the layout or having it where you can really add any kind of link or code? cause right now its limited to just a site url for example if I tried to enter in something like this which most topsites are switching to then it wont work.

<a href="http://example.net/topsites/">
<img src="http://example.net/topsites/button.php?u=dementedmindz" alt="" border="0" />
</a>
Do you remember which file it was that you were having problems with &'s being in the URL?

Not quite sure what you mean about adding any type of code. Can you please explain a little more?

i set this option " Show Site Images on Forum Home? " Yes .
so it added " top sites: " in the forumhome . how can i edit and change the title (Top Sites:) of that box ?

Thanks
Try searching for that phrase in vB's phrase manager. I'm not sure of the varname off the top of my head, but you should be able to find it by doing a search there. All you have to do is put what you want it to say in the language translation textarea.

DementedMindz
02-06-2007, 01:34 PM
Do you remember which file it was that you were having problems with &'s being in the URL?

Not quite sure what you mean about adding any type of code. Can you please explain a little more?

ok when you submit your site to there site thats the code you get back. I think what would be able to work with that since it needs there site link is being able to link to there button instead of being able to upload it cause if you put that full link on your site then it would take you right to there site and count as a hit on there topsites. Ill send you a pm so you can see the true link this way you know what I mean. Its a strange way of doing the topsites code but thats how mostly all new topsites are going to. Also as for the & that only happens when you edit the site or just submit the site it wont change it to & amp;.

derekivey
02-06-2007, 06:38 PM
Thanks. I'll look into these.

DementedMindz
02-06-2007, 07:47 PM
one thing I could think of to maybe add besides being able to link to the images is maybe have it where admin can add html code for the button this way it will be able to use a code like I sent you in pm or maybe you can figure a way for it to work..

zentz
02-09-2007, 12:44 PM
users cant add site to the toplist, i get these errors:

Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT `email` FROM user WHERE `userid` IN(my@email.com);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@email.com)' at line 1
Error Number : 1064
Date : Friday, February 9th 2007 @ 09:39:31 AM
Script : http://www.site.com/add_site.php
Referrer : http://www.site.com/add_site.php
IP Address : 89.172.69.96
Username : Admin
Classname : vB_Database

Any ideas?

Also how do i check what toplist version do i currently run?

DementedMindz
02-09-2007, 01:42 PM
derek any word on that fix? from this post https://vborg.vbsupport.ru/showpost.php?p=1175094&postcount=1449

Spike Saunders
02-10-2007, 03:45 AM
Alrighty so I have a few questions for you all, mostly for the one that developed this awesome hack :)

#1 - Is there anyway that this can be edited to include TWO fields to be filled out for the url, instead of one? The first one being the location of the page that the CODE will appear on. And the second one, being the actaul website's url? I know too many sites that have a Affiliate page, and link to their homepage instead. I would like to fix this so that the code is found on one page while the site themselves in the Toplist will link to the URL specified.

#2 - My forum seems to have an issue with the Redirect from another Site. Basically if you go to one of the sites that have the link back, it goes into a redirect loop while trying to access my site. This repeats indefinitely. However, it does still count the IN link, if you stop or hit back or something to escape the loop. Is there a fix for this? My forum is the most recent version. You can see th is for yourself at (http://www.community.edubn.com/toplist.php) - I understand if the url is removed by a moderator, and if that is the case, that is fine. But I don't mind people checkin it out, you do not have to register, as guest are allowed to view the sites.

#3 - In Firefox ther eseems to be issues with the SITES showing on the main forum page. Sometimes they will be split in half and only the top part of the images will show. Kind of wierd. But Firefox issue as IE does not do it.

I think that's it.

Thanks
-Spike

derekivey
02-10-2007, 08:05 PM
users cant add site to the toplist, i get these errors:

Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT `email` FROM user WHERE `userid` IN(my@email.com);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@email.com)' at line 1
Error Number : 1064
Date : Friday, February 9th 2007 @ 09:39:31 AM
Script : http://www.site.com/add_site.php
Referrer : http://www.site.com/add_site.php
IP Address : 89.172.69.96
Username : Admin
Classname : vB_Database

Any ideas?

Also how do i check what toplist version do i currently run?
It sounds to me that you entered an email address in for the setting that lets you set who receives an email when a site needs verified. You need to enter a user ID (not username or email).

derek any word on that fix? from this post https://vborg.vbsupport.ru/showpost.php?p=1175094&postcount=1449
Sorry, I've been too busy to take a look. I will get to it ASAP.


#1 - Is there anyway that this can be edited to include TWO fields to be filled out for the url, instead of one? The first one being the location of the page that the CODE will appear on. And the second one, being the actaul website's url? I know too many sites that have a Affiliate page, and link to their homepage instead. I would like to fix this so that the code is found on one page while the site themselves in the Toplist will link to the URL specified.

That is currently not a feature, but thanks for the suggestion. I will add it to my todo list for the next version.


#2 - My forum seems to have an issue with the Redirect from another Site. Basically if you go to one of the sites that have the link back, it goes into a redirect loop while trying to access my site. This repeats indefinitely. However, it does still count the IN link, if you stop or hit back or something to escape the loop. Is there a fix for this? My forum is the most recent version. You can see th is for yourself at (http://www.community.edubn.com/toplist.php) - I understand if the url is removed by a moderator, and if that is the case, that is fine. But I don't mind people checkin it out, you do not have to register, as guest are allowed to view the sites.

You probably did not set the In URL setting. Please edit the settings for the script and enter the URL where you want them to be redirected to when they click an In link. Usually people enter the URL to their homepage or the URL to their forums, it's up to you.


#3 - In Firefox ther eseems to be issues with the SITES showing on the main forum page. Sometimes they will be split in half and only the top part of the images will show. Kind of wierd. But Firefox issue as IE does not do it.

I'll take a look and see if it can be fixed.

Thanks,
Derek

Spike Saunders
02-10-2007, 08:14 PM
You probably did not set the In URL setting. Please edit the settings for the script and enter the URL where you want them to be redirected to when they click an In link. Usually people enter the URL to their homepage or the URL to their forums, it's up to you.
Haha I feel like an idiot. I checked that field over and over again. But yeah it was blank, thanks.

Can't wait for the next version of toplist, especially if you can get that feature in there. - lol and of course the bugfix for firefox whenever. :)
thanks Derek.

derekivey
02-10-2007, 08:25 PM
Haha I feel like an idiot. I checked that field over and over again. But yeah it was blank, thanks.

Can't wait for the next version of toplist, especially if you can get that feature in there. - lol and of course the bugfix for firefox whenever. :)
thanks Derek.
No Problem.

zentz
02-13-2007, 06:23 PM
i tried to add it by myself, i got the error and the site was not added.

It sounds to me that you entered an email address in for the setting that lets you set who receives an email when a site needs verified. You need to enter a user ID (not username or email).


Sorry, I've been too busy to take a look. I will get to it ASAP.


That is currently not a feature, but thanks for the suggestion. I will add it to my todo list for the next version.


You probably did not set the In URL setting. Please edit the settings for the script and enter the URL where you want them to be redirected to when they click an In link. Usually people enter the URL to their homepage or the URL to their forums, it's up to you.


I'll take a look and see if it can be fixed.

Thanks,
Derek

derekivey
02-15-2007, 12:28 AM
Ok, please tell me what you have for these settings...


Users To Send Validation Notice Email To
User To Send Validation Notice PM From

Users To Send Validation Notice PM To

Thanks,
Derek

Mecho
02-16-2007, 06:01 PM
derekivey ,

1 - still add list option is so small and hard to find .
2 - users cant add their link button . they just can upload !

that would be great if u fix them in next release ...


anyway i add one button on toplist page so i put the code here if anyone like to use :

in Toplist template find this :
</div>
<form action="toplist.php" method="get">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="right">

add this Above of it :
<div align="left">
<a href="http://YOUR SITE LINK/add_site.php"><img src="LINK OF IMAGE THAT I ATTACHED" border="0" alt="ADD Your Site" /></a></div>

:)

DementedMindz
02-16-2007, 06:09 PM
derekivey any word on a fix yet?

derekivey
02-18-2007, 03:20 PM
derekivey any word on a fix yet?
Ok, here is the fix...

Open add_site.php.

Find:
'url' => TYPE_STR,

Replace With:
'url' => TYPE_NOHTML,

Close & Save.


Open edit_site.php.

Find:
'url' => TYPE_STR,

Replace With:
'url' => TYPE_NOHTML,

Close & Save.

derekivey
02-18-2007, 03:34 PM
derekivey ,

1 - still add list option is so small and hard to find .
2 - users cant add their link button . they just can upload !

that would be great if u fix them in next release ...

Yes, I plan to add the ability to link to buttons OR upload in the next version. So look for that then.

jellybaby
02-19-2007, 01:58 PM
I'm not receiving emails when sites are reported - does anyone else have this problem

derekivey
02-19-2007, 02:29 PM
Probably a problem with emails on your server. Are people getting thread subscription replies at all? Are your settings for the Toplist correct?

sandrodz
02-21-2007, 07:31 PM
I don;t need that mod on my forum any more... didn't workout, members didn't put any links, so I decided to take it off. Is there a complete guide on this? so that I don't damage my vb :)

derekivey
02-21-2007, 07:33 PM
Uninstall instructions can be found at the bottom of the readme file.

Derek

Attitude5ire
02-23-2007, 01:21 PM
Pagination Bug:
Category pages more than 1 have wrong links i.e extra spaces in catid:

Open toplist.php

Find: line 598

$pagenav = construct_page_nav($cur_page, $per_page, $total_sites, 'toplist.php?cid = '.$vbulletin->GPC['cid'] . $vbulletin->session->vars['sessionurl'], "");


Change to:

$pagenav = construct_page_nav($cur_page, $per_page, $total_sites, 'toplist.php?cid='.$vbulletin->GPC['cid'] . $vbulletin->session->vars['sessionurl'], "");

derekivey
02-25-2007, 02:49 PM
Thanks, I'll fix it for the next version.

Shazz
02-25-2007, 03:46 PM
Pagination Bug:
Category pages more than 1 have wrong links i.e extra spaces in catid:

Open toplist.php

Find: line 598

$pagenav = construct_page_nav($cur_page, $per_page, $total_sites, 'toplist.php?cid = '.$vbulletin->GPC['cid'] . $vbulletin->session->vars['sessionurl'], "");


Change to:

$pagenav = construct_page_nav($cur_page, $per_page, $total_sites, 'toplist.php?cid='.$vbulletin->GPC['cid'] . $vbulletin->session->vars['sessionurl'], "");



Cool fix

Ren? Kunze
02-26-2007, 10:12 AM
Hello,

I have a Problem with the & , see the Pictuer,

61069

I have do this : https://vborg.vbsupport.ru/showpost.php?p=1185335&postcount=1468

But the Problem is.

We can help me with this Problem.

b6gm6n
03-01-2007, 04:00 PM
Hi... just wondering if theres an update due... :) not sure if i have the latest because it's been a while :) cheers

-b6

Lionel
03-18-2007, 01:09 AM
I am having a javascript error whenever there is a new listing added. It disappears when you rate it at least once. Is there a fix for it? Thanks

Vert777
03-19-2007, 10:42 AM
Please help!!!

The problem is that after I added sites they are shown only in Random field, and doesn't show anything in the main field. URL: www.rybnadzor.com/forums/toplist.php

derekivey
03-19-2007, 06:32 PM
I am having a javascript error whenever there is a new listing added. It disappears when you rate it at least once. Is there a fix for it? Thanks
I'll look into it.

Please help!!!

The problem is that after I added sites they are shown only in Random field, and doesn't show anything in the main field. URL: www.rybnadzor.com/forums/toplist.php (http://www.rybnadzor.com/forums/toplist.php)
Are the sites set to inactive?

DementedMindz
03-30-2007, 07:50 PM
Hi... just wondering if theres an update due... :) not sure if i have the latest because it's been a while :) cheers

-b6

yeah wondering that too cause I would like to link to images

b6gm6n
03-30-2007, 07:56 PM
Yeah DementedMindz, It's such a great addon to vBulletin for me... i only wish i could help more...

-b6

Switch02
04-06-2007, 08:57 AM
Hello i have a problem in my forum home don't show the banner why?

loonytune15
04-09-2007, 01:23 PM
Derek, I checked Switch's site and for some reason it will only show 20 sites in the forumhome scroll.

It wont show all if you put in 0.

any ideas?

b6gm6n
04-09-2007, 05:23 PM
You may already know this, but if you enable the random site (the site shown at the top of the list) the link when clicked just resets the list, a refresh...nothing more...

Anyways, is there anything i can do?... would you like me to design some graphics for you?...anything, just name it! (noooo i haven't got allot of money either :))

-b6

Zizou_SCD
04-09-2007, 10:19 PM
Has anyone got this working on 3.6.4? Or does anyone think it will work on 3.6.4?

Shazz
04-09-2007, 10:21 PM
IT does.

Zizou_SCD
04-10-2007, 07:02 AM
IT does.
Sweet news! Cheerz Shazz, I will be clicking installed very soon I think!

derekivey
04-10-2007, 11:29 PM
Sorry for the late reply guys. I've been really busy lately.

Derek, I checked Switch's site and for some reason it will only show 20 sites in the forumhome scroll.

It wont show all if you put in 0.

any ideas?
I'll look into it. Try setting it to a really high number for now.

You may already know this, but if you enable the random site (the site shown at the top of the list) the link when clicked just resets the list, a refresh...nothing more...

Anyways, is there anything i can do?... would you like me to design some graphics for you?...anything, just name it! (noooo i haven't got allot of money either :))

-b6
Which link are you talking about? You mean if you click the name of the site in the random site area to go to the site?

b6gm6n
04-11-2007, 03:10 AM
@derekivey : it's anywhere, the text link the banner... just links back to 'toplist.php'

loonytune15
04-11-2007, 07:03 AM
I'll look into it. Try setting it to a really high number for now.


The highest we can do is 20..

Zizou_SCD
04-14-2007, 08:53 AM
I am about to install this mod, but I am a bit confused about some of the steps to install it.
1. Upload all of the files in the UPLOAD folder.
Do I just upload this in root? Or in root/toplist? Or forum/toplist? Or does it not matter?
2. CHMOD 777 images/toplist/buttons/sites.
Do you mean "Create a folder directory images/toplist/buttons/sites inside your forums directory and set it's CHMOD to 777"?

I am really looking forward to installing this mod.

derekivey
04-14-2007, 09:29 PM
The highest we can do is 20..
Ok, just leave it at 20 for now then and I will look at the code and see if I can figure out why it's not working.

I am about to install this mod, but I am a bit confused about some of the steps to install it.

Do I just upload this in root? Or in root/toplist? Or forum/toplist? Or does it not matter?

Do you mean "Create a folder directory images/toplist/buttons/sites inside your forums directory and set it's CHMOD to 777"?

I am really looking forward to installing this mod.
You upload the files to the root directory. Your FTP client should take care of putting the stuff in /includes/ in the includes folder, etc.

Vic123
04-19-2007, 03:54 PM
is there a possibility to add a top 5 toplist box to the header on every forum page?

how can i do that?

bye
Vic

loonytune15
05-04-2007, 11:47 PM
I was wondering if the in links of this hack affect the page ranking with google?

eg does using www.monster-designs.com work better than using www.monster-designs/toplist/in.php.... etc..

derekivey
05-06-2007, 03:50 AM
I was wondering if the in links of this hack affect the page ranking with google?

eg does using www.monster-designs.com work better than using www.monster-designs/toplist/in.php.... etc..
I don't think it would. I'm not an expert on SEO though.

loonytune15
05-10-2007, 11:59 AM
G'day derekivey, I was wondering if you had managed to fix the problem with showing sites on the forumhome?

I have 36 sites in my toplist and I realised I was having errors on the the forumhome and it took me half an hour till i realised it was this hack causing the problems..

I have turned off the forumhome marquee till i hope it can be fixed..

princeedward
05-18-2007, 07:26 PM
thanks for this....clicked install...;)

efe
05-24-2007, 10:32 PM
it does v3.6.7 ==> http://www.koolpa.com/toplist.php
good work!

loonytune15
05-25-2007, 06:59 AM
mine works except for the forumhome problem..