Log in

View Full Version : Toplist


Pages : 1 2 3 4 [5] 6 7

loonytune15
08-10-2006, 01:50 PM
has the site been verified?

Beller
08-10-2006, 03:22 PM
I recently upgraded & I get this error when I run the In Code Validation

Fatal error: Call to a member function on a non-object in /home/boardsie/public_html/forum/includes/cron/toplist.php on line 47
Any Ideas. I am running 3-6-0 BTW
Is there any relevance in what in entered in varname?

derekivey
08-10-2006, 03:39 PM
I recently upgraded & I get this error when I run the In Code Validation

Fatal error: Call to a member function on a non-object in /home/boardsie/public_html/forum/includes/cron/toplist.php on line 47
Any Ideas. I am running 3-6-0 BTW
Is there any relevance in what in entered in varname?
I don't think the cron will work with 3.6, I heard that vB changed some stuff with the cron system, so this is something I will have to look at before I release a 3.6 version.

derekivey
08-10-2006, 03:40 PM
the link is not showing
First, make sure the usergroup has edit permissions.

If that doesn't work, please try the fix in this post: https://vborg.vbsupport.ru/showpost.php?p=1033169&postcount=945

Derek

Beller
08-10-2006, 03:52 PM
I don't think the cron will work with 3.6, I heard that vB changed some stuff with the cron system, so this is something I will have to look at before I release a 3.6 version.

It still seems to do the job. It has removed any sites without links.
Anyway I look forward to a 3-6-0- update.

oberheimhaven
08-10-2006, 11:20 PM
in Admin Cp also how do you give user permission I checked its no where to be found I loaded everything to the tee? Any help would be appreciated thanks for the great hack

Never mind spoke to soon it was the cron and xml

\ great hack mate@@@

www.musiciansquarters.com
More than just another guitar site!!

derekivey
08-11-2006, 07:20 PM
It still seems to do the job. It has removed any sites without links.
Anyway I look forward to a 3-6-0- update.
Oh I see whats causing the error. Do this to fix it...

Open includes/cron/toplist.php

Find:
$db->free_result($sites2);

Replace With:
$vbulletin->db->free_result($sites2);

Close & Save.

McMendo
08-13-2006, 07:18 PM
I copied the files via ssh in the server, putting each file in its directory and changing owner and group according to the rest of vbulletin files. I had to create the subdirectories under images/

Then I imported the xml file from AdminCP -> Plugin System -> Manage Products
It required to fill all the fields. I haven't found any "Product ID" so I filled them as follows:
Product ID: toplist_1_0_9
Title: Toplist
Version: 1.0.9
Description: (brief description)

Step #4 of installation says:
4. Edit each usergroup's permissions at the very bottom set the Toplist Permissions to what ever you want for each usergroup.

But I cannot see any toplist permissions on usergroup's permissions.

Further, after restarting the browser and re-loging in AdminCP I cannot see any Toplist Category on the AdminCP Nav.

I'm lost.. :(

derekivey
08-13-2006, 07:43 PM
Looks like you created a product for that, which is only needed if you are making hacks. Instead delete that product, and import the product xml file that came in the zip file and it that stuff should show up for you.

Derek

majoreyeswater
08-13-2006, 08:35 PM
I've searched through the thread but I am still struggling.

I've copied all the files and I've imported the xml product file.

The top list options are available to edit in admincp options, but I cannot find the toplist permissions in the usergroup settings.

I edit a particular usergroup (e.g. registered members) and cannot find anywhere in there where one edits the toplist settings.

Any help appreciated.

Allan
08-13-2006, 08:52 PM
Hey Derek

Do you have released your hack for vB 3.6 ?

derekivey
08-13-2006, 09:15 PM
Not yet, seems to work fine on 3.6 though. I plan to release a 3.6 version for the next release.

McMendo
08-15-2006, 09:40 AM
Looks like you created a product for that, which is only needed if you are making hacks. Instead delete that product, and import the product xml file that came in the zip file and it that stuff should show up for you.Thank you. I don't know how it happened.

Now it's installed. Some issues:

I want toplist to be public viewable, not just for allowed usergroups. How do I go about that? (there is no usergroup "all" to allow view toplist).

Non logged viewers get this message:You are not logged in or you do not have permission to access this pageI am a secret administrator, and as such I get:Tom, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


Also, I've added my first site with the image of the site. First I downloaded the image to my computer and uploaded it to the site on topfield. It doesn't show. I edited the site and in fact the field was blank. I typed the URL to the image. It still doesn't show and when I go to edit the site again the image field is blank.

I have increased max. width and height to 325x60 and max. size to 100,000. The file extensions allowed are: jpg jpeg gif (I've also tried with commas too: jpg, jpeg, gif). To no avail.

McMendo
08-15-2006, 02:37 PM
Thank you. I don't know how it happened.

Now it's installed. Some issues:

I want toplist to be public viewable, not just for allowed usergroups. How do I go about that? (there is no usergroup "all" to allow view toplist).

Non logged viewers get this message:I am a secret administrator, and as such I get:Big apologies. Too little sleep these days. View permissions are clear now.

The problem with the images still remains though..
Also, I've added my first site with the image of the site. First I downloaded the image to my computer and uploaded it to the site on topfield. It doesn't show. I edited the site and in fact the field was blank. I typed the URL to the image. It still doesn't show and when I go to edit the site again the image field is blank.

I have increased max. width and height to 325x60 and max. size to 100,000. The file extensions allowed are: jpg jpeg gif (I've also tried with commas too: jpg, jpeg, gif). To no avail.

Also, how can I make the description longer? I need to add some html code to indicate the language: <font color="red"><b>[in Language]</b></font>

derekivey
08-15-2006, 03:28 PM
Thank you. I don't know how it happened.

Now it's installed. Some issues:

I want toplist to be public viewable, not just for allowed usergroups. How do I go about that? (there is no usergroup "all" to allow view toplist).

Non logged viewers get this message:I am a secret administrator, and as such I get:


Also, I've added my first site with the image of the site. First I downloaded the image to my computer and uploaded it to the site on topfield. It doesn't show. I edited the site and in fact the field was blank. I typed the URL to the image. It still doesn't show and when I go to edit the site again the image field is blank.

I have increased max. width and height to 325x60 and max. size to 100,000. The file extensions allowed are: jpg jpeg gif (I've also tried with commas too: jpg, jpeg, gif). To no avail.
Just edit the permissions for each usergroup to allow access to view (and add and edit to the ones you want to allow to edit), if you want people who aren't logged in to view it edit the permissions for the Guest usergroup to allow them to view it.

For your second problem, don't include commas in the sizes, and also make sure you CHMODed the images/toplist/buttons/sites/ folder to 777.

Derek

derekivey
08-15-2006, 03:29 PM
Also, how can I make the description longer? I need to add some html code to indicate the language: <font color="red"><b>[in Language]</b></font>
You will have to add that code to the Toplist_1 and Toplist_2 templates. Find something like $sr[description] (I think thats the variable I use), and put the html code in front of it, and the closing html tag after it.

Derek

McMendo
08-15-2006, 06:13 PM
You will have to add that code to the Toplist_1 and Toplist_2 templates. Find something like $sr[description] (I think thats the variable I use), and put the html code in front of it, and the closing html tag after it.

DerekThat didn't work for <font color>. It does for <center> though.

derekivey
08-15-2006, 06:17 PM
Paste the code you used so I can take a look.

Thanks,
Derek

majoreyeswater
08-16-2006, 03:31 PM
I've searched through the thread but I am still struggling.

I've copied all the files and I've imported the xml product file.

The top list options are available to edit in admincp options, but I cannot find the toplist permissions in the usergroup settings.

I edit a particular usergroup (e.g. registered members) and cannot find anywhere in there where one edits the toplist settings.

Any help appreciated.

If I've missed something then let me know, but I can't see a toplist entry in the usergroup settings so no one has permission to use the service.

Where are the usergorup settings for this mod?

Thanks in advance.

derekivey
08-16-2006, 05:02 PM
Did you upload the xml file for it into includes/xml?

McMendo
08-16-2006, 08:37 PM
Paste the code you used so I can take a look.

Thanks,
Derek
Toplist_1:
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK">$sr[name]</a><br /><center><font color="FF0000" size="-1">$sr[description]</font></center>

Toplist_2:
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]">$sr[name]</a><br /><center><font color="FF0000" size="-1">$sr[description]</font></center>


Even if it worked that would affect the entire description, wouldn't it?

What I need is this:

This is the description for a site in English language.
[in English]

This is the description for a site in Russian language.
[in Russian]

etc.

derekivey
08-17-2006, 12:31 AM
Try replacing:
<font color="FF0000"
With:
<font color="#FF0000"

Derek

derekivey
08-17-2006, 12:32 AM
Also, why is the size -1?

Robbed
08-21-2006, 09:00 PM
Is it possible to use banners with this hack instead of buttons?

Shazz
08-21-2006, 09:06 PM
Is it possible to use banners with this hack instead of buttons?
You could do something like
Admin CP> Toplist(left side) > Toplist Options> Maximum Image Height and Maximum Image Width(middle of the page) change it to whatever you wanted :cool:
________
Ford Escape Hybrid history (http://www.ford-wiki.com/wiki/Ford_Escape_Hybrid)

Robbed
08-21-2006, 09:08 PM
I would have to edit the templates too?

Shazz
08-21-2006, 09:20 PM
I would have to edit the templates too?
Not that im aware of .
________
Mercedes-Benz W112 history (http://www.mercedes-wiki.com/wiki/Mercedes-Benz_W112)

derekivey
08-21-2006, 09:34 PM
Only if you want to change the layout. For my friend's site, I moved the images below the description's and deleted the extra column for the buttons. I am thinking of adding a setting to choose between that layout or the current layout.

Derek

Robbed
08-21-2006, 10:03 PM
Only if you want to change the layout. For my friend's site, I moved the images below the description's and deleted the extra column for the buttons. I am thinking of adding a setting to choose between that layout or the current layout.

Derek

That would be great I was looking for something like that.

Could i get the template edits?

Thanks

Rob

derfelix
08-22-2006, 04:10 PM
Only if you want to change the layout. For my friend's site, I moved the images below the description's and deleted the extra column for the buttons. I am thinking of adding a setting to choose between that layout or the current layout.

Derek
I second that request...
+ have the site "title" in bold

(most sites have the classic 468x60 banners)

Felix

Celtic_Mad
08-23-2006, 03:45 PM
Does this work for 3.6.0?

derekivey
08-23-2006, 09:59 PM
Does this work for 3.6.0?
Seems to be working fine for me on my dev board.

derekivey
08-23-2006, 09:59 PM
That would be great I was looking for something like that.

Could i get the template edits?

Thanks

Rob
Sure, I will post them shortly.

Derek

b6gm6n
08-24-2006, 04:42 PM
problem...fixed!

Snake
08-24-2006, 10:38 PM
Is this gonna work on 3.6 too? I'm not sure.

Shazz
08-24-2006, 10:39 PM
Is this gonna work on 3.6 too? I'm not sure.
Yes! :cool:

Snake
08-24-2006, 10:54 PM
Thanks!

Shazz
08-24-2006, 11:01 PM
Thanks!
I think majority of the 3.5 hacks should say at the bottom or top of the post that says if its capable of 3.6..

derekivey
08-25-2006, 12:33 AM
Here is the code for those templates I was talking about, for if you have bigger images on the toplist.

Toplist:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
<script type="text/javascript" src="clientscript/toplist.js?version=$version"></script>
</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="right">
<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="7">{$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>
<td class="thead" width="50">$vbphrase[toplist_in]</td>
<td class="thead" width="50">$vbphrase[toplist_out]</td>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
<td class="thead" width="90">$vbphrase[toplist_rating]</td>
</tr>
<if condition="$randchk >= 1 OR $num_rows >= 1">
<tr align="center">
<td class="alt2">$rand_rank</td>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK">$randsite[name]</a><br />$randsite[description]<br />
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $randsite['imagecode'] != ''">
<br /><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$randsite[id]" border="0" alt="" /></a>
</if>
</td>
<td class="alt2" width="50">$randsite[in]</td>
<td class="alt1" width="50">$randsite[out]</td>
<td class="alt2" width="50">$randsite[views]</td>
<td class="alt1" width="90">
<if condition="$rating == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_$rating.gif" alt="" />
<br />
$randsite[votes]
<if condition="$randsite['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$randsite[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>
<else />
<tr align="center">
<td class="alt1" colspan="7">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="7"><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="7">{$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>
<td class="thead" width="50">$vbphrase[toplist_in]</td>
<td class="thead" width="50">$vbphrase[toplist_out]</td>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
<td class="thead" width="90">$vbphrase[toplist_rating]</td>
</tr>
$html
<tr align="center">
<td class="thead" colspan="7">
<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>

$footer
</body>
</html>


Toplist_1:

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK">$sr[name]</a><br />$sr[description]
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$vboptions[bburl]/out.php?id={$sr[id]}" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a><br />
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
<if condition="!is_member_of($bbuserinfo, 1)">
[ <a href="#" 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;">$vbphrase[toplist_report]</a> ]
</if>
</td>
<td class="alt2" width="50">$sr[in]</td>
<td class="alt1" width="50">$sr[out]</td>
<td class="alt2" width="50">$sr[views]</td>
<td class="alt1" width="90">
<if condition="$sr['rating_average'] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes]
<if condition="$sr['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>


Toplist_2:

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]">$sr[name]</a><br />$sr[description]
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a><br />
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
</td>
<td class="alt2" width="50">$sr[in]</td>
<td class="alt1" width="50">$sr[out]</td>
<td class="alt2" width="50">$sr[views]</td>
<td class="alt1" width="90">
<if condition="$sr['rating_average'] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes]
<if condition="$sr['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>


If you decide to go back to the old layout, simply revert those templates, and the old layout will be restored. I will have a setting in the next version to switch between the 2 layouts, so that will not be necessary in the next version.

Derek

Shazz
08-25-2006, 12:35 AM
Here is the code for those templates I was talking about, for if you have bigger images on the toplist.

Toplist:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[toplist]</title>
<script type="text/javascript" src="clientscript/toplist.js?version=$version"></script>
</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="right">
<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="7">{$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>
<td class="thead" width="50">$vbphrase[toplist_in]</td>
<td class="thead" width="50">$vbphrase[toplist_out]</td>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
<td class="thead" width="90">$vbphrase[toplist_rating]</td>
</tr>
<if condition="$randchk >= 1 OR $num_rows >= 1">
<tr align="center">
<td class="alt2">$rand_rank</td>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK">$randsite[name]</a><br />$randsite[description]<br />
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $randsite['imagecode'] != ''">
<br /><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$randsite[id]" border="0" alt="" /></a>
</if>
</td>
<td class="alt2" width="50">$randsite[in]</td>
<td class="alt1" width="50">$randsite[out]</td>
<td class="alt2" width="50">$randsite[views]</td>
<td class="alt1" width="90">
<if condition="$rating == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_$rating.gif" alt="" />
<br />
$randsite[votes]
<if condition="$randsite['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$randsite[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>
<else />
<tr align="center">
<td class="alt1" colspan="7">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="7"><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="7">{$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>
<td class="thead" width="50">$vbphrase[toplist_in]</td>
<td class="thead" width="50">$vbphrase[toplist_out]</td>
<td class="thead" width="50">$vbphrase[toplist_views]</td>
<td class="thead" width="90">$vbphrase[toplist_rating]</td>
</tr>
$html
<tr align="center">
<td class="thead" colspan="7">
<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>

$footer
</body>
</html>


Toplist_1:

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK">$sr[name]</a><br />$sr[description]
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$vboptions[bburl]/out.php?id={$sr[id]}" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a><br />
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
<if condition="!is_member_of($bbuserinfo, 1)">
[ <a href="#" 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;">$vbphrase[toplist_report]</a> ]
</if>
</td>
<td class="alt2" width="50">$sr[in]</td>
<td class="alt1" width="50">$sr[out]</td>
<td class="alt2" width="50">$sr[views]</td>
<td class="alt1" width="90">
<if condition="$sr['rating_average'] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes]
<if condition="$sr['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>


Toplist_2:

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]">$sr[name]</a><br />$sr[description]
<if condition="$vboptions['toplist_show_user_banners'] == 1 AND $sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<br /><br /><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$sr[id]" border="0" alt="" /></a><br />
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
</td>
<td class="alt2" width="50">$sr[in]</td>
<td class="alt1" width="50">$sr[out]</td>
<td class="alt2" width="50">$sr[views]</td>
<td class="alt1" width="90">
<if condition="$sr['rating_average'] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_{$rating_image}.gif" alt="" />
<br />
$sr[votes]
<if condition="$sr['votes'] == 1">
$vbphrase[toplist_vote]
<else />
$vbphrase[toplist_votes]
</if>
</if>
<if condition="!$show['guest']">
<br />
<a href="#" onclick="javascript:window.open('$vboptions[bburl]/toplist.php?do=rate&amp;id=$sr[id]','rate_site','menubar=0,resizable=1,width=$vbopti ons[toplist_popup_width],height=$vboptions[toplist_popup_height]');return false;">$vbphrase[toplist_rate_site]</a>
</if>
</td>
</tr>


If you decide to go back to the old layout, simply revert those templates, and the old layout will be restored. I will have a setting in the next version to switch between the 2 layouts, so that will not be necessary in the next version.

Derek
This helps a ton! :)
I bet alot of people could use this

Robbed
08-25-2006, 09:51 PM
Thanks Derek :)

derekivey
08-26-2006, 02:04 PM
No Problem :).

Mr.D
08-30-2006, 04:49 AM
I have a question when will the new update be and when will there be a text links available for forum home or entire vbulletin to show as top list or as random list?

I have found 2 bugs buttons show on the forumhome page when they are not validated and aproved.

And email that i get when someone post a link to topsites is not good.

derekivey
08-30-2006, 09:33 AM
I have a question when will the new update be and when will there be a text links available for forum home or entire vbulletin to show as top list or as random list?
I currently do not have an ETA on the next version but am working hard to finish it. I've just been pretty busy with school starting. I'll try and get it out soon. I'll try and add the text link thing to the next version as well.

I have found 2 bugs buttons show on the forumhome page when they are not validated and aproved.
Ok, I'll look into that. I probably forgot to update that part.

And email that i get when someone post a link to topsites is not good
What do you mean?

Thanks,
Derek

MotMann
08-30-2006, 03:08 PM
Okey.. i have two questions :)

A) i have problem with the Userranking. If the rotate banner not displayed in the same category, there ar no rankings from the user displayed.

http://www.xbox360gamertag.de/Forum/toplist.php?cid=4


B) Does the Hits from the other side counted? If the private Usershomepage displayed 600 times, are the counter on 600 also? Ore just counter the "in klicks" from the button from the other side?

I wanna a stats, how often the other side be visits. Does that mod do that?

(sorry for my bad english)

derekivey
08-31-2006, 07:59 PM
Okey.. i have two questions :)

A) i have problem with the Userranking. If the rotate banner not displayed in the same category, there ar no rankings from the user displayed.

http://www.xbox360gamertag.de/Forum/toplist.php?cid=4


B) Does the Hits from the other side counted? If the private Usershomepage displayed 600 times, are the counter on 600 also? Ore just counter the "in klicks" from the button from the other side?

I wanna a stats, how often the other side be visits. Does that mod do that?

(sorry for my bad english)
I'll look into the first thing. It might be a bug.

For your second question, the hits on the user's page are counted under the views column, if they added the hits code to their site. If they add their in link to their site, and people click that, it counts as 1 in hit and also adds 1 to the views count.

I am currently working on adding stats to the next version, but do not have an ETA for the next version yet.

Derek

gunitman247
09-05-2006, 03:38 PM
awesome. What do i put as the in link? Can someone help me?

derekivey
09-05-2006, 07:05 PM
Any URL you wish. Most people type in the URL to their forums, and some type in the URL to the Toplist.

DementedMindz
09-06-2006, 06:36 PM
any plans on caching the images cause they seem to take the longest to load and I have them uploaded to my server.

derekivey
09-06-2006, 06:49 PM
I will look into this. Although the browser should already cache them because I don't have it sending any no-cache headers.

Derek

DementedMindz
09-06-2006, 06:54 PM
im using firefox and thats the only thing that takes long to load. just seemed strange cause everything else flys on opening but then it waits for the images. another nice feature would be to have say only the first 5 sites display there image. i know there is a feature for the hits but im thinking it may be more useful having it for only the first few sites cause if you have like 40 sites that would be some lag if they all had images displayed.

derekivey
09-06-2006, 10:19 PM
Ok, I'll try and add that to the next version as well :). What do you want it to show for the other sites then? Just have it say none?

DementedMindz
09-06-2006, 11:14 PM
yeah that or have it just not display anything i been looking at ways to change the look of mine a bit. this way it removes that button table and adds it all in one with the site name and description. and then has the stats on the left side of it like it is now

derekivey
09-07-2006, 09:51 AM
Ok, I'll see what I can do. I might have to site name row have a colspan of 2 for the ones with no button shown.

Derek

derekivey
09-07-2006, 11:41 PM
Hi,

Can someone please make me 2 small images for this hack? The first one needs to be a green arrow pointing up, and the other should be a red arrow pointing down. Size should be around 25x25 (or whatever looks better, just needs to be small). These will be beside sites that have increased or decreased their rank since the cron last ran (a new feature I am implementing).

Thanks,
Derek

DementedMindz
09-07-2006, 11:58 PM
25 x 25 thats kinda big. for the stats to go up and down with dont you think?

DementedMindz
09-08-2006, 12:00 AM
here is to 13x13 images i can make others once i get back.

53180
53181

b6gm6n
09-08-2006, 01:20 AM
Here's a couple more arrows!

-b6

derekivey
09-08-2006, 01:57 AM
Thanks guys. Those should be fine :). I will include both in the zip file to give everyone a choice of which they want to use.

Derek

dendrob
09-09-2006, 10:00 PM
Derek,
Thanks for implementing the up/down since last ranking period. Also don't forget a 3rd image (remained the same). It will help the layout flow better. Perhaps a dot or a dash.

also, if you have time those would be great additional features (recap from PM):

- In AdminCP, select ranking cycle as either day/week/month. This would reset the counters daily/weekly/monthly. So after the time period it would be clean slate and the ranking would start at zero again. Yet the up/down/same graphics would tell you what happened to the site since last ranking period.

- I know you said it would be hard to do, but (at least for me) the IN/OUT hits aren't really needed, if you're ranking by pageviews, would be great if you could hide the other columns and just display pageviews.

- In addition, calculating average figures, would be great too.
- Ranking could be by either actual pageviews (the number of visitors to the listed page) or average pageviews (based on whatever history you have - or say the last 10 ranking cycles)

- I already love the statistics page !!!

- I believe you already implemented this, but it's not working for me very well. I would love for the topsites script to count all the pageviews that the listed sites are getting, even if no one actually visited the forum or topsite. basically if I'm ranking by pageviews and the listed site got 5000 visitors, I'd love the script to rank them at 5000, even though 300 were guests from my forum. I hope you know what I mean. Have it count pageviews independently from vb/topsite visitors. This is actually a dream come true for me! This is the muscle behind AArdvarkTS


dendrob
www.VivariumTopSites.com

derekivey
09-09-2006, 10:20 PM
Thanks for implementing the up/down since last ranking period. Also don't forget a 3rd image (remained the same). It will help the layout flow better. Perhaps a dot or a dash.
Oops, forgot about that image. DementedMindz and b6gm6n, can you guys please make one representing no change in rank? Perhaps maybe make it yellow or black? Thanks :).

also, if you have time those would be great additional features (recap from PM):

- In AdminCP, select ranking cycle as either day/week/month. This would reset the counters daily/weekly/monthly. So after the time period it would be clean slate and the ranking would start at zero again. Yet the up/down/same graphics would tell you what happened to the site since last ranking period.

- I know you said it would be hard to do, but (at least for me) the IN/OUT hits aren't really needed, if you're ranking by pageviews, would be great if you could hide the other columns and just display pageviews.

- In addition, calculating average figures, would be great too.
- Ranking could be by either actual pageviews (the number of visitors to the listed page) or average pageviews (based on whatever history you have - or say the last 10 ranking cycles)

- I already love the statistics page !!!

- I believe you already implemented this, but it's not working for me very well. I would love for the topsites script to count all the pageviews that the listed sites are getting, even if no one actually visited the forum or topsite. basically if I'm ranking by pageviews and the listed site got 5000 visitors, I'd love the script to rank them at 5000, even though 300 were guests from my forum. I hope you know what I mean. Have it count pageviews independently from vb/topsite visitors. This is actually a dream come true for me! This is the muscle behind AArdvarkTS


dendrob
www.VivariumTopSites.com (http://www.VivariumTopSites.com)
I will be working on all of those, and hope to have them done for the next version.

Derek

DementedMindz
09-09-2006, 11:14 PM
I have a strange problem in admincp when someone submits a site and I go to approve it I get this. There are %1$s sites in the Toplist to be validated. To view and validate them, go here. Then when I recieve the email it dont show the site it shows this.

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

dendrob
09-09-2006, 11:18 PM
If you do all these things, that script will be da-da-da-da-da'BOMB !!!!

b6gm6n
09-09-2006, 11:25 PM
please make one representing no change in rank? Perhaps maybe make it yellow or black? Thanks :)

Ok dude...check the attached! - pick a colour!

-b6

DementedMindz
09-09-2006, 11:28 PM
I would use like a = sign if the stay even and there is no change in the rank

DementedMindz
09-09-2006, 11:35 PM
A topsite layout like this (http://www.aardvarktopsitesphp.com/topsites/) would be nice. It pretty much has everything you can ask for. You can use small buttons to large banners for images and it has a nice stats page also.

dendrob
09-10-2006, 01:03 AM
I say black - or better yet dark gray :)

DementedMindz
09-10-2006, 01:11 AM
yeah but you have to worry about members with dark themes also. keeping it light will allow most members to use it, if not you can always change the color easy.

dendrob
09-10-2006, 01:24 AM
True that, but if the site position didn't change, you let it be, don't need to be flashy if things remained the same. UP/DOWN you shine some colour... on a flip side, true - easy enough to change it to fit your skin

derekivey
09-10-2006, 01:46 AM
A topsite layout like this (http://www.aardvarktopsitesphp.com/topsites/) would be nice. It pretty much has everything you can ask for. You can use small buttons to large banners for images and it has a nice stats page also.
I'll probably keep the layout like it is. I will although have a new setting in the next version to have the buttons shown beneath the site name in the same column, so site owners can switch to that if they wish.

Derek

derekivey
09-10-2006, 01:47 AM
I have a strange problem in admincp when someone submits a site and I go to approve it I get this. There are %1$s sites in the Toplist to be validated. To view and validate them, go here. Then when I recieve the email it dont show the site it shows this.

Site Name: Array[sitename]
URL: Array[url]
Description: Array[description]
Username: Wicked
I'll take a look at this, it might be a bug. Looks like something went wrong with the construct_phrase() function.

Derek

EDIT: Yup, seems to be happening for me as well, I'll look into it.

DementedMindz
09-10-2006, 02:10 AM
thanks wasnt sure if it was just me

Ninth Dimension
09-10-2006, 02:15 AM
This addon is GREAT, everything I could imagine.. and more!!! Got it running on my vB3.6.0 site and it's working great.

One question, and I'm sure it's a silly one, but I just want to be sure... when you set the usergroup permissions, I assume the options of 'edit sites' and 'delete sites' options only apply to sites that that user has added?

A suggestion for an addition, to let the number of sites each user is allowed to add to be based on usergroup, rather than a global setting for all.

Anyway, great hack, looking forward to any and all updates you make :D

derekivey
09-10-2006, 03:46 PM
This addon is GREAT, everything I could imagine.. and more!!! Got it running on my vB3.6.0 site and it's working great.

One question, and I'm sure it's a silly one, but I just want to be sure... when you set the usergroup permissions, I assume the options of 'edit sites' and 'delete sites' options only apply to sites that that user has added?

A suggestion for an addition, to let the number of sites each user is allowed to add to be based on usergroup, rather than a global setting for all.

Anyway, great hack, looking forward to any and all updates you make :D
Yes, the edit site and delete site permissions are just for the sites added by that user. The last option (I think it's called administrate sites or moderate sites) allows that usergroup to edit each site, even if it wasn't submitted by them.

Thanks for the suggestion about changing the limit to be based on usergroups instead of being a global setting. I will try and add that to the next version as well.

Derek

Ninth Dimension
09-10-2006, 04:47 PM
I have another suggestion, if you don't mind... How about the ability for the IN page to be diffrent, based on which category the site is in?

For example, I'm running two sites, TheICE.co.uk (http://theice.co.uk/) and UnknownTales.net (http://unknowntales.net/). What I'd like to do, in theory, is set-up a category for each of these sites, and when someone clicks on my button, it checks which category the site is in, and forwards it to the relevent page.

Of course, extended options to this feature could be the ability to define diffrent link-in buttons for each category, as well as the ability for the top-ten toplist sites data, based on category, to be displayed on a non-vB page (I might even try building that one myself).

Anyway, I hope you like the ideas :D

derekivey
09-10-2006, 07:08 PM
I have another suggestion, if you don't mind... How about the ability for the IN page to be diffrent, based on which category the site is in?

For example, I'm running two sites, TheICE.co.uk (http://theice.co.uk/) and UnknownTales.net (http://unknowntales.net/). What I'd like to do, in theory, is set-up a category for each of these sites, and when someone clicks on my button, it checks which category the site is in, and forwards it to the relevent page.

Of course, extended options to this feature could be the ability to define diffrent link-in buttons for each category, as well as the ability for the top-ten toplist sites data, based on category, to be displayed on a non-vB page (I might even try building that one myself).

Anyway, I hope you like the ideas :D
Nice suggestion! I will see if I can add it to the next version. Also in the next version I will have a file that will output XML and RSS feeds with the top x sites (you specify this in the url). I will also be making a simple API to show that stuff on a non-vB page.

Derek

Derek

Ninth Dimension
09-10-2006, 10:25 PM
Also in the next version I will have a file that will output XML and RSS feeds with the top x sites (you specify this in the url). I will also be making a simple API to show that stuff on a non-vB page.
So based on the query in the URL, you get to choose which category you wish to display... This sounds fantastic :D I assume it'll contain all the info you see on the main toplist site, as well as things like the buttons.

While I'm here, I'm interested... The veryify option you have, to check that the user had put the code on their site - exactly how does this work? I should imagine it goes to the site and looks for something, but what exactly does it look for?

Seriously, I'm blown away by how good this hack is.... keep up the good work :D

derekivey
09-10-2006, 11:08 PM
Yes, that is correct :).

Chicago_VLNU_4s
09-11-2006, 12:54 AM
i had to load a backup of my site and last time i backed up was BEFORE i added this hack.. heres the error i'm getting.

Database error in vBulletin 3.5.4:

Invalid SQL:
CREATE TABLE `toplist_ratings` (
`id` int(10) NOT NULL auto_increment,
`site_id` int(10) NOT NULL default '0',
`username` varchar(255) NOT NULL default '',
`rating` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;;

MySQL Error : Table 'toplist_ratings' already exists
Error Number : 1050
Date : Sunday, September 10th 2006 @ 09:42:03 PM
Script : http://www.offthaave.com/forums/admincp/plugin.php
Referrer : http://www.offthaave.com/forums/admincp/plugin.php?do=productadd
IP Address : **.*.***.**
Username : 4 CORNER HUSTLA
Classname : vB_Database

so, there's site ratings that have been made in the "plugin.php" that's holding me back from re-importing the product. Any ideas on what i can do?

derekivey
09-11-2006, 12:57 AM
Either delete all of the toplist_ tables, or you will have to manually edit the product XML file to remove the confilicting tables from it since they already exist. I will have better install code in the next version so these errors shouldn't show then.

Derek

DementedMindz
09-11-2006, 12:57 AM
if you had to use a backup from before you used then the it wouldnt show in sql since you didnt have it installed then. but if you have no important info for topsites erase the topsites tables.

DementedMindz
09-11-2006, 12:58 AM
lmfao you beat me to it i was typing it the same time.

Chicago_VLNU_4s
09-11-2006, 04:23 AM
where do i delete the topsite tables from?? **Still new to this by two months** :)

derekivey
09-13-2006, 01:09 AM
Does your host give you some sort of control panel to use? If so, there should be a link to PHPMyAdmin in there, if not you will have to edit your vBulletin config to allow your userid to execute queries, then go to AdminCP -> Maintenance -> Execute Query, and enter these queries. Please note that doing this will delete all Toplist data from the tables, so if you have sites in the Toplist, they will be gone after doing this!


DROP TABLE IF EXISTS toplist_categories;
DROP TABLE IF EXISTS toplist_clicks;
DROP TABLE IF EXISTS toplist_ratings;
DROP TABLE IF EXISTS toplist_reports;
DROP TABLE IF EXISTS toplist_sites;


Derek

Chicago_VLNU_4s
09-13-2006, 01:37 AM
^^

I do have CPanel, but i did the second way, through Admin CP and here's the error I got

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';
DROP TABLE IF EXISTS toplist_clicks;
DROP TABLE IF EXISTS toplist_ratings;
' at line 1

derekivey
09-13-2006, 09:50 AM
hmm does this work?


DROP TABLE IF EXISTS `toplist_categories`;
DROP TABLE IF EXISTS `toplist_clicks`;
DROP TABLE IF EXISTS `toplist_ratings`;
DROP TABLE IF EXISTS `toplist_reports`;
DROP TABLE IF EXISTS `toplist_sites`;

Chicago_VLNU_4s
09-14-2006, 02:03 AM
nope..

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';
DROP TABLE IF EXISTS `toplist_clicks`;
DROP TABLE IF EXISTS `toplist_ratings' at line 1

derekivey
09-14-2006, 09:41 AM
Not sure then, your going to have to try that in PHPMyAdmin, I'm not sure why it's giving you errors in vB's system.

Derek

DementedMindz
09-14-2006, 02:16 PM
I was just thinking of a feature. ok you know how you have a random site at the top maybe you can change it to a featured site. This is what I was thinking... Say you have a cron reset the stats at the begining of each month. Then the month starts and you get each sites votes at the end of the month who ever has the highest vote stays on the featured site for the month until the stats are reset then its on to the following month where the stats are checked again for a new featured site. I think it may bring more hits in and be a nicer feature then the random site. Let me know what you think???

derekivey
09-14-2006, 07:13 PM
I'll see about adding it. Shouldn't be that hard to add, but the new stats feature isn't done yet, so I'll have to wait till then and add it then.

Derek

lexx27
09-16-2006, 11:44 PM
It would be great if each category had independent rank

derekivey
09-17-2006, 01:51 AM
It would be great if each category had independent rank
You mean show their rank in that category when they select a category?

derekivey
09-17-2006, 01:53 AM
Hey guys,

I am getting closer to finishing 1.0.10, is there anything that I forgot to add to my to do list in the first thread? If so, please let me know so I can add it, so it can be in the next version. If you PMed me about something to be added, please don't reply saying to put it in the to do list, I will take a look at those later and see which ones I can add to 1.0.10.

Thanks,
Derek

dendrob
09-17-2006, 02:32 AM
-Would be nice to have a choice which buttons to allow members to display, ie only link and ranked buttons (ie 1-100.png)

-if ranking by pageviews, count all pageviews that the site got, from all visitors, not only people that visited the vbforum/toplist.

derekivey
09-17-2006, 03:00 AM
-if ranking by pageviews, count all pageviews that the site got, from all visitors, not only people that visited the vbforum/toplist.
It should already do this if they added the tracking code (separate from the code for their in link) to their site. If they don't add the code, then there is no way to do that.

derekivey
09-18-2006, 01:45 AM
DementedMindz, can you please make a image representing no change in rank?

Thanks,
Derek

DementedMindz
09-18-2006, 04:45 AM
Hey sorry about that I just woke back up was up late night for a party. What color would you like it?

DementedMindz
09-18-2006, 04:49 AM
Lets me know how this is or if you want something else.

53593

derekivey
09-18-2006, 09:45 AM
That will be fine. Thanks :).

DementedMindz
09-18-2006, 09:48 AM
no problem glad I could help.

lexx27
09-19-2006, 06:04 PM
You mean show their rank in that category when they select a category?
No, I mead each category has its own rank. Not a global rank.

derekivey
09-19-2006, 07:20 PM
Ok, I'll see what I can do. Not sure if it will be in the next version or not though. I will try and get it in there, but can't make any guarantees.

Derek

lexx27
09-19-2006, 07:31 PM
Ok, thank you. I ll be waiting ! :)

derekivey
09-20-2006, 12:46 AM
Stats page is almost complete everyone :). We are nearing the release of 1.0.10 :D

lexx27
09-20-2006, 12:55 AM
You cant image how I want this release. Will it be 3.6.1 compatible?

Steve B
09-20-2006, 10:46 AM
Running latest version of toplist and VB 3.6

I have a small problem with users not being able to edit/delete their own sites despite having the required permissions set in the admin CP. Currently all they see next to their website on the list is

Delete Site ] [ Report ]

with the first square bracket missing from Delete and it not being a link (so that doesn’t work either) and no sign of ‘edit’ anywhere. Everything is fine if logged in as admin though…any ideas?

lexx27
09-20-2006, 12:55 PM
I have the same issue! Users cant add/edit!

derekivey
09-20-2006, 08:08 PM
Please try this fix... https://vborg.vbsupport.ru/showpost.php?p=1033169&postcount=945

Thanks.

Derek

b6gm6n
09-20-2006, 09:40 PM
dude... looking forward to the new release...may i make a suggestion?... please please please remove the text links from the description for mods or admins, i.e edit/delete/whatever as it riuns the layout... i actually disabled it and remove it and edit via admin... a button would be great if possible... looks more pro! :) - also... i use toplist for 468x60 banners (typical size anyways) and so my layout is customised, would be nice to choose which columns to show... ie > http://www.sgurl.org/forums/toplist.php, i just edited templates etc... cheers anyways, top mod!

-M

DementedMindz
09-20-2006, 09:50 PM
thats some huge ding dongs lmfao

lexx27
09-20-2006, 10:07 PM
Please try this fix... https://vborg.vbsupport.ru/showpost.php?p=1033169&postcount=945

Thanks.

Derek
i cant find this line but I dont care to fix it if you plan to release the new version today for example :)

angkor408
09-20-2006, 10:14 PM
I'm having issue register user was able to add but can't edit or delete there site. I follow this instruction:

https://vborg.vbsupport.ru/showp...&postcount=945 but still got the same error. I was able edit or delete login as ADMIN. I check my usergroup option for "Register" which have access to delete or edit site.

If I manually go to this link login in as register user: http://www.khmerclub.org/forums/edit_site.php

I got this error msg: timmy, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Any other suggestion ? Thank Angkor

b6gm6n
09-21-2006, 12:11 AM
thats some huge ding dongs lmfao

haha...yeah! - Hey anyone else notice that the images come in really really slowly?

-b6

derekivey
09-21-2006, 01:12 AM
I'm having issue register user was able to add but can't edit or delete there site. I follow this instruction:

https://vborg.vbsupport.ru/showp...&postcount=945 but still got the same error. I was able edit or delete login as ADMIN. I check my usergroup option for "Register" which have access to delete or edit site.

If I manually go to this link login in as register user: http://www.khmerclub.org/forums/edit_site.php

I got this error msg: timmy, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Any other suggestion ? Thank Angkor
You need to give each usergroup the appropriate permission in the Usergroup Editor under Toplist Permissions.

Derek

derekivey
09-21-2006, 01:12 AM
dude... looking forward to the new release...may i make a suggestion?... please please please remove the text links from the description for mods or admins, i.e edit/delete/whatever as it riuns the layout... i actually disabled it and remove it and edit via admin... a button would be great if possible... looks more pro! :) - also... i use toplist for 468x60 banners (typical size anyways) and so my layout is customised, would be nice to choose which columns to show... ie > http://www.sgurl.org/forums/toplist.php, i just edited templates etc... cheers anyways, top mod!

-M
Yes, I plan on removing those and replacing them with inline moderation :).

Derek

EDIT: Wait, not sure how to do that for edit site though, like what if they select multiple sites?

Steve B
09-21-2006, 05:45 AM
Hi derek

I have edited the line(s) of code in toplist_1 as suggested to correct the Delete Site ] [ Report ] and now it correctly displays just report, thanks for that :)
however members still have no link visible to be able to edit or delete their own entries from the toplist. Each usergroup has the appropriate permission in the Usergroup Editor under Toplist Permissions and if they go directly to edit_site.php?id=X they can successfully edit.

derekivey
09-21-2006, 09:26 AM
Hmm... can you paste the contents of that template here in tags?

Thanks,
Derek

Steve B
09-21-2006, 09:43 AM
Sure.

It has been edited to remove the vote function as per the instructions earlier in this thread but we have also tried it with the templates reverted back to the original. I may have missed something though...

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK">$sr[name]</a><br />$sr[description]
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
<if condition="!is_member_of($bbuserinfo, 1)">
[ <a href="#" 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;">$vbphrase[toplist_report]</a> ]
</if>
</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1">
<if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<td class="alt2" width="88"><a href="$vboptions[bburl]/out.php?id={$sr[id]}" target="_BLANK"><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">1<else />2</if>" width="50">$sr[in]</td>
<td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">2<else />1</if>" width="50">$sr[out]</td>
<td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">1<else />2</if>" width="50">$sr[views]</td>
</tr>

b6gm6n
09-21-2006, 01:07 PM
Yes, I plan on removing those and replacing them with inline moderation :).

Derek

EDIT: Wait, not sure how to do that for edit site though, like what if they select multiple sites?

hmmm dunno my friend... maybe mods or those with the right perms can enter the admincp for editing the toplist sites, or perhaps a seperate new template for edits which would include the ability to alter multiple entires.... either way your the don! :)

-b6

angkor408
09-21-2006, 03:15 PM
derekivey, I don't see any option that say usergroup editor. All I see in my toplist is:

toplist option
toplist sites
add site
catergoies
mass delete site
inactive sites
suspended sites
mass suspended sites
reported sites
reset toplist






You need to give each usergroup the appropriate permission in the Usergroup Editor under Toplist Permissions.

Derek

derekivey
09-21-2006, 08:06 PM
Sure.

It has been edited to remove the vote function as per the instructions earlier in this thread but we have also tried it with the templates reverted back to the original. I may have missed something though...

<tr align="center">
<if condition="$cat != 1">
<td class="alt2">$rank</td>
</if>
<td class="alt1"><a href="$vboptions[bburl]/out.php?id=$sr[id]" target="_BLANK">$sr[name]</a><br />$sr[description]
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites'] OR $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
<br />
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
<br />
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['caneditsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/edit_site.php?id=$sr[id]">$vbphrase[toplist_edit_site]</a> ]&nbsp;
</if>
</if>
<if condition="$bbuserinfo['username'] == $sr['username']">
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['candeletesites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
<else />
<if condition="$permissions['toplistpermissions'] & $vbulletin->bf_ugp['toplistpermissions']['canadminsites']">
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">$vbphrase[toplist_delete_site]</a> ]
</if>
</if>
<if condition="!is_member_of($bbuserinfo, 1)">
[ <a href="#" 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;">$vbphrase[toplist_report]</a> ]
</if>
</td>
<if condition="$vboptions['toplist_show_user_banners'] == 1">
<if condition="$sr['imagecode'] != '' AND $sr['in'] >= $vboptions['toplist_number_of_in_hits_until_banner_shows']">
<td class="alt2" width="88"><a href="$vboptions[bburl]/out.php?id={$sr[id]}" target="_BLANK"><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">1<else />2</if>" width="50">$sr[in]</td>
<td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">2<else />1</if>" width="50">$sr[out]</td>
<td class="alt<if condition="$vboptions['toplist_show_user_banners'] == 1">1<else />2</if>" width="50">$sr[views]</td>
</tr>
Quick question... Are admins able to see those links, or is it everyone that can't see them?

hmmm dunno my friend... maybe mods or those with the right perms can enter the admincp for editing the toplist sites, or perhaps a seperate new template for edits which would include the ability to alter multiple entires.... either way your the don! :)

-b6
I think I might just leave them for now and change it later to inline moderation.

derekivey, I don't see any option that say usergroup editor. All I see in my toplist is:

toplist option
toplist sites
add site
catergoies
mass delete site
inactive sites
suspended sites
mass suspended sites
reported sites
reset toplist
No, what I mean is go to Usergroups -> Usergroup Manager -> Edit Permissions for each group under the Toplist Permissions in the list of different permissions.

Derek

angkor408
09-21-2006, 11:15 PM
Derek, I check my usergroup under toplist permission for " Register user" I have check the following option:

Help Toplist Permissions

Can View Toplist= Yes
Can Add Sites = Yes
Can Edit Sites = Yes
Can Delete Sites =Yes
Can Administer All Sites= NO

Register user can't edit or delete the site. If login as Admin,I was able to delete and edit but not register user.


Tim









Quick question... Are admins able to see those links, or is it everyone that can't see them?


I think I might just leave them for now and change it later to inline moderation.


No, what I mean is go to Usergroups -> Usergroup Manager -> Edit Permissions for each group under the Toplist Permissions in the list of different permissions.

Derek

Qwest
09-22-2006, 01:02 AM
BUG REPORT: This hack is NOT compatible with VBSEO

The redirect fails and gets stuck in a loop.

Steve B
09-22-2006, 05:38 AM
Quick question... Are admins able to see those links, or is it everyone that can't see them?

Yes everything is fine for Admin.

Don't worry about this too much if you are on the verge of releasing an update, we are able to edite and delete for our members anyway so are still able to use the toplist. If its something simple though it would make just a little less work for us admins, if not then I'll wait for the update and see if that solves our issue :)

Cheers

Steve B
09-22-2006, 05:42 AM
BUG REPORT: This hack is NOT compatible with VBSEO

The redirect fails and gets stuck in a loop.

It works fine with VBSEO

You just have to instruct VBSEO to exclude toplist.php, out.php, in.php & add_site.php. This is done under the VBSEO options > Exclude Pages

HTH

derekivey
09-22-2006, 10:51 PM
Yes everything is fine for Admin.

Don't worry about this too much if you are on the verge of releasing an update, we are able to edite and delete for our members anyway so are still able to use the toplist. If its something simple though it would make just a little less work for us admins, if not then I'll wait for the update and see if that solves our issue :)

Cheers
Yeah, might be a good idea to wait for the new version. I hope to have it out by Monday, hopefully if everything goes as planned. I just need to finish the stats page and add the comment system.

Derek

tazB.ca
09-24-2006, 08:26 PM
Worksfine With 3.60...*installs*

kobescoresagain
09-24-2006, 10:09 PM
I browsed through, but didn't see any help on my error. I get this error:

Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/apache/htdocs/forums/toplist.php(555) : eval()'d code on line 54

on www.sportscardfreaks.com/forums/toplist.php

Any idea on what this is? Or what do you need to help me solve it. Thanks

derekivey
09-25-2006, 01:08 AM
I browsed through, but didn't see any help on my error. I get this error:

Parse error: parse error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/apache/htdocs/forums/toplist.php(555) : eval()'d code on line 54

on www.sportscardfreaks.com/forums/toplist.php

Any idea on what this is? Or what do you need to help me solve it. Thanks
This should fix it... https://vborg.vbsupport.ru/showpost.php?p=1033169&postcount=945

Chicago_VLNU_4s
09-26-2006, 12:33 AM
i know i'm a little late on this, but i ran that query thruogh my CPanel and it worked. I was able to import the product again.. thanks

derekivey
09-26-2006, 01:44 AM
No Problem.

Chicago_VLNU_4s
09-26-2006, 04:41 AM
hey.. ok, so when I (the admin) look at the sites, i can edit, delete, and use the other option, bbut when i log in as another user, here's what it looks like.

https://vborg.vbsupport.ru/

you see the highlighted part which is in the red box? Why is that happening? Is a tag not closed correctly?

Mr.D
09-26-2006, 05:05 AM
When will the new release be available?

Mr.D
09-26-2006, 05:38 AM
I have found a bug in toplist. The in.php is not working right

Check the example http://www.the-tutorials.com/in.php?id=2

derekivey
09-26-2006, 09:41 AM
hey.. ok, so when I (the admin) look at the sites, i can edit, delete, and use the other option, bbut when i log in as another user, here's what it looks like.

https://vborg.vbsupport.ru/

you see the highlighted part which is in the red box? Why is that happening? Is a tag not closed correctly?
This seems to be fixed in 1.1.10. Can you please wait for that version, as I do not remember how I fixed it lol. I hope to have 1.1.10 out in a few days.

Thanks,
Derek

derekivey
09-26-2006, 09:43 AM
When will the new release be available?
A few days if everything goes as planned.

I have found a bug in toplist. The in.php is not working right

Check the example http://www.the-tutorials.com/in.php?id=2
No, that is not a bug. You did not set your In URL Setting. Once you do that it will work.

Derek

dendrob
09-26-2006, 04:45 PM
Derek, any way to clean up the code for tracking pageviews? If you look here (http://firstrays.com/) you can see the iframe resulting in a small square right next to the button. Visible in IE, FF and Opera.

Thanks

derekivey
09-26-2006, 09:49 PM
I'll see what I can do. I might be able to replace it with a transparent image, kind of like what vB uses for the cron system.

Derek

Mr.D
09-27-2006, 04:28 AM
A few days if everything goes as planned.


No, that is not a bug. You did not set your In URL Setting. Once you do that it will work.

Derek



Ok Great Looking forward to it:)

Mr.D
09-27-2006, 04:49 AM
Ok i believe that i found a bug now. When new site is submited i get this email without the Site name url etc.. just some array

A new site has been submitted to The Tutorials's Toplist.
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]
Username: Damir

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

Chicago_VLNU_4s
09-28-2006, 01:06 AM
yeh, i can wait so just let us know. Thank you

loonytune15
09-28-2006, 01:32 AM
If its a bif feature release and un upgrade to vb 3.6, why not call it Toplist v2 :D

Lqd
09-28-2006, 05:08 AM
Any idea how I can make the sitename in the toplist bold? and the discription of the site either italics or fontsize 8. That would be really nice!

Lining the box out to the left as well.

Any takers for this little issue I have here! Please let me know!

For the rest, great work! Love this addon!

Orcun
09-28-2006, 09:47 PM
Are we talking about

http://www.***/admincp/usergroup.php?do=modify

when we are reading
4. Edit each usergroup's permissions at the very bottom set the Toplist Permissions to what ever you want for each usergroup.

in Readme file ?

I did Rebuilt Bitfields also but in my User Group management part theres nothing about Toplist. I use 3.6.1 vB.

I would be glad If I receive any help

EDIT: Solved the problem. My mistake.

Lqd
09-28-2006, 09:53 PM
Are we talking about

http://www.***/admincp/usergroup.php?do=modify

when we are reading
4. Edit each usergroup's permissions at the very bottom set the Toplist Permissions to what ever you want for each usergroup.

in Readme file ?

I did Rebuilt Bitfields also but in my User Group management part theres nothing about Toplist. I use 3.6.1 vB.

I would be glad If I receive any help


You have to edit induvidual User groups, like Admin, Moderators, Registered users.

Once you click edit group, you will notice there are extra permission set at the bottom of the usergroup. Like: Can view toplist, can add sites etc etc.

Hope this is clear enough. :)

Chicago_VLNU_4s
09-29-2006, 04:53 AM
hey.. ok, so when I (the admin) look at the sites, i can edit, delete, and use the other option, bbut when i log in as another user, here's what it looks like.

http://www.offthaave.com/misc/toplist.PNG

you see the highlighted part which is in the red box? Why is that happening? Is a tag not closed correctly?

so nobody else is getting this problem?

DementedMindz
09-29-2006, 12:32 PM
there is a fix a few pages back I had the same error but was fixed by derekivey post

angkor408
09-29-2006, 03:32 PM
For some reason "register user" can't edit or delete there ad. Under usergroup permission which allow user to edit and delete already check. Only Administrator allow to edit and delete. Anyone ever come to this kind of situation? Angkor

Chicago_VLNU_4s
09-29-2006, 03:42 PM
there is a fix a few pages back I had the same error but was fixed by derekivey post

well there's 77 pages, do you remember exactly which one it was on?

DementedMindz
09-29-2006, 05:28 PM
Search this Thread always works well in that case. Have you tried this ? https://vborg.vbsupport.ru/showpost.php?p=1033169&postcount=945

Chicago_VLNU_4s
09-29-2006, 05:54 PM
well i wouldn't know what to search for, but thanks! it worked!

derekivey
09-29-2006, 11:52 PM
Ok i believe that i found a bug now. When new site is submited i get this email without the Site name url etc.. just some array


A new site has been submitted to The Tutorials's Toplist.
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]
Username: Damir

To validate it, login to your AdminCP, and click the Inactive users link on the left under Toplist..
Hmm, I'll look into it.

If its a bif feature release and un upgrade to vb 3.6, why not call it Toplist v2 :D
Yeah, not sure what to make the version number. I might make it 2.0.0, since I did add a bunch of stuff, we'll see lol.

Any idea how I can make the sitename in the toplist bold? and the discription of the site either italics or fontsize 8. That would be really nice!

Lining the box out to the left as well.

Any takers for this little issue I have here! Please let me know!

For the rest, great work! Love this addon!
You should be able to do this by editing the Toplist, Toplist_1, and Toplist_2 templates, and adding the appropriate html code to those to make it bold, italic, etc. The Toplist template has the toplist title and random site in it, Toplist_1 and Toplist_2 are used for the rows of sites.

For some reason "register user" can't edit or delete there ad. Under usergroup permission which allow user to edit and delete already check. Only Administrator allow to edit and delete. Anyone ever come to this kind of situation? Angkor
Yes, someone else had this problem. I am looking into it and it will be fixed in the next version.

angkor408
09-29-2006, 11:58 PM
Thank! looking forward to see the new version soon. :)


Yes, someone else had this problem. I am looking into it and it will be fixed in the next version.[/QUOTE]

sross
09-30-2006, 09:15 AM
Will pay for help:

I am trying to do a few template changes but can't work it out. On the main toplist page i want to remove the following columns:

Rank
In
Out
Rating

What template do I need to edit and what do I edit? I am willing to pay for a little bit of customising so if you are interested please PM me. I also want the following- category listing on main page with space between my 3 categories + sites do not move around based on activity but based on order number that I choose. Thanks

derekivey
09-30-2006, 01:46 PM
Well to remove those columns, just edit the Toplist, Toplist_1, and Toplist_2 templates to remove them. You should be able to find them very easily, just search for rank, in, out, etc.

I think I can do the second thing you are asking for, but I'll wait till I release the next version to do it.

Derek

angkor408
10-01-2006, 06:02 AM
derekivey , any ideas when the new release will be coming out?

Angkor

derekivey
10-01-2006, 04:30 PM
Hoping to have it out tonight. I just need to finish the stats page. I have decided to leave the API out until the next version.

Derek

angkor408
10-01-2006, 10:48 PM
Kool, thank for the update. Angkor

dendrob
10-01-2006, 11:37 PM
Sweeeeeet !!! Can't wait to see the new and improved !

lexx27
10-02-2006, 11:56 AM
Sweeeeeet !!! Can't wait to see the new and improved !
It will make my day!!

aycan555
10-02-2006, 05:40 PM
Is it compatible wit 3.6.1 ? I have tryed to install but it is not adding the site?
There is problems with categories.. ??

sross
10-03-2006, 12:46 AM
Hi Derek, if this is out soon with the options I requested via PM then you are still good to go with the paypal donation I spoke of. I need this so bad it ain't funny :)

derekivey
10-03-2006, 01:07 AM
Is it compatible wit 3.6.1 ? I have tryed to install but it is not adding the site?
There is problems with categories.. ??
Should work, I have not tested it though.

Derek

Shazz
10-03-2006, 03:37 AM
Should work, I have not tested it though.

Derek
Your running a 3.6.1 and haven't tested it.. Mmm
Works on mine :)

DementedMindz
10-03-2006, 04:05 AM
any word on when your update will be out?

globalinsites
10-03-2006, 10:14 AM
I get a HTTP 404 error when I try to view the demo but what I'd like to know is: does this script generate dynamic or static links?

globalinsites
10-03-2006, 02:07 PM
Does this use the vBulletin engine for output? I'm looking for a toplist or link directory to add to my site but I need static links. I'm not sure yet if this toplist has dynamic or static links but if it has dynamic links and it uses the vBulletin enginge for output then I can use the Custom Rewrite Rules of vbSEO to rewrite links to static ones I think.

memomemo
10-03-2006, 11:45 PM
Ok sorry about that heres the fix...

Open Toplist_1.

Find:
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]"></if>

Replace With:
[ <a href="$vboptions[bburl]/delete_site.php?id=$sr[id]">

There are 2 instances of this so be sure to replace both of them.

Derek


Ok I am change this code.
Usergroup = ok

But why cant see delete and edit link for user.

No link
Please help

lexx27
10-04-2006, 01:35 PM
hey derek.

Why dont you leave the Stats Page for the next version; I think many people want this release now. :)

DementedMindz
10-04-2006, 01:41 PM
he was suppose to have it out a few times now lets hope its soon.

angkor408
10-04-2006, 03:36 PM
derekivey, Did you able to get the new release work yet? Angkor




Hoping to have it out tonight. I just need to finish the stats page. I have decided to leave the API out until the next version.

Derek

ubblite
10-05-2006, 03:19 AM
Hey Derek, just a reminder here since you're updating this hack:

After submitting a new site, the width of each column for site codes, etc. break on fixed width forums.

derekivey
10-05-2006, 07:12 PM
Sorry for the delays guys. Our server was hacked, so I've been busy fixing it, we had to get an OS reload done and set everything back up. I will have the release out soon.

@ubblite: know how I can fix it?

derekivey
10-05-2006, 07:41 PM
Does this use the vBulletin engine for output? I'm looking for a toplist or link directory to add to my site but I need static links. I'm not sure yet if this toplist has dynamic or static links but if it has dynamic links and it uses the vBulletin enginge for output then I can use the Custom Rewrite Rules of vbSEO to rewrite links to static ones I think.
This hack uses the vBulletin functions and stuff. I guess the links are dynamic, they are all .php files.

Derek

lexx27
10-06-2006, 12:30 PM
Sorry for the delays guys. Our server was hacked, so I've been busy fixing it, we had to get an OS reload done and set everything back up. I will have the release out soon.

@ubblite: know how I can fix it?
Thats really sad. Hope you ll fix everything.

DementedMindz
10-07-2006, 05:06 PM
nice work Derek but only one error not Valid XHTML

Line 49 column 156: end tag for "optgroup" which is not finished

DementedMindz
10-07-2006, 05:37 PM
noticed another problem :surprised: ok say you have a out link like this...

http://example.com/modules.php?name=MS_TopSites&file=in&id=123

it turns it into this and makes it not work..

http://example.com/modules.php?name=MS_TopSites&amp;file=in&amp;id=123

angkor408
10-07-2006, 05:43 PM
Thank for the updated! I got " Register User" got an option delete now. Is there a way under " Forum Toplist" to have the site description and name in the middle instead, not tothe left site. As for the "Randon Site" It appear to be fine as how it look. Angkor

Here my toplist link:

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

DementedMindz
10-07-2006, 05:43 PM
look at the other layout options

DementedMindz
10-07-2006, 05:48 PM
another thing i see that is strange is if you refresh your admincp then try to edit templates the toplist dont appear but if you search for say top it will show them...

DementedMindz
10-07-2006, 05:54 PM
ok it Passed validation if you add a Category but if you dont then it fails but still a problem with the https://vborg.vbsupport.ru/showpost.php?p=1091892&postcount=1178 post

also if you view a site in a Category any reason it dont show the rank on that page?

DementedMindz
10-07-2006, 06:12 PM
cron dont work either

Toplist Update Rank Cache

Warning: main(/public_html/./includes/cron/toplist_rankings.php): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 108

Warning: main(): Failed opening '/public_html/./includes/cron/toplist_rankings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/cronadmin.php on line 108

Done

lexx27
10-07-2006, 06:32 PM
Rank arrows have problem to me too.

DementedMindz
10-07-2006, 06:46 PM
yeah it has to do with the cron something is messed up with that. once thats fixed they will work hopefully

derekivey
10-07-2006, 10:30 PM
nice work Derek but only one error not Valid XHTML

Line 49 column 156: end tag for "optgroup" which is not finished
I'll get it fixed ASAP, and release instructions on how to fix it.

noticed another problem :surprised: ok say you have a out link like this...

http://example.com/modules.php?name=MS_TopSites&file=in&id=123

it turns it into this and makes it not work..

http://example.com/modules.php?name=MS_TopSites&amp;file=in&amp;id=123
I'll see what I can do to fix this. It might be kind of hard to fix.

Thank for the updated! I got " Register User" got an option delete now. Is there a way under " Forum Toplist" to have the site description and name in the middle instead, not tothe left site. As for the "Randon Site" It appear to be fine as how it look. Angkor

Here my toplist link:

http://www.khmerclub.com/forums/toplist.php?
Don't quite get what you mean. Isn't it already in the middle?

another thing i see that is strange is if you refresh your admincp then try to edit templates the toplist dont appear but if you search for say top it will show them...
They should be in their own template group called Toplist Templates...

ok it Passed validation if you add a Category but if you dont then it fails but still a problem with the https://vborg.vbsupport.ru/showpost.php?p=1091892&postcount=1178 post

also if you view a site in a Category any reason it dont show the rank on that page?
It was pretty hard to do, and I think it needed me to add an extra query on that page. I will try and do it again in the next version.

cron dont work either

Toplist Update Rank Cache

Warning: main(/public_html/./includes/cron/toplist_rankings.php): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 108

Warning: main(): Failed opening '/public_html/./includes/cron/toplist_rankings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/cronadmin.php on line 108

Done
Sorry about that. The name is actually toplist_ranks.php not toplist_rankings.php, change the filename and it should work.

angkor408
10-07-2006, 10:39 PM
derekivey, if you look at " Forums Toplist" you will notice the site description is on the left instead.

Come and join in the fun with khmer people around the world. Khmerclub.com is the place to make new friends, chat-room, Humor, karaoke, Poetry, photo, and more... Check it out!!!!

Under the " Randon site" it align the banner and the words in the middle correctly. That how I want it :)

Is there a way to display site description under " forum toplist" in the middle as well?


You can take a look one more time:

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

DementedMindz
10-07-2006, 10:41 PM
yeah the toplist where in there own groups before this update now i dont see them unless I do a search. Also for the site names that was working fine before this update so it has to do with one of the edits.

DementedMindz
10-07-2006, 10:42 PM
angkor408 change the Toplist Layout

DementedMindz
10-07-2006, 10:46 PM
ok the reason i think Toplist templates dont show up is cause now you have code in the Toplist template not sure.. do you have the old version still? this one I really cant use cause if you link another topsite then it wont work to get you hits.

DementedMindz
10-07-2006, 11:15 PM
Derek do you have the old version before this one? right now this is pretty useless to me since its changing the html code in the site description.

DementedMindz
10-07-2006, 11:51 PM
ok if i go in my phpMyAdmin and change the site names from there then it keeps the names correct it has to do with say you enter in & the description it will change it too &amp;

DementedMindz
10-08-2006, 12:36 AM
ok as for the templates in admincp it has to do with topxstats if you have that installed you wont see the templates cause it calls for $only['top']='topXstats'; so it picks up toplist templates

derekivey
10-08-2006, 03:05 AM
ok if i go in my phpMyAdmin and change the site names from there then it keeps the names correct it has to do with say you enter in & the description it will change it too &amp;
You will need to enable HTML code in the settings.

derekivey
10-08-2006, 03:06 AM
derekivey, if you look at " Forums Toplist" you will notice the site description is on the left instead.

Come and join in the fun with khmer people around the world. Khmerclub.com is the place to make new friends, chat-room, Humor, karaoke, Poetry, photo, and more... Check it out!!!!

Under the " Randon site" it align the banner and the words in the middle correctly. That how I want it :)

Is there a way to display site description under " forum toplist" in the middle as well?


You can take a look one more time:

http://www.khmerclub.com/forums/toplist.php?
Did you modify the template at all?

DementedMindz
10-08-2006, 06:55 AM
You will need to enable HTML code in the settings.

Strange I never had to do that before but then wouldnt that let them post html in the site description?

derekivey
10-08-2006, 11:12 AM
Dunno, didn't change anything to make it do that. It was always that way, I guess htmlspecialchars_uni() makes it be &amp;

dendrob
10-08-2006, 12:29 PM
just updated!

Derek, can you add these features to the next release:

- ranking period, ie daily, weekly, monthly
- rank by current ranking period (ie. this day/week/month only)
- rank by average ranking period (ie. average of all days/weeks/months)
- Admin selectable which "code" you want your members to use on their site
- change the iframe to count pageviews as it's putting a small square in FF and Opera and some IE versions
- possible to add the pageview counting code to the custom button code?
- AdminCP selectable which columns to show IN/OUT/Views
- Ideally, would be great if you could have it like AArdvark has it... single HTML code that counts everything


(ie. link only,
I rank by pageviews, so right now it's not fair for a newly joined member to be ranked if the existing members have half a million hits accumulated on their stats. Ranking period would take care of that.

I have to ask... :) when's the 2.1 coming out, hehe

I haven't made any customizations, do I need to revert any templates?

we're getting closer and closer to a super toplist ! Stats will be great when it comes out !!! Great MOD, submitted for MOF

ltjman22
10-08-2006, 02:15 PM
I can probably figure this out on my own but. I added the link to the toplist in my navbar and it works when in the forum url, but not in the root where vb advanced is. The code I added to the navbar template is straight out of the usermanual. Does someone have revised code so that the toplist link will work in vbadvanced and the forums directory? Thanks.

b6gm6n
10-08-2006, 03:08 PM
Just updated, great mod made much better, cheers...like the idea of putting the buttons and edit links in the position you want (if you have larger banners/buttons) would be also nice to have the description of the site under the banner itself or an option to choose either above or below...

Now i know this defeats the object a bit... but one thing i've found with people using my toplist is they never use the link info and just use my site url...thus 'in' hits are not counted... would be nice for an option to show in/out/view or a combination of...all off, or all on... or choose which you'd like to see... i hate looking at the long columns of zeros for 'in' down the page :)

anyways exellent job...always a pleasure, cheers

-b6

dendrob
10-08-2006, 03:34 PM
btw, I don't think the up/down/same arrows are working OK, perhaps it's something on my end, but I have everyone down, even the 1st place

check it out here (http://www.orchidboard.com/community/toplist.php)

DementedMindz
10-08-2006, 06:12 PM
Yeah mine are like that too they have never showed a up arrow

b6gm6n
10-08-2006, 09:12 PM
Yup...no up arrow for me...counting hits in... thought it was ok...but seeing the last comments :)

derekivey
10-09-2006, 12:23 AM
just updated!

Derek, can you add these features to the next release:

- ranking period, ie daily, weekly, monthly
- rank by current ranking period (ie. this day/week/month only)
- rank by average ranking period (ie. average of all days/weeks/months)
- Admin selectable which "code" you want your members to use on their site
- change the iframe to count pageviews as it's putting a small square in FF and Opera and some IE versions
- possible to add the pageview counting code to the custom button code?
- AdminCP selectable which columns to show IN/OUT/Views
- Ideally, would be great if you could have it like AArdvark has it... single HTML code that counts everything


(ie. link only,
I rank by pageviews, so right now it's not fair for a newly joined member to be ranked if the existing members have half a million hits accumulated on their stats. Ranking period would take care of that.

I have to ask... :) when's the 2.1 coming out, hehe

I haven't made any customizations, do I need to revert any templates?

we're getting closer and closer to a super toplist ! Stats will be great when it comes out !!! Great MOD, submitted for MOF
I will keep those in mind when I work on 2.1. I have no idea when it will be out. I want to first get the stats page done, currently only the daily part of it is done, I am still trying to figure out how to do the weekly and monthly parts of it. I will definitely work on making it only one piece of code that will count views and work as an in link for the next version.

I can probably figure this out on my own but. I added the link to the toplist in my navbar and it works when in the forum url, but not in the root where vb advanced is. The code I added to the navbar template is straight out of the usermanual. Does someone have revised code so that the toplist link will work in vbadvanced and the forums directory? Thanks.
Can't you just have a direct link to the Toplist in your navbar? Something like http://www.yourdomain.com/forums/toplist.php?

Just updated, great mod made much better, cheers...like the idea of putting the buttons and edit links in the position you want (if you have larger banners/buttons) would be also nice to have the description of the site under the banner itself or an option to choose either above or below...

Now i know this defeats the object a bit... but one thing i've found with people using my toplist is they never use the link info and just use my site url...thus 'in' hits are not counted... would be nice for an option to show in/out/view or a combination of...all off, or all on... or choose which you'd like to see... i hate looking at the long columns of zeros for 'in' down the page :)

anyways exellent job...always a pleasure, cheers

-b6
I will be adding more display options in the next version (like having the banner be displayed before the site name, and between the site name and description).

I am also trying to add some code to determine the appropriate class for each column... that is the only thing holding me back from having options to hide certain stuff such as the in hits, out hits, etc. I hope to have this done for the next version as well. For now you can just edit the templates to remove it if you want.

btw, I don't think the up/down/same arrows are working OK, perhaps it's something on my end, but I have everyone down, even the 1st place

check it out here (http://www.orchidboard.com/community/toplist.php)
Doesn't look like the cron is working. Maybe try going directly to the cron file and running it to see if that fixes things (includes/cron/toplist_ranks.php).

DementedMindz
10-09-2006, 01:19 AM
Doesn't look like the cron is working. Maybe try going directly to the cron file and running it to see if that fixes things (includes/cron/toplist_ranks.php).

I havent seen the ranks update either and my cron is working. When is the up rank arrow suppose to show I get about 30 hits every hour from one site and it dont move no wheere it dont go down it just stays equal my cron runs every 30 mins too. Also what was updated today?

dendrob
10-09-2006, 01:35 AM
I will keep those in mind when I work on 2.1. I have no idea when it will be out. I want to first get the stats page done, currently only the daily part of it is done, I am still trying to figure out how to do the weekly and monthly parts of it. I will definitely work on making it only one piece of code that will count views and work as an in link for the next version.

I'm running aardvark top site elsewhere, the only code they use to count everything looks like this

<a href="http://www.vivariumtopsites.com/">
<img src="http://www.vivariumtopsites.com/button.php?u=mistking" alt="Vivarium TopSites" border="0" />
</a>

Their topsite is really top notch and does everything anyone would need. SEO is out of this world. One big thing lacking is VB Integration.

You can look up how they did their stat page here (http://www.vivariumtopsites.com/namestats-jungle.htm) Imitation is the greatest form of flattery, I'm sure they wouldn't mind if you borrow some ideas.

Doesn't look like the cron is working. Maybe try going directly to the cron file and running it to see if that fixes things (includes/cron/toplist_ranks.php).

nope, didn't do anything. BTW, start adding features to the 2.1 list, this way you won't omit anything that should be there. This is a mod on its way to greatness, I can see it.

angkor408
10-09-2006, 03:00 AM
Hi, I"m confuse how do I do that? Is there a template I need to modify?

angkor408 change the Toplist Layout

DementedMindz
10-09-2006, 03:03 AM
its right in the main options for Toplist at the bottom..

angkor408
10-09-2006, 03:08 AM
Derekivey, I don't think I modify any template. What I have done upload whatever that is in " Upload" folder and overwrite it. Also I upload the .XML file under manager product.

Can you tell me which toplist template name should I edit so it will align correctly. Thank.

Angkor



Did you modify the template at all?

angkor408
10-09-2006, 03:16 AM
DementedMindz and Derek, I got it to work now. I didnt modify my template.

Under toplist option >>Toplist Layout>> It will say:Select the layout you would like to use below. This affects the toplist.php page only

I just change to: Large buttom (buttom above edit, delete, report link) It seem to show in the middle now.


Here the link again: http://www.khmerclub.com/forums/toplist.php?


Angkor

Robbed
10-09-2006, 04:27 PM
It should have the code for each site in the admincp. Now on toplist it shows the exact link so if someone forgets the code I don't know what the site id is.

Another problem when using links like this

downloads.php?do=file&id=1771

It changes is to

downloads.php?do=file&amp;id=1771

Allan
10-10-2006, 09:50 AM
Work perfectly with vB3.6.2 ?

Can i it tranlate to french ?

DementedMindz
10-10-2006, 01:50 PM
Another problem when using links like this

downloads.php?do=file&id=1771

It changes is to

downloads.php?do=file&amp;id=1771

I said that too but he said you need to turn on html and I refuse to do that. It never happened before this update I just edited my links in phpmyadmin so it would show the right links. Hopefully soon he can work the bugs out of this new version cause there is a few. The ranks dont update even with cron the links mess up when you add new ones.

dendrob
10-10-2006, 02:02 PM
Derek, Derek he's the man, if he can't do it no one can !!! https://vborg.vbsupport.ru/external/2006/10/11.gifhttps://vborg.vbsupport.ru/external/2006/10/11.gif

C'mon Derek, lets get 2.1 out :)

derekivey
10-10-2006, 02:18 PM
I havent seen the ranks update either and my cron is working. When is the up rank arrow suppose to show I get about 30 hits every hour from one site and it dont move no wheere it dont go down it just stays equal my cron runs every 30 mins too. Also what was updated today?
Hmm... can you look in the datastore table of the database for toplist_ranks and paste what's in it?

Also nothing was updated, I just changed a screenshot.

DementedMindz and Derek, I got it to work now. I didnt modify my template.

Under toplist option >>Toplist Layout>> It will say:Select the layout you would like to use below. This affects the toplist.php page only

I just change to: Large buttom (buttom above edit, delete, report link) It seem to show in the middle now.


Here the link again: http://www.khmerclub.com/forums/toplist.php?


Angkor
It looks fine doesn't it?

It should have the code for each site in the admincp. Now on toplist it shows the exact link so if someone forgets the code I don't know what the site id is.

Another problem when using links like this

downloads.php?do=file&id=1771

It changes is to

downloads.php?do=file&amp;id=1771
They can get their code by clicking edit site and clicking the submit button. I might add a separate page in the next version though.

Also, I will look into the URL problem as well.

Work perfectly with vB3.6.2 ?

Can i it tranlate to french ?
It should work fine in 3.6.2, but please wait till I release the 3.6 version to translate, because I am adding a few more phrases to it, for like messages for the admin message system.

Derek, Derek he's the man, if he can't do it no one can !!! https://vborg.vbsupport.ru/external/2006/10/11.gifhttps://vborg.vbsupport.ru/external/2006/10/11.gif

C'mon Derek, lets get 2.1 out :)
I'll probably make it 2.0.1, and just fix the bugs first before I introduce more features.

Derek

Allan
10-10-2006, 03:51 PM
Ok Derek, i wil wait your next version ;)

DementedMindz
10-10-2006, 06:18 PM
hate to bust your bubble but i dont see no toplist_ranks in sql

derekivey
10-10-2006, 06:26 PM
Hmm, can you try executing this SQL then and re-running the cron file?

INSERT INTO datastore SET `title` = 'toplist_ranks', `data` = ''

Derek

DementedMindz
10-10-2006, 08:00 PM
#1062 - Duplicate entry 'toplist_ranks' for key 1 but i surely dont see it in there
ok i see it now i ran that and ran the cron still the same.

here is the datastore in there to
a:8:{i:10;i:1;i:18;i:2;i:17;i:3;i:9;i:4;i:11;i:5;i :14;i:6;i:12;i:7;i:13;i:8;}

derekivey
10-10-2006, 08:17 PM
Hmm, so it is there. Mind PMing me admin info so I can take a look at the hack?

Thanks,
Derek

DementedMindz
10-10-2006, 08:20 PM
let me grab someting to eat and ill make you a name this way you can see whats going on. do your stats update?

Robbed
10-10-2006, 10:07 PM
They can get their code by clicking edit site and clicking the submit button. I might add a separate page in the next version though.

Also, I will look into the URL problem as well.
[/SIZE]

The url works fine in the admincp just not toplist.

For some reason I never get notfied by email about new sites so I'm using PM.

loonytune15
10-11-2006, 03:34 AM
when is the vb 3.6 version going to be released?

derekivey
10-11-2006, 09:36 AM
let me grab someting to eat and ill make you a name this way you can see whats going on. do your stats update?
Ya, my stats are working fine.

The url works fine in the admincp just not toplist.

For some reason I never get notfied by email about new sites so I'm using PM.
What happens when people use the edit site link?

when is the vb 3.6 version going to be released?
I'm hoping to get it out tonight.

Derek

Hoffi
10-11-2006, 11:29 AM
I run the Toplist under 3.6.2 - No Problems at all.

DementedMindz
10-12-2006, 02:52 PM
Derek I just down graded to the older version for now this way my links dont mess up until you fix the problems. One other thing that would be nice is for them to be able to add there button instead of uploading it or have it so the admin can add it cause some sites have weird links to there buttons (ex. http://example.com/topsites/button.php?u=mysite )

jellybaby
10-12-2006, 03:38 PM
Im also getting the issues with my arrows but could be because I am getting this error:-

Warning: main(): Failed opening '/home/mysite/public_html/forums/./includes/cron/toplist_rankings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/cronadmin.php on line 108

Any ideas?

Thanks

derekivey
10-12-2006, 07:06 PM
Im also getting the issues with my arrows but could be because I am getting this error:-

Warning: main(): Failed opening '/home/mysite/public_html/forums/./includes/cron/toplist_rankings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/cronadmin.php on line 108


Any ideas?

Thanks

Sorry, it should be toplist_ranks.php not toplist_rankings.php. I typed the wrong name in the readme file, sorry about that. I will update the zip file to include the change in the readme file so no one else has any problems.

Derek

derekivey
10-12-2006, 07:13 PM
DementedMindz, this change should fix the links problem. Can you maybe try on your test board and see if it fixes it?

Open: add_site.php

Find:

$vbulletin->input->clean_array_gpc('p', array(
'sitename' => TYPE_NOHTML,
'url' => TYPE_NOHTML,
'description' => TYPE_STR,
'category' => TYPE_UINT
));


Replace With:

$vbulletin->input->clean_array_gpc('p', array(
'sitename' => TYPE_NOHTML,
'url' => TYPE_STR,
'description' => TYPE_STR,
'category' => TYPE_UINT
));


Close and Save add_site.php

Open: edit_site.php

Find:

$vbulletin->input->clean_array_gpc('p', array(
'id' => TYPE_UINT,
'sitename' => TYPE_NOHTML,
'url' => TYPE_NOHTML,
'description' => TYPE_STR,
'category' => TYPE_UINT,
'old_url' => TYPE_NOHTML
));


Replace With:

$vbulletin->input->clean_array_gpc('p', array(
'id' => TYPE_UINT,
'sitename' => TYPE_NOHTML,
'url' => TYPE_STR,
'description' => TYPE_STR,
'category' => TYPE_UINT,
'old_url' => TYPE_NOHTML
));


Close and Save edit_site.php

Open: toplist.php

Find and Delete:
$sr['url'] = htmlspecialchars_uni($sr['url']);

Close and Save toplist.php.

Derek

DementedMindz
10-12-2006, 08:19 PM
Lets me turn my pc on that I have linux in and ill tet it out.

DementedMindz
10-12-2006, 08:24 PM
works great now.. also it will put it back into validate when you do that which is nice too just the ranks and Im going to put it back on my live site.

derekivey
10-12-2006, 08:44 PM
You never got back to me with login info so I can take a look at the ranks. Lol.

Derek

DementedMindz
10-12-2006, 08:53 PM
yeah I had removed it on my live site and switched back to the previous version this way the links would work I have to reinstall the new version again.

jellybaby
10-12-2006, 08:53 PM
Thanks Derek that worked for me - Im just waiting on the ranks now as I get - on all of them..lol!

derekivey
10-12-2006, 08:59 PM
Thanks Derek that worked for me - Im just waiting on the ranks now as I get - on all of them..lol!
Sounds like it's working then. The thing is supposed to update every hour, try increasing the number of in hits or something on a site to make its rank increase and see if the rank icons change at all.

Derek

jellybaby
10-12-2006, 09:07 PM
Brilliant yes its working great for me thank you

derekivey
10-12-2006, 09:08 PM
No Problem.

DementedMindz
10-12-2006, 09:11 PM
The ranks change when i test them on my linux pc but they never show a rank going up or down they change the equal sign. when you first add a site the show the negative sign until it updates once it does then it just stays at equal and never moves up or down.

DementedMindz
10-13-2006, 01:30 AM
Strange Since I changed that code its showing 2 sites with ranks going up but they got no hits lol I think its because i just added a new site after them. Im testing it on my dev board via proxys

derekivey
10-13-2006, 01:32 AM
Hmm, I'll try adding sites on my board and see what happens.

DementedMindz
10-13-2006, 01:38 AM
yeah im lookin into it to see whats up. I have it installed on my other pc I use as a test server. Then im connecting via proxys to test it to see if they move or what its sending.

loonytune15
10-13-2006, 05:11 AM
So did you release the 3.6 version? I looked for it, but I haven't been able to find it..

DementedMindz
10-13-2006, 09:33 AM
this works on 3.6

loonytune15
10-13-2006, 03:57 PM
post 1224 said he was releasing a vb 3.6 version. One would assume it was better :)

DementedMindz
10-13-2006, 04:51 PM
most of the time when coders release a 3.6 version its the same just ported over. but anyway it does work on 3.6

derekivey
10-14-2006, 03:14 PM
I will be releasing the 3.6 version soon. Just got caught up with school work. The only thing different in the 3.6 version is that I'm adding the version checker URL thing to it, and this thread url to it also in the product manager. I am having it add a admin message when the user installs it for the first time that tells them to edit the settings and not to forget to set the in url, since most people forget to do that.

Derek

derekivey
10-14-2006, 09:00 PM
Zip file updated to include the file name change of the cron file to the readme.

Derek

DementedMindz
10-14-2006, 09:04 PM
So there are no other changes from last version?

bonjurkes
10-14-2006, 09:21 PM
i have a problem at buttons, when i add a test site, it gives me buttons but at second button there is red cross

when i left click : http://www.*.com/forum/images/toplist/buttons/dynamic/image.png?id=4

image.png is there and there is error_log file at that folder


[14-Oct-2006 18:18:16] PHP Warning: chdir(): No such file or directory (errno 2) in /home/*/public_html/forum/images/toplist/buttons/dynamic/image.png on line 24
[14-Oct-2006 18:18:16] PHP Warning: main(global.php): failed to open stream: No such file or directory in /home/*/public_html/forum/images/toplist/buttons/dynamic/image.png on line 25
[14-Oct-2006 18:18:16] PHP Fatal error: main(): Failed opening required 'global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/forum/images/toplist/buttons/dynamic/image.png o

what is its reason?

derekivey
10-14-2006, 10:12 PM
So there are no other changes from last version?
No, that reminds me though, I'm going to update it again to include the fix you tried that fixed the URL thing.

i have a problem at buttons, when i add a test site, it gives me buttons but at second button there is red cross

when i left click : http://www.*.com/forum/images/toplist/buttons/dynamic/image.png?id=4

image.png is there and there is error_log file at that folder

what is its reason?
Did you edit image.png to change the path to your forums?

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

derekivey
10-14-2006, 10:30 PM
Zip file updated to include the change that fixes the URL problem some of you were having. Also, I changed images/toplist/buttons/dynamic/image.png so that it no longer requires you to edit it to have the full URL of your forums, it now uses relative paths to fetch the global.php file.

Derek