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
  #12  
Old 05-14-2005, 06:36 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Slight problem ..

I've got my styles as 100% width .. and I'm finding the Similar Threads dropdown is going past the browser width .. see the attachment to see what I mean ..

I've tried changing the width of the table .. but that doesn't seem to fix it.

Any ideas?
Reply With Quote
  #13  
Old 05-14-2005, 06:40 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a nowrap tag somewhere?
Reply With Quote
  #14  
Old 05-14-2005, 06:43 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant idea. I didn't like the clutter the Similar Threads box added, but this allows me to give my members the feature without eating up more screen space.

I'm having some mild display problems, though; the menu appears to jump around each time I hover over it...it never unfolds in the same place twice in a row. Anyone else having this problem?
Reply With Quote
  #15  
Old 05-14-2005, 06:47 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Do you have a nowrap tag somewhere?
Hmm .. yeah I do have a couple ..

I'll try without them and see what happens ..
Reply With Quote
  #16  
Old 05-14-2005, 06:52 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TWTCommish
Brilliant idea. I didn't like the clutter the Similar Threads box added, but this allows me to give my members the feature without eating up more screen space.

I'm having some mild display problems, though; the menu appears to jump around each time I hover over it...it never unfolds in the same place twice in a row. Anyone else having this problem?
why not try putting at the end of the similar template table a <tr><td><img src="invisible.gif" border="0" width="uptoyou" height="1"></td></tr> with the proper colspan?
Reply With Quote
  #17  
Old 05-14-2005, 06:56 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Won't removing the similar threads from their usual location and putting them like this stop spiders from seeing them and thus hurt seo?
Reply With Quote
  #18  
Old 05-14-2005, 06:58 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
why not try putting at the end of the similar template table a <tr><td><img src="invisible.gif" border="0" width="uptoyou" height="1"></td></tr> with the proper colspan?
Hm, tried it, and it fixed half the problem: it still shows up far on the left, but then I hover off, and then hover back on, and it moves to the right. It does this two or three times, but then it stays put underneath the link (whereas before, it would keep going right and then jump back to the left and repeat the whole thing). I'm probably explaining this in a pretty confusing way. Might help to see it in action:

http://www.movieforums.com/community...ead.php?t=8480
Reply With Quote
  #19  
Old 05-14-2005, 06:59 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Similars are threads that are being seen somewhere else. If you remove them all together spiders still will see those threads.
Reply With Quote
  #20  
Old 05-14-2005, 07:01 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TWTCommish
Hm, tried it, and it fixed half the problem: it still shows up far on the left, but then I hover off, and then hover back on, and it moves to the right. It does this two or three times, but then it stays put underneath the link (whereas before, it would keep going right and then jump back to the left and repeat the whole thing). I'm probably explaining this in a pretty confusing way. Might help to see it in action:

http://www.movieforums.com/community...ead.php?t=8480
looks good to me the first try.
Reply With Quote
  #21  
Old 05-14-2005, 07:02 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
looks good to me the first try.
Hmm...where's it intended to show up? On the left, or right underneath the menu? Mine starts on the left, then I click on one of the other menus, then click back on the Similar Threads menu and it's moved to the right. Does it move for you if you close the menu, then click on it again?
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 12:51 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.09737 seconds
  • Memory Usage 2,311KB
  • 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
  • (5)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