vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Better Similar Threads Placement (https://vborg.vbsupport.ru/showthread.php?t=81453)

Lionel 05-13-2005 10:00 PM

Better Similar Threads Placement
 
open showthread.php and before

PHP Code:

eval('$similarthreads = "' fetch_template('showthread_similarthreads') . '";'); 

put

PHP Code:

$similar="1"



In showthread template, right before

</tr>
</table>
<!-- / toolbar -->

put

PHP Code:

<if condition="$similar==1"><td class="vbmenu_control"> <div id="similar" class="vbmenu_control"><a href="#similar">Similar Threads</a> <script type="text/javascript"vbmenu_register("similar"); </script></div></td></if> 

and replace

$similarthreads
<br />

with that

PHP Code:

<div class="vbmenu_popup" id="similar_menu" style="display:none">
$similarthreads 
</div


dsboyce8624 05-14-2005 01:34 AM

Dude, please fix that post, I like your idea, but I can't read it.

Lionel 05-14-2005 01:37 AM

Why can't you read it? I am reading it without my glasses

Guest190829 05-14-2005 01:45 AM

Replace your quote tags with PHP tags...and put PHP tags around every piece of code you have. It will make it more readable.

IE...

PHP Code:

eval('$similarthreads = "' fetch_template('showthread_similarthreads') . '";'); 

Very nice idea BTW. :up:

dsboyce8624 05-14-2005 01:48 AM

Quote:

Originally Posted by Lionel
Why can't you read it? I am reading it without my glasses

I've been rebuilding my site all day. With the mismatched code tags it made me cross eyed. But I'm installing it. ;)

Lionel 05-14-2005 01:49 AM

here you go ....

Lionel 05-14-2005 01:53 AM

Quote:

Originally Posted by Danny.VBT

Very nice idea BTW. :up:

Thanks guys. What I really wanted to do is way out of my league. I'll leave that for the big guys here.

Just like yahoo. here

Boofo 05-14-2005 04:07 AM

Nice idea. ;)

How about a txt file so others can re-install it after an upgrade? ;)

Lionel 05-14-2005 04:14 AM

Quote:

Originally Posted by Boofo
Nice idea. ;)

How about a txt file so others can re-install it after an upgrade? ;)

uploaded ...

Slave 05-14-2005 05:22 PM

Nice idea .. installed :)


All times are GMT. The time now is 11:21 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.01028 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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