PDA

View Full Version : Toplist Random Site vBadvanced Module


derekivey
11-21-2005, 10:00 PM
Toplist Random Site Module
For vBadvanced
Developer: derekivey (https://vborg.vbsupport.ru/member.php?u=81169)
Version: 1.0.4
vBulletin Version: 3.5.4
File Edits: 0
Template Edits: 0
New Templates: 1
Phrases: 0 (uses the Toplist phrases)
Difficulty: Easy

Description: This module adds a Random Site block on your vBadvanced CMPS, that shows a random site from your Toplist (just like on the Toplist itself).

NOTE: You must have my Toplist hack installed to use this module.
You can get it in the vBulletin.org thread located here:
https://vborg.vbsupport.ru/showthread.php?t=98646

Changelog

Version 1.0.4

Updated it to work with version 1.0.9 of the Toplist hack.Version 1.0.3

Fixed image bug, since Toplist version was released.Version 1.0.2

Fixed rank bug.I have added a screenshot below.

Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=101302) If you installed this hack.

Thanks!

Daniel
11-22-2005, 01:02 AM
Great! Thanks!

/me clicks install

derekivey
11-22-2005, 01:14 AM
Thanks,

divided_by_fear gave me the idea lol.

Derek

divided_by_fear
11-22-2005, 07:05 AM
yeah i may have gave you the idea but you made it happen and i thank you... i have a few more ideas too lol

puertoblack2003
11-22-2005, 11:07 PM
try to upload file and got this error message:

The file you have uploaded is not a valid module file.

divided_by_fear
11-22-2005, 11:09 PM
thats strange it works perfect for me

derekivey
11-23-2005, 12:40 AM
Yeah, same here. Do you have the latest version of vBadvanced? I don't use vBadvanced much, so I don't know why you are having that problem. I will look into it though.

klaush
11-23-2005, 12:27 PM
Yeah, same here. Do you have the latest version of vBadvanced? I don't use vBadvanced much, so I don't know why you are having that problem. I will look into it though.

Same here, no chance to import the module:vBadvanced CMPS v2.0.0 (vB 3.5.1)

divided_by_fear
11-23-2005, 12:51 PM
i cant see why there having problems either worked like a charm for me

klaush
11-23-2005, 12:57 PM
i cant see why there having problems either worked like a charm for me

So you tried it with CMPS 2.0 and vb 3.5.1?

I also get "The file you have uploaded is not a valid module file."

derekivey
11-23-2005, 06:44 PM
Those are the versions I made it in, and it imports fine for me. I will take a look into it and see if I can find out whats wrong.

klaush
11-23-2005, 06:52 PM
Those are the versions I made it in, and it imports fine for me. I will take a look into it and see if I can find out whats wrong.


Thanks derekivey!

derekivey
11-23-2005, 06:57 PM
Is the extension of the file in the zip file a .module file? Perhaps the extension has gotten renamed or something. Let me know.

Thanks,
Derek

klaush
11-23-2005, 07:12 PM
Is the extension of the file in the zip file a .module file? Perhaps the extension has gotten renamed or something. Let me know.

Thanks,
Derek

Derek, it is just the original .module File of the zip posted here.

derekivey
11-23-2005, 08:07 PM
Hmm, should work then, I'm not sure why it's not. I'll see if I can fix it.

puertoblack2003
11-23-2005, 09:36 PM
Hmm, should work then, I'm not sure why it's not. I'll see if I can fix it.


i tried again you can look at it from the pic's
http://img481.imageshack.us/img481/5526/module12vx.th.gif (http://img481.imageshack.us/my.php?image=module12vx.gif)

divided_by_fear
11-23-2005, 10:13 PM
i cant see why it dont work for them lol i uploaded it right away even removed and did it again...

derekivey
11-23-2005, 10:40 PM
I've got an idea, I'll just have to give you the php file to upload to the modules directory, and the module and template will have to be added manually I guess...

derekivey
11-23-2005, 10:51 PM
Ok, new zip file uploaded. If you were having trouble, please follow the updated install.txt file.

puertoblack2003
11-23-2005, 11:09 PM
Ok, new zip file uploaded. If you were having trouble, please follow the updated install.txt file.

there ya go that did work **INSTALLED*** great one like it

derekivey
11-24-2005, 12:17 AM
Thanks :)

FleaBag
11-27-2005, 10:10 PM
Modified the template ever so slightly to remove the footer and it's looking great. Thanks!

klaush
11-28-2005, 06:12 AM
Yeah, that´s it!

Works like a charm!

Thanks!

derekivey
12-06-2005, 01:55 AM
Version 1.0.1 Released. I added the sites Rating now.

divided_by_fear
12-28-2005, 06:48 PM
are you planing on fixing the rank on this ?

derekivey
12-28-2005, 07:56 PM
Is it broken too? I thought the one on the Toplist page was. I thought this one worked still. Can you confirm this for me?

divided_by_fear
12-28-2005, 08:10 PM
nah its just the rank part that is like the other one... it gives a random rank lol

derekivey
12-28-2005, 09:20 PM
I'll take a look lol.

divided_by_fear
12-28-2005, 09:45 PM
lol just one more thing huh lol but i have faith in you lol i see your work...

derekivey
12-29-2005, 12:09 AM
Version 1.0.2 released. Just upload the new file if you are upgrading.

divided_by_fear
12-29-2005, 12:46 AM
hell yeah works like a charm lol aint to much more u have left... u have this hack pretty much perfect... hmmm whats next you going to disney land?

derekivey
12-29-2005, 01:10 AM
Lol. I want to make some more hacks but don't have any ideas lol.

divided_by_fear
12-29-2005, 01:35 AM
i could think of a few lol that i would like to see made

divided_by_fear
12-29-2005, 01:38 AM
or i could think of a few you could port lol if you wouldnt mind

derekivey
12-29-2005, 03:25 AM
PM me a list of stuff please :).

divided_by_fear
12-29-2005, 03:53 AM
pm sent

loonytune15
12-31-2005, 02:02 AM
thanks for the update.

JonnyQuest
01-23-2006, 12:05 AM
thanks for the update.

This is a grea addition to the toplist add-on. One thing you might consider is allowing one to customize the toplist category that it pulls from and determining whether you want it to be random or whether you want it to be the 'top x' sites according to a certain factor - say hits in or out for example.

We're building custom news pages in vBa, including top news from certain forums (posted using articlebot), recent posts from a forum (using vBa) and want to include top sites form toplist (based on most traffic over the last x days).

Great work!

derekivey
01-23-2006, 09:59 AM
Thanks for the suggestion. I will see about adding it to the next version :).

pauloo
01-25-2006, 09:44 PM
thanks ! nice idea

Guest210212002
02-07-2006, 10:56 PM
Installed and working, but the button shows up as "none" for me.

http://www.sevenstring.org

derekivey
02-07-2006, 11:20 PM
Yeah sorry about that. I forgot to update this addon after I released the latest version of the Toplist hack. I will release an update in a few minutes to fix it.

Derek

derekivey
02-08-2006, 12:26 AM
Ok, version 1.0.3 has been released, let me know if you have any problems with it.

Derek

quanvo81
02-21-2006, 12:21 PM
ok it still happen with the button. If a member add a site without an image, it will show up a red cross X in both forum and Vbadvanced CPMS

DementedMindz
04-01-2006, 06:29 AM
ok i have another idea.. ok some people cant see the link to the top sites... i was thinking maybe on the bottom adding this.....

Click Here To Add Your Site To Our Toplist


On the bottom of the block... and have it where it takes them to the add page :)

derekivey
04-02-2006, 03:06 AM
Ok, I like that. I'll see about adding it when I get time.

Derek

DementedMindz
04-02-2006, 03:10 AM
kinda like it is on the toplist.php page at the bottom (Add Site) or what ever they want in there :) just giving ideas... makes it easier for users to link up

anahowa
05-28-2006, 08:50 PM
is it possible to modifide this module to top 5 vBadvanced block

derekivey
05-29-2006, 01:00 AM
Sorry, I don't understand what you mean. You mean show 5 sites instead of just 1?

jaks
06-13-2006, 05:55 AM
Not sure if anyone would be interested in this but I modified the module template so I could display it as a side block.

You would have to change the add a unusual website link at the bottom to whatever you want. I attached a screenshot aswell. You also have to change the module colspan to 3 instead of 6. You can play with the height by removing the in/out stuff if it's too tall for your site.

I also added a missing / at the end of the image tag to make it w3c compliant.

<tr><td class="thead" colspan="3">$vbphrase[toplist_site_name_and_description]</tr><tr><td class="alt1" colspan="3"><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK">$randsite[name]</a><br />$randsite[description]<br /><center>$image</center></td></tr>
<tr align="center">
<td class="thead" width="20">$vbphrase[toplist_rank]</td>
<td class="thead" width="30">$vbphrase[toplist_in]</td>
<td class="thead" width="30">$vbphrase[toplist_out]</td>
</tr><tr align="center"> <td class="alt2">$rand_rank</td>

<td class="alt1" width="30">$randsite[in]</td>
<td class="alt2" width="30">$randsite[out]</td></tr><tr align="center"><td class="thead" width="100%" colspan="3">$vbphrase[toplist_rating]</td>
</tr>
<if condition="$num_rows >= 1">
<tr align="center">
<td class="alt1" width="100%" colspan="3">
<if condition="$randsite[rating_average] == 0">
$vbphrase[toplist_not_rated]
<else />
<img src="$vboptions[bburl]/images/rating/toplist_rating_$rand_rating.gif"/>
<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&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>
<td class="alt1">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="3"><div class="smallfont"><a title="add an unusual website" href="http://www.trulyunusual.com/wards/toplist.php">Add an Unusual website</a>

</div>
</td>
</tr>

derekivey
06-13-2006, 02:49 PM
Thanks for sharing! :). I'm sure tons of people will appeciate this, especially if they have many center blocks.

Derek

jaks
06-13-2006, 06:13 PM
No probs. great hack :D

DementedMindz
06-13-2006, 06:36 PM
nice work jaks just need to clean the code up a bit so its html complaint.... hope derek makes the one i was talkin to him in pm about...

jaks
06-15-2006, 05:46 PM
Thanks for pointing that out DementedMindz I found the errors that made it not comply with W3C. A couple unclosed tags and some missing alt tags. It's now 100% W3C Transitional Compliant.

I fixed the template and editted the toplist module php file.

Here is the fixed template.
Just switch my links for yours. I added an extra link that goes to the toplist main page at the bottom of the template aswell.
<tr><td class="thead" colspan="3">$vbphrase[toplist_site_name_and_description]</td></tr><tr><td class="alt1" colspan="3"><a href="$vboptions[bburl]/out.php?id=$randsite[id]" target="_BLANK">$randsite[name]</a><br />$randsite[description]<br /><center>$image</center></td></tr>
<tr align="center">
<td class="thead" width="20">$vbphrase[toplist_rank]</td>
<td class="thead" width="30">$vbphrase[toplist_in]</td>
<td class="thead" width="30">$vbphrase[toplist_out]</td>
</tr><tr align="center"> <td class="alt2">$rand_rank</td>

<td class="alt1" width="30">$randsite[in]</td>
<td class="alt2" width="30">$randsite[out]</td></tr><tr align="center"><td class="thead" width="100%" colspan="3">$vbphrase[toplist_rating]</td>
</tr>
<if condition="$num_rows >= 1">
<tr align="center">
<td class="alt1" width="100%" colspan="3">
<if condition="$randsite[rating_average] == 0">
$vbphrase[toplist_not_rated]
<else />
<img alt="" src="$vboptions[bburl]/images/rating/toplist_rating_$rand_rating.gif"/>
<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&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>
<td class="alt1">$vbphrase[toplist_none]</td>
</tr>
</if>

<tr align="center">
<td class="thead" colspan="3"><b><a title="add an unusual website" href="http://www.trulyunusual.com/wards/add_site.php"><font color="gold">Add An Unusual Website</font></a></b><br /> <a title="add an unusual website" href="http://www.trulyunusual.com/wards/toplist.php"><font color="gold">Top Unusual Websites</font></a>


</td>
</tr>

There is 2 img tags in the php file that need alt='' added to them. Please note these are single quotes, not double quotes or you will get a parse error. Just search the toplist_random_site.php file for img and you will see.

Since this is the toplist_random_site.php file I guess everyone using this the VBA toplist module needs to add these missing alt tags whether or not you used the side template or not. Might want to update the download.

Ski-Whiz
06-25-2006, 05:56 AM
Will this work with 1.0.8??

derekivey
06-25-2006, 02:50 PM
Hi,

I'm not sure. I don't have vBadvanced installed right now so I can't say for sure. It probably needs updated though, I will have to look when I get some time.

Thanks,
Derek

derekivey
07-16-2006, 04:26 PM
Version 1.0.4 has been released. It is now compatible with the latest version of my Toplist hack.

Please let me know if you have any problems with it.

Thanks,
Derek

DementedMindz
07-29-2006, 12:22 AM
question would there be any way to make it show the top 10 links or say have it scroll the links as i dont use the buttons feature... basiclly have it grab there site name and have it when they highlight over it they will get a link to the site or the redirect?

derekivey
07-29-2006, 06:35 PM
Thats currently not a feature, but I will see about adding it.

DementedMindz
07-31-2006, 01:54 AM
yeah that would be a nice feature on this and toplist since alot of users dont use buttons they only use huge banners or links...

ZeroX Prodigy
08-02-2006, 02:24 PM
Great vBA Add-On. Installing when I do vBA also!

jellybaby
10-18-2006, 10:23 AM
I have this installed but when I click on the random site at the top it just takes me back to the toplist, any ideas?

jellybaby
10-29-2006, 09:01 AM
Anyone else have this problem?

derekivey
10-29-2006, 11:18 AM
Got a link I can look at?

jellybaby
10-29-2006, 11:57 AM
Sorry I posted this in the wrong thread originally - so have also posted earlier on the toplist when I realised - this is my url though

http://www.mumszone.co.uk/forums/toplist.php

derekivey
10-29-2006, 02:32 PM
I will reply with the fix in the Toplist thread. Please go there for it.

Thanks,
Derek

loonytune15
10-31-2006, 12:28 PM
IS there a way to make the module look like this:
http://www.iz-grafix.co.uk/?styleid=7

2 modules on it..

derekivey
11-12-2006, 01:57 PM
Hmm... so theres spits the sites up into 2 different modules? Or do they both have the same sites? BTW, sorry for the late reply, I didn't get a subscription email for some reason.

Derek

loonytune15
11-17-2006, 12:57 AM
Well can we have a the random site like we already have, but another module that shows all of them?

derekivey
11-17-2006, 09:28 AM
Well can we have a the random site like we already have, but another module that shows all of them?
So your saying make a module that is like what I have on the bottom of the forum home, where it scrolls all the buttons in the Toplist?

loonytune15
11-17-2006, 11:14 AM
yeah but it will be up and down instead of left to right..

derekivey
11-17-2006, 07:13 PM
Yup, I'll try and make this ASAP.

Derek

loonytune15
11-18-2006, 12:36 PM
no hurry, when you have a chance.

How is the toplist 3.6 version coming along?

derekivey
11-19-2006, 02:28 AM
no hurry, when you have a chance.

How is the toplist 3.6 version coming along?
Pretty much done, just gonna find time to release it lol. Been sooo busy :(.

DementedMindz
02-22-2007, 06:18 AM
Yup, I'll try and make this ASAP.

Derek


any word on this feature?

derekivey
02-25-2007, 02:50 PM
I've been quite busy lately. I will try to get to it when I have time.

Derek