Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Toplist Random Site vBadvanced Module Details »»
Toplist Random Site vBadvanced Module
Version: 1.0.4, by derekivey derekivey is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-21-2005 Last Update: 07-15-2006 Installs: 48
Template Edits
Additional Files  
No support by the author.

Toplist Random Site Module
For vBadvanced
Developer: derekivey
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 If you installed this hack.

Thanks!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 06-13-2006, 02:49 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing! . I'm sure tons of people will appeciate this, especially if they have many center blocks.

Derek
Reply With Quote
  #53  
Old 06-13-2006, 06:13 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No probs. great hack
Reply With Quote
  #54  
Old 06-13-2006, 06:36 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #55  
Old 06-15-2006, 05:46 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Code:
<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=$vboptions[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.
Reply With Quote
  #56  
Old 06-25-2006, 05:56 AM
Ski-Whiz's Avatar
Ski-Whiz Ski-Whiz is offline
 
Join Date: May 2003
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with 1.0.8??
Reply With Quote
  #57  
Old 06-25-2006, 02:50 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #58  
Old 07-16-2006, 04:26 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #59  
Old 07-29-2006, 12:22 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #60  
Old 07-29-2006, 06:35 PM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats currently not a feature, but I will see about adding it.
Reply With Quote
  #61  
Old 07-31-2006, 01:54 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04564 seconds
  • Memory Usage 2,310KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete