Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-23-2012, 07:49 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kh99 thank you so much for the help you give in this thread, after much searching to find what I wanted I used your coding (with changes for vb3 lol) on my board, example here: http://www.digiscrapforum.com/showthread.php?t=2287 I think it looks much nicer than the old display :P
Reply With Quote
  #12  
Old 02-18-2013, 07:21 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey everyone, great article and looking to do the exact same think, Is this for vb 3.8 ? I get an error when trying to add the code to my postbit_legacy

Thanks
Reply With Quote
  #13  
Old 02-19-2013, 06:10 AM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Hey everyone, great article and looking to do the exact same think, Is this for vb 3.8 ? I get an error when trying to add the code to my postbit_legacy

Thanks
This is for vBulletin 4 if you look at the forum name. However, you should create your own thread for this.
Reply With Quote
  #14  
Old 02-19-2013, 10:10 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Amaury25 View Post
This is for vBulletin 4 if you look at the forum name. However, you should create your own thread for this.
Thanks for a worthless response
Reply With Quote
  #15  
Old 02-19-2013, 12:59 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try using this in your postbit or postbit_legacy template:

Code:
<if condition="$post['isfirstshown']"><!-- similar threads --></if>

then it seems like the same plugin code should work.
Reply With Quote
  #16  
Old 02-19-2013, 01:50 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
You could try using this in your postbit or postbit_legacy template:

Code:
<if condition="$post['isfirstshown']"><!-- similar threads --></if>

then it seems like the same plugin code should work.


Cool going to try now.

Thanks Again..

--------------- Added [DATE]1361299569[/DATE] at [TIME]1361299569[/TIME] ---------------

Quote:
Originally Posted by kh99 View Post
You could try using this in your postbit or postbit_legacy template:

Code:
<if condition="$post['isfirstshown']"><!-- similar threads --></if>

then it seems like the same plugin code should work.

OK if I enable the plugin the similar threads dont show up at all. Can you help me identify what in the plugin isnt working ?
Reply With Quote
  #17  
Old 02-19-2013, 05:40 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...seems like it should work. The reason it doesn't show at all is because the plugin unsets the $similarthreads variable so that it won't show in the usual place. So the str_replace isn't working - are you sure you put it in the same template you're using (postbit or postbit_legacy), and in the same style that you're viewing? Try doing something like this:

Code:
<if condition="$post['isfirstshown']">x<!-- similar threads --></if>

and see if the x shows up at all.
Reply With Quote
  #18  
Old 02-19-2013, 07:26 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Hmm...seems like it should work. The reason it doesn't show at all is because the plugin unsets the $similarthreads variable so that it won't show in the usual place. So the str_replace isn't working - are you sure you put it in the same template you're using (postbit or postbit_legacy), and in the same style that you're viewing? Try doing something like this:

Code:
<if condition="$post['isfirstshown']">x<!-- similar threads --></if>

and see if the x shows up at all.
Thank you so so much after you mentioned if I was putting the code in postbit or postbit_legacy I noticed I was placing it in postbit legacy rather that postbit. testing and working now..

If I wanted to move this above the first post what do I need to change or is that not recommended from a SEO prospective.
Reply With Quote
  #19  
Old 02-19-2013, 07:41 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you wanted it above the first post you could just move the part you inserted to be at the top of the postbot template. Or you could probably just edit the SHOWTHREAD template and move the similarthreads code, then you wouldn't need the plugin. I have no idea about SEO.
Reply With Quote
Reply


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:07 AM.


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.08175 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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