vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Similar Threads After The First Post [Plugin] - VB4 - By AioNets.com (https://vborg.vbsupport.ru/showthread.php?t=315657)

Marcin1 02-22-2015 10:23 AM

It's not showing with a new PHP code. I replaced to old one

<br /><br /><div class="aionets_similar_threads">
<strong>$vbphrase[similar_threads] </strong><br />
$similarthreadbits
</div>

And of course is visible in every post.

/edit

Thank you A.Chakery for help by a private message! :)

A.Chakery 02-23-2015 02:05 AM

Quote:

Originally Posted by M.C. (Post 2538234)
Thanks it works but... it's show on EVERY post, not only first one....

I like your style for first post insertion but want to leave bottom block original.
I think is better to create separate new template for first post but what need to be changed in plugin then?

Thanks ;)

Please use this code in STEP 3 editing the showthread_similarthreads template

PHP Code:

<vb:if condition="in_array($post[postcount], array(1))">
<
br /><br /><div class="aionets_similar_threads"
<
strong>$vbphrase[similar_threads] </strong><br /> 
$similarthreadbits 
</div>  
</
vb:if> 


M.C. 02-24-2015 07:01 PM

no, it doesn't show at all with any of your codes above either with my version:

PHP Code:

<vb:if condition="$post['isfirstshown']">something</vb:if> 

so I still ask you to create separate template for first post and leave "showthread_similarthreads" untouched ;)

A.Chakery 02-25-2015 05:10 AM

Thank you for your suggestion ... Well it depends on how you want the similar threads to be shown.

I will mention your idea in my second post ...

Good luck.

stained 03-24-2015 04:37 PM

Hi,

What would I need to do to hide the similar threads from guests?

A.Chakery 03-24-2015 07:01 PM

Actually Showing the similar threads to Search engine BOTs which view your website as guests has a positive impact on SEO but if you still need to hide similar threads for a specific reason please replace "showthread_similarthreads" content with below code :

PHP Code:

<vb:if condition="in_array($post[postcount], array(1)) AND $show['member']"
<
br /><br /><div class="aionets_similar_threads">  
<
strong>$vbphrase[similar_threads] </strong><br />  
$similarthreadbits  
</div>   
</
vb:if> 

I hope it helps.

stained 03-25-2015 01:35 PM

Thanks very much :up:

A.Chakery 03-25-2015 07:08 PM

You are welcome.

I am glad that it helped.

Good luck.

Bozza 07-19-2015 08:34 PM

I'm a bit confused...

1. I can't find $post[message] in my postbit_legacy.

2. Even if I could, isn't the requested code (<!-- AioNetsSimilarThreads --> ) just a comment?

A.Chakery 07-19-2015 09:02 PM

Hello Bozza,

1. This would not be possible. Would you please send me your post_legacy content using a Private message so I can take a look at it ?

2. No, as you can see in second step we set a replacement value for this comment so this code will actually be replaced with what we have set in the plugin.


All times are GMT. The time now is 02:49 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.02066 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_php_printable
  • (1)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