vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist Random Site vBadvanced Module (https://vborg.vbsupport.ru/showthread.php?t=101302)

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.
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.

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...


All times are GMT. The time now is 11:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01142 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete