PDA

View Full Version : Toplist


Pages : [1] 2 3 4 5 6 7

derekivey
10-17-2005, 10:00 PM
Toplist
Developer: derekivey (https://vborg.vbsupport.ru/member.php?u=81169)
Version: 2.0.0
vBulletin Version: 3.5.5 (Seems to work fine on 3.6.0)
File Edits: 0
Template Edits: 2 (Optional)
New Phrases: 294
Uses Plugins: Yes!
Difficulty: Easy

Description: This hack adds a Toplist to your forums. You can choose in the AdminCP whether to rank the sites by their In hits or their Out hits. It is fully phrased to make it easy to translate to another language if you need to. The users are able to add a site, edit, or delete their site if they added it. The Administrators can Edit the users' sites or Delete them.
This hack is for vBulletin 3.5.5.

*** I Strongly Recommend That You Backup Your Database Before Installing/Upgrading This Hack! ***

Planned features for a later release:

Add Image Storage Setting (hot linking or upload)
Add Stats Page [ Will be released later ]
Add API to get site info onto non-vB pages and other vB pages.
Add Site Comment System
Fix bug with & not being allowed in URLs [ Done ]
Add Setting to choose where to put Toplist Sites Marquee
Whatever else is suggestedChange Log
The change log is now available here (http://www.derek.spacialhosting.com/?page=product&id=1#changelog).

Screen Shots
I have added screen shots of this hack in action below.
More screenshots are located here (http://www.derek.spacialhosting.com/?page=product&id=1#screenshots).

Demo
You can find demo information here (http://www.derek.spacialhosting.com/?page=product&id=1#demo).

Translations
You can find a French translation of this hack here (https://vborg.vbsupport.ru/showpost.php?p=1175049&postcount=1448).

For a How To on Editing the Dynamic Image, See this Post (https://vborg.vbsupport.ru/showpost.php?p=885450&postcount=450).

Please click Install you installed this hack.


Thanks!

Chroder
10-17-2005, 10:30 PM
Excellent work Derek :)

derekivey
10-17-2005, 10:39 PM
Thanks! Also, Thanks for all your help :)

jugo
10-17-2005, 10:52 PM
GREAT!!! Finally!!! This is what i've beenw aiting for...thanks.

Question...does this hack generate code to include in the listed site to count the hits?

concepts
10-17-2005, 10:55 PM
when does it generate whether someone has clicked into the site? I clicked on both sites, looked around then came back to the toplists and the hit #'s were still the same?

derekivey
10-17-2005, 11:02 PM
GREAT!!! Finally!!! This is what i've beenw aiting for...thanks.

Question...does this hack generate code to include in the listed site to count the hits?
Yes, when they add a site it shows them the html code to add to their site.

when does it generate whether someone has clicked into the site? I clicked on both sites, looked around then came back to the toplists and the hit #'s were still the same?

It only counts the out clicks if they user is logged in. I did this to prevent cheating. I might add the option to allow out clicks from guests in the next version. The in hits should have counted, it saves the IP address of the person who clicked in on the site and stops counting if their ip is already in the database for that site.

jesus likes pie
10-17-2005, 11:28 PM
Hi derek! It's ATI! *waves*

What is this meant to....do.....is it for like...affiliates or something? I don't really understand.

EDIT: Is this the hack you didn't tell anyone on IRC about?

concepts
10-17-2005, 11:32 PM
hmmm, well the in-clicks didn't count on either site I viewed.. don't get me wrong, I love this hack! and I already clicked install and downloaded it, but before putting this up, I want to make sure it actually works.. the in-clicks should count towards user clicks right?

for example: the traffic surfer links does not refresh at all it was 1 in 1 out before I clicked, 1 in 1 out after I clicked (4 times to make sure)

however this http://www.modbb.com/toplist.html although a phpbb, which I expect was the muse for this mod, auto updates on refresh (although its unfair because a user can click multiple times...

please clarify any errors?

Edit*
and what exactly is an in/out hit (Stupid Question, I know)
In hit - someone clicks the site link from the outside.
Out - when they leave the site?

derekivey
10-17-2005, 11:39 PM
The one on my other site (ModBB) is someone elses mod.

The out hits don't count for guests. But for the in hits did you go to a link like this?

http://www.trafficsurfer.net/in.php?id=4 (thats for the ModBB site).

I just did it while being a guest and it counted it for me.

derekivey
10-17-2005, 11:41 PM
Hi derek! It's ATI! *waves*

What is this meant to....do.....is it for like...affiliates or something? I don't really understand.
It lets the users add their site to it and people can look at it and if they are interested in a site they can click the link and be redirected to that site. The site gets ranked on hits into the forum or hits out to the user's site.


EDIT: Is this the hack you didn't tell anyone on IRC about?

No...

concepts
10-17-2005, 11:46 PM
okay, installed at www.supaleague.com/board/toplist.php this works perfectly!

sorry for the confusion!

derekivey
10-17-2005, 11:49 PM
No problem, glad you like it :)

Peace_Hope
10-18-2005, 01:09 AM
That hack still needs a little work in my opinoin, like for instance, maybe have it so that the link that shows up for the user to put on their site should have a link saying:

Click Here to vote for our site over at xxxx.

with xxxx being the site with the toplist.

Just my ideas.

jugo
10-18-2005, 01:23 AM
That hack still needs a little work in my opinoin, like for instance, maybe have it so that the link that shows up for the user to put on their site should have a link saying:

Click Here to vote for our site over at xxxx.

with xxxx being the site with the toplist.

Just my ideas.


That's easy just have to make a change to one file:

in add_site.php, change this to whatever you want the code to be:

$html = "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";


i am going to add something to mine that will allow me to specify the image to use. and maybe with a little GD code, it will display the current ranking on the image....

hmmmm....this is going to be fun.

derekivey
10-18-2005, 01:37 AM
That's easy just have to make a change to one file:

in add_site.php, change this to whatever you want the code to be:

$html = "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";


i am going to add something to mine that will allow me to specify the image to use. and maybe with a little GD code, it will display the current ranking on the image....

hmmmm....this is going to be fun.

If you get something like that working, please share it :). I want to add something like that, where they can select a image that shows their current ranking.

Thanks :)

rblaze
10-18-2005, 02:34 AM
Haha nice hack guys

Amazing what can be done when y'all aren't playing CS:S XD

Cya in #vbfans

~Blaze

JubeiSaotome
10-18-2005, 04:30 AM
A perfect addition to my forum. Thanks.

Snake
10-18-2005, 12:05 PM
What a great toplist hack. Thanks bro! :)

jesus likes pie
10-18-2005, 01:29 PM
Haha nice hack guys

Amazing what can be done when y'all aren't playing CS:S XD

Cya in #vbfans

~Blaze

ha...derek doesn't play CS:S :P

Chroder does though. So do I, but my hacks are newbish and most of the time useless. Oh well :)

See ya around blaze.

-ATI4EVER

The Realist
10-18-2005, 02:34 PM
How can you change the code so that members have the opertunity to list more than one site. And whats needed so that admin can manually add a site via admincp.

Laters

Suzie
10-18-2005, 02:43 PM
How can you change the code so that members have the opertunity to list more than one site. And whats needed so that admin can manually add a site via admincp.

Laters

I need this as well.

yahoooh
10-18-2005, 03:19 PM
i am using vBulletin 3.0.9 , i wait the port thanx

ThePimp
10-18-2005, 03:59 PM
Is there a way to require a recip? Possibly a bit of code that reads the "Added" page and scans for a recip link on the page, and denies the site addition if one doesn't exist?

Most TopLists work off of the principal of getting more IN links, and if there isn't a check for recips, it will get cumbersome to try to keep up with all of the links and checking to be sure they don't remove your link.

Just a suggestion.

azmi
10-18-2005, 06:06 PM
*installed* the hack - thanks for sharing!

but how about the incoming link?
it is only linked to the forum and not to the toplist !
is there any way to change it?

if you show for something how to make the Link with a button:
http://www.aardvarkind.com/

derekivey
10-18-2005, 06:45 PM
Hey,

I'll try and release a new version in a few days to have most of those changes. Keep posting your ideas/suggestions, it helps me out a lot. Also ThePimp, I am looking into adding that feature as well.

derekivey
10-18-2005, 06:54 PM
ThePimp, I'm not quite sure how to do that part, sorry.

Allan
10-19-2005, 01:31 PM
no work with BBcode for description, damage :(

Suggestions, after add a site, a button is missing to return to toplist ;)

derekivey
10-19-2005, 06:42 PM
Ok Thank You for telling me about the button missing. Also, why would you need BBCode for the description of the site?

Allan
10-19-2005, 08:34 PM
Ok Thank You for telling me about the button missing. Also, why would you need BBCode for the description of the site?

To put in fat or italic for example, for a description, it is always useful ;)

ps: Attach Files, the french language :)

derekivey
10-19-2005, 08:45 PM
Ok, I'll look into it and see if I can add it. Also, thanks for translating it :). I will add it and give you credit for it.

Mr Chad
10-20-2005, 04:20 AM
In.php isnt redirecting

derekivey
10-20-2005, 07:23 PM
Should be. I've tested it on my test site and my live site...

Mr Chad
10-20-2005, 09:06 PM
mine is just stopping, like it will credit for the redirect but it will stay at a blank page saying in the title redirexcting while the load is done.

derekivey
10-20-2005, 09:11 PM
Can you give me your url, so I can take a look?

Thanks,
Derek

ctsolutions
10-21-2005, 12:00 AM
@derekivey

I think your zip file is corrupt cose in "toplist.php" I have no "Add Site/Delete Site" link.

if($filename == 'toplist.php'){
$userinfo['activity'] = 'Viewing Toplist';
} elseif($filename == 'add_site.php') {
$userinfo['activity'] = 'Adding Site to Toplist';
} elseif($filename == 'delete_site.php') {
$userinfo['activity'] = 'Deleting Site from Toplist';
} elseif($filename == 'out.php') {
$userinfo['activity'] = 'Viewing Site';
}





Mike

derekivey
10-21-2005, 12:13 AM
Nope, it's not corrupt. I just downloaded it. Everything is there. Maybe try downloading it again and reuploading the files in the upload folder.

Ramsesx
10-21-2005, 08:01 AM
Thank you for this nice modification derekivey, but also I wish to can add sites from the acp or user more than only one site.

derekivey
10-21-2005, 09:42 AM
Yeah, I'm going to add those features in the next release.

ctsolutions
10-21-2005, 12:20 PM
Nope, it's not corrupt. I just downloaded it. Everything is there. Maybe try downloading it again and reuploading the files in the upload folder.


Sorry, I have not see at the very bottom of the page the Add Site Link

I change the "toplist" template to be able to add sites on the top of the page:

find:


href="http://www.trafficsurfer.net">Derek Ivey</a></div></td>
</tr>



afther that add:

<a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a> |
<a href="$vboptions[bburl]/delete_site.php">$vbphrase[toplist_delete_site]




Thanks
Mike

derekivey
10-21-2005, 06:40 PM
Sorry, I have not see at the very bottom of the page the Add Site Link

I change the "toplist" template to be able to add sites on the top of the page:

find:


href="http://www.trafficsurfer.net">Derek Ivey</a></div></td>
</tr>



afther that add:

<a href="$vboptions[bburl]/add_site.php">$vbphrase[toplist_add_site]</a> |
<a href="$vboptions[bburl]/delete_site.php">$vbphrase[toplist_delete_site]




Thanks
Mike

Ok, great. Glad you got it fixed.

Swindont
10-22-2005, 03:46 PM
how can i make it so when users are on topsites on user online it says that and not unknown location?

Mr Chad
10-22-2005, 04:03 PM
how can i make it so when users are on topsites on user online it says that and not unknown location?

I got it to work, very nice.

derekivey
10-22-2005, 06:19 PM
how can i make it so when users are on topsites on user online it says that and not unknown location?

Huh? It should say that already... See screenshot below.

Allan
10-22-2005, 08:53 PM
Suggestion: it would be well to be able to edit its site (description, url, buttons url) ;)

derekivey
10-22-2005, 11:30 PM
Suggestion: it would be well to be able to edit its site (description, url, buttons url) ;)

You mean allow the user to edit their site? I plan to add that feature in the next release.

Daniel
10-23-2005, 12:57 AM
This is great, thanks!

But where can I edit the "add site" page? I see it says $html - where can I find that?

derekivey
10-23-2005, 01:27 AM
You would have to open add_site.php and edit the $html variable in it. The code is there.

Daniel
10-23-2005, 05:36 AM
Thanks. Where would I go in add_site.php to edit this though. It's once the site has been submitted, and gives the code to put on their site.
ie:
<a href='http://www.mysite.com/forum/in.php?id=2' target='_BLANK'>MySite.com</a>

Allan
10-23-2005, 06:48 AM
You mean allow the user to edit their site ?

yes :)

derekivey
10-23-2005, 04:08 PM
Thanks. Where would I go in add_site.php to edit this though. It's once the site has been submitted, and gives the code to put on their site.
ie:
<a href='http://www.mysite.com/forum/in.php?id=2' target='_BLANK'>MySite.com</a>

Find:
$html = "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";


And just change:

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>


To what ever you want.

Hope this helps.

Derek

JonnyQuest
10-23-2005, 07:26 PM
adding categories for sites would be great as well.
nice work.

derekivey
10-23-2005, 07:30 PM
Thanks for the suggestion, I will take a look into adding those.

Floris
10-28-2005, 10:18 PM
Nice hack Derek! :)

derekivey
10-28-2005, 10:24 PM
Thanks Floris :). What all did you want me to add to the Toplist Rules box? I forgot most of it lol.

derekivey
10-31-2005, 03:00 AM
Hack Updated to Version 1.0.1. Please see first post for more info. Be sure to follow the Upgrade Instructions really close so that you don't lose the sites in your Toplist when you upgrade. If you have any problems with the hack please post here.

Derek

Allan
10-31-2005, 04:56 AM
I am going to take charge of the french translation ;)

derekivey
10-31-2005, 09:47 AM
Great Allan Thanks :)

divided_by_fear
10-31-2005, 11:05 AM
question on a new install when i goto the add_site page you get a error on internet explorer in the task bar....

Line: 1502
Char:4
Error:Object dosen't support this property or method
Code:0
then it has your sites url /add_site.php

any way to fix that?

Allan
10-31-2005, 12:11 PM
French Language for new version:)

divided_by_fear
10-31-2005, 12:12 PM
lol does the french version give you that error too?

Allan
10-31-2005, 12:42 PM
No error for me, work perfectly with IE and FF

divided_by_fear
10-31-2005, 12:44 PM
yeah must be something in his code cause on the add_site page i get that error

derekivey
10-31-2005, 06:37 PM
question on a new install when i goto the add_site page you get a error on internet explorer in the task bar....

Line: 1502
Char:4
Error:Object dosen't support this property or method
Code:0
then it has your sites url /add_site.php

any way to fix that?

I'll take a look at that and see whats causing that error. I myself haven't gotten that error, so I'll take a look.

Also, Thanks Alan for ReTranslating this :).

Derek

derekivey
10-31-2005, 11:09 PM
Ok, I think I have narrowed it down to the Toplist Rules being the cause of it. I am going to look at it and see what is wrong.

azmi
11-01-2005, 09:01 AM
great Hack , derekivey (*updated*)

in ACP -> options -> change site -> Description
can you make the field having a break in the text?
try it for example:
top topsite....the best site....top topsite....the best site....top topsite....the best site....top topsite....the best site....you will have a very large site :ermm:
in the field , i manually edit a "<br>" after 30 signs.

and:
when you give only a "www.yoursite.com" as URL, you will have a wrong site.
is there any way to let the script look for a "http://" before the "www" ?

derekivey
11-01-2005, 09:34 AM
great Hack , derekivey (*updated*)

in ACP -> options -> change site -> Description
can you make the field having a break in the text?
try it for example:
you will have a very large site :ermm:
in the field , i manually edit a "<br>" after 30 signs.

and:
when you give only a "www.yoursite.com" as URL, you will have a wrong site.
is there any way to let the script look for a "http://" before the "www" ?

Yeah,

I'll add the http:// part, but I don't understand what you mean about the first part lol.

Derek

azmi
11-01-2005, 11:31 AM
Yeah,
I'll add the http:// part, but I don't understand what you mean about the first part lol.
Derek

this problem

divided_by_fear
11-01-2005, 04:05 PM
derekivey did you ever figure out what was giving that error in the task bar?

derekivey
11-01-2005, 06:54 PM
The Javascript error? No I didn't I'm still looking into it :(

divided_by_fear
11-01-2005, 10:16 PM
yeah i may install it again and see if i can look at it... im just trying to get use to vbulletin... but am pretty good with nuke :)

derekivey
11-02-2005, 01:08 AM
yeah i may install it again and see if i can look at it... im just trying to get use to vbulletin... but am pretty good with nuke :)

Ok, Great.

uzman59
11-02-2005, 06:31 AM
i have a question about in.php can i change somewhere for ex. when i added site, this hack give a link but only a link i want to link and little toplist pic.

derekivey
11-02-2005, 10:05 AM
Please see this post. https://vborg.vbsupport.ru/showpost.php?p=802882&postcount=50

uzman59
11-02-2005, 11:23 AM
Please see this post. https://vborg.vbsupport.ru/showpost.php?p=802882&postcount=50
i think you didnt understand me becasu i want it for ex
a user add his site to my toplist add.site.php give him to a link but only a link i want add site.php give a image link

derekivey
11-02-2005, 06:50 PM
i think you didnt understand me becasu i want it for ex
a user add his site to my toplist add.site.php give him to a link but only a link i want add site.php give a image link

Yeah, just find that and replace it with the image link code I guess. Or do you mean a dynamic image that shows the rank and stuff?

derekivey
11-02-2005, 06:52 PM
For it to give a image link just do this...

Find:

$html = "{$vbphrase['toplist_add_successful']}<br />

{$vbphrase['toplist_html_code_message']}:<br />

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";



Change:



<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>



To:



<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea>



Of course change IMAGEURL to the URL of an image you want them to add to their site.

uzman59
11-03-2005, 05:45 AM
<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>

where will i add image kod?

derekivey
11-03-2005, 09:59 AM
No, your supposed to find that and replace it with this:


<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea>


And replace IMAGEURL with the url of the imge you want them to use.

uzman59
11-04-2005, 03:30 AM
No, your supposed to find that and replace it with this:


<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'><img src='IMAGEURL' border='0'></a></textarea>


And replace IMAGEURL with the url of the imge you want them to use.
thanks derek

derekivey
11-04-2005, 03:39 PM
No Problem :).

Also, in case anyone is interested, there is a German translation of my hack here (http://www.vbhacks-germany.com/forum/showthread.php?t=2132).
Special thanks to Hellraider from vbhacks-germany for translating it :).

Hellraider
11-04-2005, 06:41 PM
Hope that helps our german users to use this fine hack in their native language :)

Thanks for your permission to translate and thanks for linking to vBHacks-Germany (http://www.vbhacks-germany.com).

derekivey
11-04-2005, 07:07 PM
No Problem :)

uzman59
11-05-2005, 07:59 AM
No Problem :)
sorry but i have a question :)
i did everthink it had done but my users add their sites to toplist.they put my toplist code you know.it is okey but their users click my toplist code a site opens and says:redirecting..... but it dont redirect

derekivey
11-05-2005, 01:30 PM
Can you give me a URL to your site? Also, did you set the redirect URL in the AdminCP under Toplist Options?

derekivey
11-05-2005, 05:03 PM
Version 1.0.2 has been released. Please see the first post to see what has been changed.

Derek

Daniel
11-05-2005, 05:41 PM
I get the error:
Warning: getimagesize(fgf): failed to open stream: No such file or directory in /add_site.php on line 64

How would I go about fixing that?

derekivey
11-05-2005, 05:45 PM
What did you type in the image field?

uzman59
11-05-2005, 05:50 PM
Can you give me a URL to your site? Also, did you set the redirect URL in the AdminCP under Toplist Options?
thank you very much derek :squareeyed:

derekivey
11-05-2005, 05:55 PM
thank you very much derek :squareeyed:

Did you get it working uzman59?

uzman59
11-06-2005, 07:10 AM
Did you get it working uzman59?

it is working well now thanks again

funinthesun
11-06-2005, 01:19 PM
OK, this is going to sound like a really dumb question but when it says to upload all of the files in the upload folder, where do you upload them to? Do you put the ones in the admincp folder for example into the admincp folder on your server etc? :confused:

derekivey
11-06-2005, 02:11 PM
Yes, the admincp files go into the admincp folder, same with the includes folder etc.

funinthesun
11-06-2005, 03:44 PM
Installed! Thank you! It's just what I was looking for! Thank you! :)

Ramsesx
11-07-2005, 10:19 AM
nice now, thank you derekivey .
But one bug is there, if I change an entry and save, it is shows everytime in the html code box for putting on the web site the "id=1" .
And one more question, is it possible to disable html in the site description field?
Thank you

derekivey
11-07-2005, 06:47 PM
Yes, I will add an option to disable the HTML in the description, and name. I'll take a look into the bug you found.

derekivey
11-07-2005, 07:01 PM
Hi,

I'm unable to find that bug. Can you please show me what you mean? Perhaps take a screenshot or something?

Thanks,
Derek

King Kovifor
11-08-2005, 12:44 PM
Nice Hack

davidw
11-08-2005, 01:00 PM
<font color="SeaGreen">* christianb subscribes to this thread</font>

Allan
11-08-2005, 06:28 PM
French Language for v1.0.2 :)

A suggestion for the next version, if you add to phrases, made a mark in your file xml to know of or the new phrases begins, it helps for the translations ;)

derekivey
11-08-2005, 07:02 PM
What do you mean make a mark? I'm kind of confused lol.

Thanks,
Derek

Allan
11-08-2005, 07:12 PM
news version = news phrase

exemple:

<phrase name="toplist_url_of_image"><![CDATA[URL de l'image (Optionel)]]></phrase>
<phrase name="toplist_username"><![CDATA[Nom Utilisateur]]></phrase>
<phrase name="toplist_width_and_height_too_big"><![CDATA[D?soler, l'image ne peut ?tre ajouter ! La largeur et la hauteur d?passe la limite autoris?. Essayer de nouveau.]]></phrase>
<phrase name="toplist_width_too_big"><![CDATA[D?soler, l'image ne peut ?tre ajouter ! La largeur d?passe la limite autoris?. Essayer de nouveau.]]></phrase>
<phrase name="toplist_yes"><![CDATA[Oui]]></phrase>
// addon phrase for Toplist version 1.0.8
<phrase name="toplist_exemple><![CDATA[exemple]]></phrase>
etc .....
............
</phrasetype>

derekivey
11-08-2005, 07:37 PM
Ok, Good Idea Allan, I'll try and do that on newer releases.

Thanks,
Derek

Sean James
11-09-2005, 01:55 PM
Find:
$html = "{$vbphrase['toplist_add_successful']}<br />
{$vbphrase['toplist_html_code_message']}:<br />
<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>";


And just change:

<textarea cols='40' rows='4'><a href='{$vbulletin->options['bburl']}/in.php?id={$sr['id']}' target='_BLANK'>{$_POST['name']}</a></textarea>


To what ever you want.

Hope this helps.

Derek



these modications r made in the add_site.php?
Because i cannot find anything that resembles this

Sean James
11-09-2005, 02:11 PM
its all good, the modifications need to be made in the Toplist_HTML_Code template.

Very nice script *clicks install*

derekivey
11-09-2005, 06:42 PM
Yeah sorry about that. I moved the hard coded html into templates.

Derek

divided_by_fear
11-12-2005, 12:22 AM
derekivey now does this only show a link back to the site now? or will it display there button so they can link the button? and if it does display a button how and where do i put my button link?

derekivey
11-12-2005, 01:36 AM
It only shows a link, but you can edit the HTML to have it show a button instead. Just edit the Toplist_HTML_Code template and replace:


<a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK">$_POST[sitename]</a>


With:


<a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK"><img src="path_to_image" border="0"></a>

Of course, don't forget to replace path_to_image with the url of the image.

Derek

Xtrato
11-12-2005, 10:49 PM
Hey when i install the whole thing and later i wana use a different template do i need to reinstall this or no? I know how to add the links so thats not my worry

Thanks..

derekivey
11-12-2005, 11:00 PM
vBulletin adds the templates I believe, so it should be added to the new template.

divided_by_fear
11-12-2005, 11:15 PM
derekivey i did that it worked wonderful... one more thing how could i add a table like you have when it shows the code but one above it and have that just show the image they are going to use? so basiclly have it like you do now with with another table above the link with the button inside no code showing there only the code showing on the table below...

Xtrato
11-13-2005, 05:12 PM
Derek if i wanted to add like a text box(to explain how the toplist works) above the top the header(the header says blahblahblah Toplist) how could I do that and what codes :S :squareeyed:

puertoblack2003
11-13-2005, 06:39 PM
Great Hack *********INSTALLED**********

CAL
11-15-2005, 04:53 AM
AM I doing something wrong here?

I want non members to be able to add sites too. ie just guests.

Can this be done?

derekivey
11-15-2005, 10:01 AM
Derek if i wanted to add like a text box(to explain how the toplist works) above the top the header(the header says blahblahblah Toplist) how could I do that and what codes :S :squareeyed:

You mean you want to put it right beside your forums name Topist?

AM I doing something wrong here?

I want non members to be able to add sites too. ie just guests.

Can this be done?

No, that is currently not a feature. I might add it in an upcoming release.

divided_by_fear
11-15-2005, 01:05 PM
how code i show the image above the code... basiclly have another table above it showing what they are linking(ex. the button in a table above just showing the image) to make it clearer have 2 tables one with image and the one on the bottom like it is now with the code?

Xtrato
11-15-2005, 07:50 PM
You mean you want to put it right beside your forums name Topist?



No i basically want a text box above the "forumname Toplist" line.

make sense??

Also can you make a feature to approve or decline toplists

And also you know when someone registers a toplist and gets there link for the toplist. How can i change that to give a link that shows a image like a image 88x31 that says Vote toplist. Or even show me where the code is so i can change it

THANKS SO MUCH!

loonytune15
11-16-2005, 01:00 PM
Great Hack, better than the affiliates system i was going to use.

Hope to see the options flagged for a later release installed soon.

derekivey
11-16-2005, 07:05 PM
how code i show the image above the code... basiclly have another table above it showing what they are linking(ex. the button in a table above just showing the image) to make it clearer have 2 tables one with image and the one on the bottom like it is now with the code?
Just edit the Toplist_HTML_Code template, and change:

<textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK">$_POST[sitename]</a></textarea>

To:

<img src="URL_To_Image" border="0" /><br />
<textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$sr[id]" target="_BLANK">$_POST[sitename]</a></textarea>

That should work, don't forget to change URL_To_Image to the url of your image.


No i basically want a text box above the "forumname Toplist" line.

make sense??

You could edit the Toplist template and after:

$navbar

Add:

<textarea cols="40" rows="5">Text</textarea>


Also can you make a feature to approve or decline toplists

Yes, I will add that to my to do list for this.

And also you know when someone registers a toplist and gets there link for the toplist. How can i change that to give a link that shows a image like a image 88x31 that says Vote toplist. Or even show me where the code is so i can change it

You can edit the Toplist_HTML_Code template to change it.

divided_by_fear
11-17-2005, 12:28 AM
thanks alot.... yeah that feature to approve or decline would be nice...

derekivey
11-17-2005, 01:24 AM
Ok, I'll try to release another version soon with that included.

Sean James
11-19-2005, 03:23 PM
Yeah sorry about that. I moved the hard coded html into templates.

Derek

np dude ;)

I have just updated and now get a white page when i add a new link.

http://www.bluepearl-design.com/forums/add_site.php

How would i go about fixing this?
I have already tried re-installing but this hasnt helped.

derekivey
11-19-2005, 05:52 PM
Hi,

I registered at your forums (derekivey) and I was able to add a site. Are you still having problems?

Derek

divided_by_fear
11-19-2005, 06:10 PM
derekivey what was included in the update yesterday if you dont mind?

Xtrato
11-19-2005, 06:29 PM
You can edit the Toplist_HTML_Code template to change it.

Where do i edit that?

divided_by_fear
11-19-2005, 06:30 PM
in ur admin cp then go to Styles & Templates and edit template... then that template

derekivey
11-19-2005, 07:14 PM
derekivey what was included in the update yesterday if you dont mind?


I didn't update anything yesterday, I just updated my post to add stuff to the to do list.

By the way, version 1.0.3 should be released either tonight or tomorrow.

Brandon Sheley
11-20-2005, 05:18 PM
Very nice will install, and added my site to your toplist :D
thx for this hack, hopefully it'll help me get more traffic to :D

* Brandon Sheley clicks install

how can i moderate new links added ? ilooked in vboptions and toplist and didn't see it, maybe I'm overlooking it

derekivey
11-20-2005, 05:56 PM
Hi,

That feature is in version 1.0.3. I will be releasing that version later tonight.

Brandon Sheley
11-20-2005, 06:29 PM
ah, right on,, will it be hard to upgrade ?

divided_by_fear
11-20-2005, 11:16 PM
will we lose sites when updating?

derekivey
11-20-2005, 11:17 PM
Version 1.0.3 Released.

You will not lose your sites as long as you select yes for overwrite when importing the product.
DO NOT UNINSTALL IT FIRST! ALL YOU HAVE TO DO IS REIMPORT IT AND SELECT OVERWRITE.

divided_by_fear
11-20-2005, 11:19 PM
sweet so its like a 2 second job then lol... one other thing since i added a image to the code will that change at all?

derekivey
11-20-2005, 11:21 PM
sweet so its like a 2 second job then lol... one other thing since i added a image to the code will that change at all?

Nope, there are no changes to that template. So it should still be intact. Also don't forget to upload the new files.

divided_by_fear
11-20-2005, 11:23 PM
ok np ty very much... and thanks for supporting your mod since most around vbulletin seem to be just making them and giving no support

derekivey
11-20-2005, 11:26 PM
Lol, No Problem :).

divided_by_fear
11-20-2005, 11:30 PM
damn man its nice you could basiclly use this as affilates too since the affilates for 3.5.1 dont work well... great job bro........wow i like the random site too

divided_by_fear
11-20-2005, 11:32 PM
hey quick question do you use vbadvanced? i think this would be nice on a random module on main page?

derekivey
11-20-2005, 11:42 PM
hey quick question do you use vbadvanced? i think this would be nice on a random module on main page?

No I haven't used it. I will install it later on my test board and try making a module for it. I'll let you know if I have any luck.

Derek

divided_by_fear
11-20-2005, 11:43 PM
yeah man damn with you christmas is coming early lol ... thanks for all your hard work and support...

opelgtman
11-21-2005, 12:10 AM
When I add a site, it leads me to a blank page when I hit submit. The site will be in the database and show if I go back to the toplist but it never shows the html code.

http://messageboard.gulfcoastbands.com/toplist.php

derekivey
11-21-2005, 12:18 AM
When I add a site, it leads me to a blank page when I hit submit. The site will be in the database and show if I go back to the toplist but it never shows the html code.

http://messageboard.gulfcoastbands.com/toplist.php

Hi,

I just tried it and didn't run into that problem. Try clearing your cache maybe.

Derek

derekivey
11-21-2005, 12:37 AM
divided_by_fear, please try the attached module I made and let me know if it works ok for you.

I tried it on my test board and it appears to be working. Once you let me know it works, I'll release it in the appropriate forum here.

Just import the .module file, it should install the template and stuff. Let me know if you have problems.

Thanks,
Derek

divided_by_fear
11-21-2005, 01:00 AM
yeah just like that but it makes it huge maybe put the info to the site on top and the hits below if you can take a look it makes the blocks wider

http://img468.imageshack.us/img468/6379/module8hd.th.jpg (http://img468.imageshack.us/my.php?image=module8hd.jpg)

derekivey
11-21-2005, 01:01 AM
Actually, I had set it up to be in the center. Do you have space to put it in the center?

divided_by_fear
11-21-2005, 01:02 AM
np man thank you very much... thanks for doing it

divided_by_fear
11-21-2005, 01:04 AM
also one other thing is there anyway to cache that block?
Uncached templates: Toplist_1 (8)

derekivey
11-21-2005, 01:04 AM
So it's working now?

Yeah, I'm looking into the caching problem. I'll post back when I have a fix.

derekivey
11-21-2005, 01:10 AM
Ok, its fixed now. Please import this module file instead...

divided_by_fear
11-21-2005, 01:11 AM
ok np ill try it right now ty

divided_by_fear
11-21-2005, 01:20 AM
its almost the same thing let me look at the template and see

derekivey
11-21-2005, 01:22 AM
I think you have to edit the module settings in the AdminCP and select Center Column instead of right.

divided_by_fear
11-21-2005, 01:24 AM
can u post me what ur using in the template cause the block is working great its just the template part

derekivey
11-21-2005, 01:25 AM
I made the template called toplist_random_site_module and it has this in it:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
<td class="tcat" colspan="5">{$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="88">$vbphrase[toplist_button]</td>
<td class="thead" width="50">$vbphrase[toplist_in]</td>
<td class="thead" width="50">$vbphrase[toplist_out]</td>
</tr>
<if condition="$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 /></td>
<td class="alt2" width="88">$image</td>
<td class="alt1" width="50">$randsite[in]</td>
<td class="alt2" width="50">$randsite[out]</td>
</tr>
<else />
<tr align="center">
<td class="alt1" colspan="5">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="5"><div class="smallfont">
&nbsp;
</div>
</td>
</tr>
</table>

divided_by_fear
11-21-2005, 01:30 AM
ok yeah cause i had to use my moms to import it lol i opened another module up before in wordpad now i cant figure out how to change it back so i can import from this pc lol

divided_by_fear
11-21-2005, 01:31 AM
still the same thing goes big not as wide though

derekivey
11-21-2005, 01:32 AM
Hmm, the one I uploaded should work, but for some reason you have it set to be in the right column. Try editing it in the AdminCP and change the Column setting to Center Column.

Hmm, want to make my username an admin real quick so I can take a look? (username is derekivey).

divided_by_fear
11-21-2005, 01:33 AM
hmm im wondeing if you could do it like the random arcade kinda might give you a better thing to go by also you proably could take out the in and out hits and the rank

derekivey
11-21-2005, 01:34 AM
Looks like you got it now...

divided_by_fear
11-21-2005, 01:35 AM
ok made it the center works great how could i add it so its just like a vbulletin block how you can make it smaller like they use the java or something

derekivey
11-21-2005, 01:36 AM
Yeah, I forgot about that, let me look and see how you do that.

divided_by_fear
11-21-2005, 01:39 AM
ok np lol im lookin too lol i like it though it looks nice lol can almost turn that into a banner exchange lol sell space there lol

divided_by_fear
11-21-2005, 01:49 AM
i have to upload the module again... unless i can get it to change back to what ever it is before i right clicked on it and opened it with notepad... anyword on how to change it back from notepad?

derekivey
11-21-2005, 01:58 AM
Ok, try this one lol. Remember to change the column to Center.

divided_by_fear
11-21-2005, 02:00 AM
ok ill have to import it in the morning ill let you know though... thank you very much for all your work... cause i cant get it to change back to a module lol when i take it out of zip its a text file and i cant get it back to a module lol so ill have to use the other pc in the morning

derekivey
11-21-2005, 02:15 AM
It should still import fine. The extension is probably hidden.

divided_by_fear
11-21-2005, 02:30 AM
ok i set it up looks good just has like a double bar on it on the top take a look not cached too

divided_by_fear
11-21-2005, 02:32 AM
see where it says Random Site how can i remove that part? then it would be perfect

edit oppps aybe not the up and down dont work on it

derekivey
11-21-2005, 02:38 AM
Hi,

Sorry about that lol. Import this module file. I forgot to edit the file to change the name of the template. Then, you can delete the toplist_random_site_module template because I have renamed it to adv_portal_toplist_random_site.

Everything should work now when you import this file instead.

Derek

divided_by_fear
11-21-2005, 02:40 AM
how do i delete that template? also works perfect though

derekivey
11-21-2005, 02:58 AM
Clicking revert does it. Glad its working now :)

divided_by_fear
11-21-2005, 03:01 AM
one last thing would you mind twlling me how i could rename it to supporters? unless u dont want me too... this way people know what it is more... is there a phrase u have to edit if you do mind?

divided_by_fear
11-21-2005, 03:03 AM
lol now im being a pain lol in the future ones too maybe on the mod its self use that script that made it open and close on the topliste random and the one that has them listed like if you go to my site you know the code you just added to that one to make it colaspe add it on the 2 blocks on toplist.php

divided_by_fear
11-21-2005, 03:18 AM
i removed the button off the main page just incase there site goes down.. this way it wont lag my site on dial up users opening it

derekivey
11-21-2005, 09:57 AM
Yeah, I plan to add a uploading feature to the Toplist so it doesn't link to their sites. I just don't know how vBulletin does it yet lol.

To remove the button, just edit the adv_portal_toplist_random_site template and delete

<td class="alt2" width="88">$image</td>

divided_by_fear
11-21-2005, 10:01 AM
yeah that would be nice i just shut there buttons off on main page... this way it dont show the buttons... did you see what i was talking about on the main page for this about the collapse maybe add that to the toplist page for the random and the part where the sites are listed?

VAN
11-21-2005, 05:53 PM
A question and a suggestion...

1: Does this include pagination of any kind, or will the list just keep growing and growing?

2: It would be nice to see you include categories. Admin would create link categories (member sites, funny sites, adult sites, etc., and the submitter would choose which category to place their link. This would also make it easier on people viewing the links since they could simply avoid categories that did not interest them. Should be a simple addition. I'll add it myself tonight, but it would be nice to have it in the official release. ;)

3: Bonus suggestion! It would look a heck of a lot cleaner if you left-justified the links and descriptions. Center-aligned columnar text is difficult to read.

Nice work!

derekivey
11-21-2005, 06:35 PM
Yes, has pagination. Also, I'll take a look into adding that category feature and making the links and descriptions be aligned on the left side.

Derek

derekivey
11-21-2005, 06:36 PM
yeah that would be nice i just shut there buttons off on main page... this way it dont show the buttons... did you see what i was talking about on the main page for this about the collapse maybe add that to the toplist page for the random and the part where the sites are listed?

Yeah, I will probably add that also to the main Toplist.

divided_by_fear
11-21-2005, 11:57 PM
that would be sweet... hey if you get free wanted to see if you could help me on something... hit me up on my site with a pm or on here with a pm

FleaBag
11-22-2005, 01:52 AM
Hey nice hack! Installing now. Out of interest why the number of different .php files? I would have thought they could all be in the same one? I'm not being picky, I just have enough files in the root as it is! ;) Thanks! :)

funinthesun
11-22-2005, 09:18 AM
How can I change the title in the navbar to 'Links' instead of 'Toplist' as this makes it easier for my members :)

derekivey
11-22-2005, 09:51 AM
Don't know lol. I might try combining some of the files in the next version, like the in and out.php files. Also probably the add_site, delete_site and edit_site files. Look for this in the next version :)

Brandon Sheley
11-22-2005, 05:50 PM
updated with no problems,, thank you :)

divided_by_fear
11-22-2005, 06:39 PM
derekivey you should put a link in this description with the addon module for vbadvanced... this way more people can grab it...

derekivey
11-22-2005, 06:53 PM
It's shown in the first post in the box called addons. Do you mean the description in the readme file?

michaelbenson
11-22-2005, 09:43 PM
Is it possible for the outbound site URLs to actually link to their destinated target and not some insite .php redirection page?

derekivey
11-23-2005, 12:38 AM
I don't think so, because it wouldn't be able to count the in or out hit...

divided_by_fear
11-23-2005, 12:41 AM
It's shown in the first post in the box called addons. Do you mean the description in the readme file?

no i didnt see it on here on the description of this mod... i figured it would allow more people to find it easier

Brandon Sheley
11-23-2005, 12:45 AM
most admins know where the addons are located ;)

Add-Ons
Toplist Random Site vBadvanced Module
i seen it :p

derekivey
11-23-2005, 01:50 AM
I'm not going to bother adding it to the readme lol. I'm too lazy to reupload it :p

Allan
11-23-2005, 04:24 AM
Current translation ...... ;)

TheProphet
11-23-2005, 04:28 AM
Great thanks m8, thumbs up, this is just what i needed...

trackpads
11-24-2005, 02:08 PM
I am getting this error when I import the product and cannot figure out why:

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'toplist_enabled',
'toplist_options',
'1',
'1',
'free',
'yesno',
10,
0,
1,
'toplist'
),
(
'disabled_message',
'toplist_options',
'The Toplist is Currently Disabled. Please Come Back Later.',
'The Toplist is Currently Disabled. Please Come Back Later.',
'free',
'textarea',
20,
0,
1,
'toplist'
),
(
'rank_by_in',
'toplist_options',
'1',
'1',
'free',
'yesno',
30,
0,
1,
'toplist'
),
(
'toplist_count_out_from_guests',
'toplist_options',
'0',
'0',
'free',
'yesno',
40,
0,
1,
'toplist'
),
(
'toplist_limit_out_clicks',
'toplist_options',
'1',
'1',
'free',
'yesno',
50,
0,
1,
'toplist'
),
(
'toplist_out_click_limit',
'toplist_options',
'1',
'1',
'free',
'',
60,
0,
1,
'toplist'
),
(
'toplist_limit_in_clicks',
'toplist_options',
'1',
'1',
'free',
'yesno',
70,
0,
1,
'toplist'
),
(
'toplist_in_click_limit',
'toplist_options',
'1',
'1',
'free',
'',
80,
0,
1,
'toplist'
),
(
'toplist_allowed_user_groups',
'toplist_options',
'2,5,6,7',
'2,5,6,7',
'free',
'',
90,
0,
1,
'toplist'
),
(
'toplist_allow_member_edit',
'toplist_options',
'1',
'1',
'free',
'yesno',
100,
0,
1,
'toplist'
),
(
'toplist_allowed_to_moderate',
'toplist_options',
'5,6,7',
'5,6,7',
'free',
'',
110,
0,
1,
'toplist'
),
(
'',
'toplist_options',
'1',
'1',
'free',
'yesno',
120,
0,
1,
'toplist'
),
(
'toplist_open_in_new_window',
'toplist_options',
'1',
'1',
'free',
'yesno',
120,
0,
1,
'toplist'
),
(
'toplist_disable_html',
'toplist_options',
'1',
'1',
'free',
'yesno',
130,
0,
1,
'toplist'
),
(
'toplist_moderate_sites',
'toplist_options',
'0',
'0',
'free',
'yesno',
140,
0,
1,
'toplist'
),
(
'toplist_email_new_validation',
'toplist_options',
'0',
'0',
'free',
'yesno',
150,
0,
1,
'toplist'
),
(
'toplist_email_users',
'toplist_options',
'1',
'1',
'free',
'',
160,
0,
1,
'toplist'
),
(
'toplist_pm_new_validation',
'toplist_options',
'0',
'0',
'free',
'yesno',
170,
0,
1,
'toplist'
),
(
'toplist_pm_from_user',
'toplist_options',
'1',
'1',
'free',
'',
180,
0,
1,
'toplist'
),
(
'toplist_pm_users',
'toplist_options',
'1',
'1',
'free',
'',
190,
0,
1,
'toplist'
),
(
'sites_per_page',
'toplist_options',
'15',
'15',
'free',
'',
200,
0,
1,
'toplist'
),
(
'toplist_in_redirect_url',
'toplist_options',
'',
'',
'free',
'',
210,
0,
1,
'toplist'
),
(
'toplist_number_of_sites',
'toplist_options',
'1',
'1',
'free',
'',
220,
0,
1,
'toplist'
),
(
'toplist_max_height',
'toplist_options',
'31',
'31',
'free',
'',
230,
0,
1,
'toplist'
),
(
'toplist_max_width',
'toplist_options',
'88',
'88',
'free',
'',
240,
0,
1,
'toplist'
);

MySQL Error : Duplicate entry '' for key 1
Error Number : 1062
Date : Thursday, November 24th 2005 @ 10:07:17 AM
Script : http://www.trackpads.com/forum/.../plugin.php
Referrer : http://www.trackpads.com/forum/.../plugin.php?do=productadd
IP Address : 68.47.97.220
Username : Hannibal
Classname : vb_database

thanks!

derekivey
11-24-2005, 08:57 PM
Do you already have this hack installed? That error means those settings exist already.

trackpads
11-24-2005, 09:01 PM
Do you already have this hack installed? That error means those settings exist already.

I thought the same thing even though I didnt. I had the affiliate hack installed but removed it aswell as installed this one and then removed it too just to see if I could clear it.

I looked in phpmyadmin for any of those variables in the settings table but found nothing. Any idea what else I should check?

Thanks again for the help,

-Jason

trackpads
11-24-2005, 09:09 PM
Just checked the table and this is the first one that didnt get put in and there is no duplicate:

(
'toplist_open_in_new_window',
'toplist_options',
'1',
'1',
'free',
'yesno',
120,
0,
1,
'toplist'
),

Any ideas?

trackpads
11-24-2005, 09:12 PM
Just checked the table and this is the first one that didnt get put in and there is no duplicate:

(
'toplist_open_in_new_window',
'toplist_options',
'1',
'1',
'free',
'yesno',
120,
0,
1,
'toplist'
),

Any ideas?

Found it!

Wierd though, one of the varnames in my settings table was blank? That was what was breaking the import of this product.

All works now.

thanks!!

derekivey
11-24-2005, 10:04 PM
Try executing this query in phpmyadmin or the query page in the vB AdminCP, and see if it returns anything.

SELECT * FROM setting WHERE varname='toplist_enabled'

Derek

EDIT: Ok lol, glad you got it to work :)

trackpads
11-24-2005, 10:31 PM
Try executing this query in phpmyadmin or the query page in the vB AdminCP, and see if it returns anything.

SELECT * FROM setting WHERE varname='toplist_enabled'

Derek

EDIT: Ok lol, glad you got it to work :)

Thank you for the help, this is a really, really nice hack. Kudos!!!

derekivey
11-25-2005, 01:05 AM
Thanks :) Glad you like it!

Derek

Benj
11-28-2005, 12:45 PM
this might have been suggested but how about instead of just showing html code for linking to the toplist (vb) site you show other code as well for images that the vb site admin has uploaded. so for example the admin can upload 6 or 7 promotional images. then when a user has finished adding there site they have the option to copy a simply text link as well as in link with the admins promotional images


hope u understand me


cheers :D

derekivey
11-28-2005, 02:16 PM
That can easily be added by tweaking the Toplist_HTML_Code template and changing it to be like you want. I think I am just going to keep it the same for now. But if you want to change it on yours feel free to.

Derek

loonytune15
11-29-2005, 12:55 PM
Is there a way to have a box on the forumhome thats shows random toplists sites?

derekivey
11-29-2005, 06:48 PM
Yeah, I'll try and make an addon tonight. Where would you like to see it at on the forum home?

Xtrato
11-29-2005, 07:26 PM
bottom in a hor. scrolling bar.

derekivey
11-29-2005, 07:47 PM
Like under the Whats Going on? Box?

Xtrato
11-30-2005, 07:25 PM
yea like under the birthdays ect.

It would scroll the images (linked) across the page in a box. I think that would be a nice addon.

derekivey
11-30-2005, 07:39 PM
Wait, so you just want a part that scrolls the images in the Toplist?

Xtrato
11-30-2005, 11:58 PM
yea and maybe if no image, the name of the site and its linked to that site thru the out.php thing.

derekivey
12-01-2005, 12:06 AM
Ok, I'll try and make that.

Xtrato
12-02-2005, 12:13 AM
Ok great!

Also Bump this amazing hack to the first page :D

derekivey
12-02-2005, 02:08 AM
I'll try and get to it tomorrow, I have been really busy with school this week :(.

bitblaster
12-02-2005, 10:21 PM
I have installed this.

If I may make a suggestion....

Could you have another update for game servers, to check the status, and possibly only show online servers?

Thanks for the mod!

derekivey
12-02-2005, 11:24 PM
Hi,

I'm not sure how to do this, sorry :(

derekivey
12-05-2005, 12:19 AM
Version 1.0.4 is now out.

Please see the first post for what's new.

Follow the readme file closely to avoid losing the sites in your Toplist...

Derek

divided_by_fear
12-05-2005, 12:41 AM
the rating system dont see to work for me gives me a error...

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM toplist_ratings WHERE site_id='2' && username='MindWalker';

MySQL Error : Table '*************.toplist_ratings' doesn't exist
Error Number : 1146
Date : Sunday, December 4th 2005 @ 09:40:03 PM
Script : /toplist.php?do=rate&id=2
Referrer :
IP Address :
Username :
Classname : vb_database

divided_by_fear
12-05-2005, 12:54 AM
its the way you have the sql set up with table_prefix it dont work on my sql i suppose cause it didnt alter the tables

derekivey
12-05-2005, 02:03 AM
Hold on, I think I forgot to add the SQL code for that database to the install code, I'll update the zip file in a second.

divided_by_fear
12-05-2005, 02:07 AM
ok np thank you very much

derekivey
12-05-2005, 02:08 AM
Ok, redownload the zip file and try importing it again, don't forget to hit yes for overwrite.

divided_by_fear
12-05-2005, 02:13 AM
kk one sec ill try

derekivey
12-05-2005, 02:16 AM
You might get an error in that one, if so please redownload and import the new .xml file. I was missing a " in the install code.

divided_by_fear
12-05-2005, 02:16 AM
nope did the same thing... i did overwrite and all...

derekivey
12-05-2005, 02:18 AM
Try the file I just uploaded please.

divided_by_fear
12-05-2005, 02:21 AM
nah its still giving the same error

derekivey
12-05-2005, 02:21 AM
Hmm I'll take a look and get back to you in a few mins.

divided_by_fear
12-05-2005, 02:25 AM
ok np this is the error it gives

Invalid SQL:
SELECT * FROM toplist_ratings WHERE site_id='2' && username='MindWalker';

MySQL Error : Table '*******_**********.toplist_ratings' doesn't exist

derekivey
12-05-2005, 02:35 AM
Ok, try again please.

If it doesn't work, just execute this query in the AdminCP:

CREATE TABLE `".TABLE_PREFIX."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;

divided_by_fear
12-05-2005, 02:42 AM
it wont even let me do it through php admin

#1103 - Incorrect table name '".TABLE_PREFIX."toplist_ratings'

divided_by_fear
12-05-2005, 02:43 AM
is there a way i can do it with out the table prefix

derekivey
12-05-2005, 02:54 AM
Yeah remove ".TABLE_PREFIX." it wont work in phpmyadmin b/c TABLE_PREFIX is part of vB.

divided_by_fear
12-05-2005, 02:56 AM
ok one sec let me try

divided_by_fear
12-05-2005, 02:58 AM
ok it opens up the ratings box but once i subit it gives another error let me try to do the tables manually or if you code post the tables that would be great

derekivey
12-05-2005, 03:00 AM
ALTER TABLE `toplist_sites` ADD `rating_total` INT( 10 ) DEFAULT '0' NOT NULL AFTER `out`;

ALTER TABLE `toplist_sites` ADD `votes` INT( 10 ) DEFAULT '0' NOT NULL AFTER `rating_total`;

ALTER TABLE `toplist_sites` ADD `rating_average` INT( 10 ) DEFAULT '0' NOT NULL AFTER `votes`;


There you go :)

divided_by_fear
12-05-2005, 03:04 AM
working great thank you one thing i went to rate my site before this fix but its not showing now can i make that show?

divided_by_fear
12-05-2005, 03:05 AM
nm lol i got it thank you so much... now how could i add the rating to the random site module lol...sorry for asking so much

derekivey
12-05-2005, 03:11 AM
I'll update that module tomorrow, I have to go now. It's late here.

Derek

loonytune15
12-05-2005, 10:47 AM
Was the add-on for the forum home added into this release?

divided_by_fear
12-05-2005, 10:49 AM
no it wasnt...

loonytune15
12-05-2005, 11:42 AM
I have updated and cant see any probs so far, though i am hoping the add-on for the forum home will be added in soon.

I'd like it to include an option on how many will scroll and so forth.

divided_by_fear
12-05-2005, 11:45 AM
if you start getting into scrolling stuff that really slows sites down... i would def. uninstall if this goes scroilling....

loonytune15
12-05-2005, 12:06 PM
No just an option to include it, naturally you can turn it off if you dont want it on. Or even if it included a box at the bottom that changes the affiliate every 10 seconds or so..

Snake
12-05-2005, 12:23 PM
Hey I got a little feature-suggestion:

-Commenting system

divided_by_fear
12-05-2005, 12:25 PM
No just an option to include it, naturally you can turn it off if you dont want it on. Or even if it included a box at the bottom that changes the affiliate every 10 seconds or so..


why wouldnt you just go with it like he has it on the vbadvanced module each time you refresh it shows a different site... cause when you have it changeing like that it will slow things down

divided_by_fear
12-05-2005, 12:26 PM
Hey I got a little feature-suggestion:

-Commenting system


yeah that would really be nice to see... this way other users can basiclly see what they think and feel about the other site

Stephen3
12-05-2005, 03:03 PM
request for category , porsible ??

pauloo
12-05-2005, 03:36 PM
request for category , porsible ??

Good idea :nervous: ,I want too a category

Than you for this good hack !

Snake
12-05-2005, 03:36 PM
Yeah site category (such as Gaming, Movies, etc) - that would be nice too!

derekivey
12-05-2005, 07:37 PM
Category system is on my list of things to add. I also plan to add an option that allows you to add a random site to the forum home, note this will be optional and can be turned off in the AdminCP.

divided_by_fear
12-05-2005, 07:38 PM
yeah it has came a long way since i first installed it doing nice work....