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 (https://vborg.vbsupport.ru/showthread.php?t=98646)

divided_by_fear 12-29-2005 12:50 AM

i think pretty much u have this mode top notch only thing i can think of now lol is maybe add the Categories to the table for each... but other then that there aint much more you can ask for with it lol its working perfect and it has many features... maybe you could tweak my block that i used on my site to have it where people can link you easier on vbadvanced... its basiclly like a php nuke link us block

derekivey 12-29-2005 01:12 AM

I'm planning on adding to the next release the option to add many different images they can put on their site. Also, one of the images will have their rank, in hits, out hits, and rating.

divided_by_fear 12-29-2005 01:32 AM

damn cant wait to see that lol i wonder how that will be done

divided_by_fear 12-29-2005 04:15 AM

found a bug i think when you go to edit a site on the main page(edit_site.php) ok when it gives you the link back to the site so they can get hits its not right... like for example my buddy just asked me for his code again cause i have it where they cant edit them ok and his site id is 14 and its showing 13 and it would give hits for another site then...

here is what i mean this is the code it gives

<a href="http://www.blah.com/in.php?id=13" target="_BLANK"><img src='http://www.blah.com/images/blah.gif' border='0'></a>

when in admin his Site ID is 14 why would that do this?

derekivey 12-29-2005 02:45 PM

I'll take a look and relea e a patch if I can confirm it.

Derek

derekivey 12-29-2005 03:52 PM

Ok, bug fixed. Just upload the attached edit_site.php file and overwrite the old one, and replace the Toplist_HTML_Code template with the following code:
PHP Code:

<if condition="THIS_SCRIPT == add_site"
$vbphrase[toplist_add_successful]<br />
<if 
condition="$vbulletin->options['toplist_moderate_sites'] == 1">
$vbphrase[toplist_sites_moderated]<br />
<else />
$vbphrase[toplist_sites_shown_instantly]<br />
</if>
<else />
$vbphrase[toplist_edit_successful]<br />
</if>
$vbphrase[toplist_html_code_message]:<br />
<if 
condition="THIS_SCRIPT == add_site">
<
textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$sr[id]target="_BLANK">$_POST[sitename]</a></textarea>
<else />
<
textarea cols="40" rows="4"><a href="$vboptions[bburl]/in.php?id=$idtarget="_BLANK">$_POST[sitename]</a></textarea>
</if> 

Let me know if you have any problems. I also updated the zip file attached to the first post for those of you who haven't installed this hack yet.

Derek

XtremeOffroad 12-29-2005 04:51 PM

What an easy Install, Seems to work ok so far, One thing though, Is there any way to change the order of the catagories without rewriting them? I forgot to add one and to place it towards the top I needed to rewrite all the existing cats, Hope that made sense.
BTW Clicks install.

derekivey 12-29-2005 05:13 PM

Not yet, I think I'll add a display order feature to the next version. Sorry about that.

XtremeOffroad 12-29-2005 05:23 PM

Quote:

Originally Posted by derekivey
Not yet, I think I'll add a display order feature to the next version. Sorry about that.

Fantastic, Other then that This is a GREAT feature I was hoping to find.
Also on the code for members to add how would I change it to say Vote for us or something similar? rather then just my site name.

derekivey 12-29-2005 11:13 PM

Hi, You would just edit the Toplist_HTML_Code template I believe.

EDIT: Yeah, just open that template and change all instances of $_POST[sitename] to Vote for Us! or something.


All times are GMT. The time now is 02:03 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.04383 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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