![]() |
Similar Threads After The First Post [Plugin] - VB4 - By AioNets.com
1 Attachment(s)
Similar Threads After The First Post , Brought You By : AioNets.com Description : This is the plugin and simple version of my previous product (HERE) which automatically moves the similar threads under the first post of every topic. The differences between this plugin and the previous product Are : - In the plugin version you will not be able to turn similar threads off for forums of your choice. - The plugin version is much more optimized especially for large boards since it does not add additional queries to the database and it simply moves the similar threads under the first post. - The installation of the plugin version is a little challenging than the product one. Personally I would choose the plugin version over product one because of its performance. Features : - Automatically moves similar threads to the bottom of the first post. - Ability to disable it globally - Ability to customize it using CSS - Works great with vBSEO and DB-SEO Ease of Installation : Normal Installation : First ensure that the your vBulletin Similar Threads option is enabled. 1- Goto : AdminCP > Plugins and Products > Add New Plugin 2- Then set the options as below : Product: vBulletin Hook Location: showthread_complete Title : AioNets Similar Threads Execution Order : 5 Plugin PHP Code : PHP Code:
Then Click On the Save Button. 3- Now you should edit the related templates to similar threads : Goto : AdminCP > Styles & Templates > Style Manager Then click on the "? ?" button located at the right side of your active Style. -or- Click on the Drop down menu and select " Edit Templates " option. Then search for "Show Thread Templates" and Double Click on it. Then under Show Thread Templates you will see two templates related to Similar threads which we need to work on : First one is -> "showthread_similarthreadbit" ... Please Double click on it and replace all of its content with : PHP Code:
PHP Code:
NOTE : If you are using the Postbit Style (which can be set in vBulletin Options > Style & Language Settings ) You should Double click on "postbit" template BUT if you are using the Legacy style you should double click on "postbit_legacy" ... When you double clicked on your postbit template search for " {vb:raw post.message} " and AFTER that insert below code : PHP Code:
5- Styling : - First Please Go to "AdminCP > Style Manager" , - Open your style templates, - Then Add below CSS code to "postbit.css" template PHP Code:
IMPORTANT NOTES 1- Always take backup of any template which you are working on 2- Please USE editor apps like Text Wrangler in Mac or NotePad++ in Windows to edit templates and never edit any code directly. Personally I am using Espresso on my Mac and I am really satisfied. |
<------ Reserved ------->
|
how to make it appear both in first post and at the bottom of thread as usial? thanks ;)
|
Hello M.C.
To have Similar Threads in both places , please use this code in STEP 2 PHP Code:
Good Luck |
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 ;) |
working perfect!!! Thanks :)
|
Would you please provide us with the vBulletin installation which you have this problem with ?
|
Quote:
|
Would you please provide us with your vBulletin URL ?
|
Ok I think we missed a conditional in step 3 ...
Would you please test this code in STEP3 , Editing showthread_similarthreads template ? PHP Code:
And please do not forget to share the results with me. |
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! :) |
Quote:
PHP Code:
|
no, it doesn't show at all with any of your codes above either with my version:
PHP Code:
|
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. |
Hi,
What would I need to do to hide the similar threads from guests? |
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:
|
Thanks very much :up:
|
You are welcome.
I am glad that it helped. Good luck. |
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? |
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. |
Hello Bozza,
I have Pm you with the Post_Legacy file as i can't find the "$post[message]" also. Running vb4.2.2 Thanks |
Sorry for the late reply,
Would you please provide me with the content of your postbit_legacy ? Thank you |
Quote:
|
Oh my bad.. I ported this modification from vb3 and I forgot to change that part.
Please search for this phrase instead : {vb:raw post.message} if you still have issues with this modification please also visit our other product which is located here : https://vborg.vbsupport.ru/showthread.php?p=2511473 Regards. |
Tried it. Still not working.
I do not go with the other product due to the performance hit. Quote:
|
I did all the steps as you told, but there's nothing appear in any post.
Threads option is enabled. I'm using a theme of purevb. ni10gl.com/vb this is my forum url, so can you check it please ? Thank you :) |
Did you rebuild your similar threads in maintenance?
Do you have a custom theme? If so you have to add the code into your postbit or postbit_legacy template. |
Great Add-On! But how can I make it work also in my vBulletin mobile style?
|
Quote:
Unfortunately I really do not have enough time to maintain this plugin, so I believe it would be better if you go with the add-on version which is located here : https://vborg.vbsupport.ru/showthread.php?t=313726 Please test it and update me with the results. Best Regards, Ali. |
Quote:
This plugin is really interesting, it's a shame that is not developing. |
All times are GMT. The time now is 06:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|