Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Better Similar Threads Placement Details »»
Better Similar Threads Placement
Version: 1.00, by Lionel Lionel is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-13-2005 Last Update: Never Installs: 10
 
No support by the author.

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

Show Your Support

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

Comments
  #22  
Old 05-14-2005, 07:09 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using IE and after every refresh on your page, it opens to the same place from right to left. When I click on one of your other menus, the click back on similar, it shifts a little to the right, but that is not a problem. hat's the way all oversize menus behave.
Reply With Quote
  #23  
Old 05-14-2005, 07:10 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah .. I see what you mean TWTCommish .. starts over on the left a bit .. then 2nd go it moves over to the right a bit .. and then 3rd go it ends up where I would of thought it should be ..

Weird ..
Reply With Quote
  #24  
Old 05-14-2005, 07:13 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok .. in the end I needed to get ride of all the nowrap tags as well as the widths for each <td> .. seems to be fine now, and I'm not getting what TWTCommish is getting ..

One thing .. I notice that the Similar Threads drop down doesn't appear on all my threads .. I take it that if there aren't any Similar Threads is just doesn't bother showing the option?
Reply With Quote
  #25  
Old 05-14-2005, 07:17 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, if there are no similars it will not show up (nothing to display).
Reply With Quote
  #26  
Old 05-14-2005, 07:18 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool ..

heh .. Thought I was going mad for a second ..
Reply With Quote
  #27  
Old 05-14-2005, 07:21 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just looked at your site. It looks nice :-)
Reply With Quote
  #28  
Old 05-14-2005, 07:25 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm .. this has got me thinking ..

I've got a couple of forums where I've got five or more sub forums which then get in the way of the main forum discussion, with people having to scroll down the page to get to the threads ..

Lionel .. could you look at doing something like this hack for sub forums? Perhaps have a drop down next to the search forum drop down?

What do you think?
Reply With Quote
  #29  
Old 05-14-2005, 07:27 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
I just looked at your site. It looks nice :-)
Hey! .. thanks
Reply With Quote
  #30  
Old 05-14-2005, 07:31 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure I understand you. You mean the subforums display first, then the threads after? If so that is how vb is built. I got around that problem by not allowing to post in the first forum, creating instead a subforum where all those threads that were supposed to go in original forum, are placed. This way when you open forum, all you see is subforums.
Reply With Quote
  #31  
Old 05-15-2005, 07:14 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like if you change the similarthreadbits templates alt1 and alt2 into vbmenu_option
the table opens properly on the right every time.
Reply With Quote
Reply

Thread Tools

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 04:07 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.06605 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (1)bbcode_quote
  • (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
  • (3)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