Back to vBulletin 3.8 Add-ons

Similar Threads After The First Post [Plugin] - VB3 - By AioNets.com
Mod Version: 1.00, by A.Chakery

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 5
Released: 26 Nov 2014 Last Update: Never Downloads: 0
Not Supported Uses Plugins Template Edits Auto-Template  

Similar Threads After The First Post , Brought You By : http://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:
if (isset($similarthreads))
{
    
$postbits str_replace('<!-- AioNetsSimilarThreads -->'$similarthreads$postbits);
    unset(
$similarthreads);

Plugin is Active : YES

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:
<ul><li>$simthread[prefix_rich] <a href="showthread.php?$session[sessionurl]t=$simthread[threadid]title="$simthread[preview]">$simthread[title]</a></li></ul
The second template is : "showthread_similarthreads" ... Double click on it and replace all of its content with :
PHP Code:
<br /><br /><div class="aionets_similar_threads">
<
strong>$vbphrase[similar_threads] </strong><br />
$similarthreadbits
</div
4- Now Search For "Postbit Templates" and Double Click on it :

NOTE : If you are using the Posit 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 " $post[message] " and AFTER that insert below code :
PHP Code:
<!-- AioNetsSimilarThreads --> 
And then save this template.

5- Styling :
- First Please Go to "AdminCP > Style Manager" ,
- Select "Main CSS" from drop-down menu on the right side of your active style,
- Then Add below CSS code to "Additional CSS Definitions " :
PHP Code:
.aionets_similar_threads{color:#465584;float:right;background-color:#FFF;border-left:4px solid #19364D;border-right:1px dotted #19364D;border-top:1px dotted #19364D;border-bottom:1px dotted #19364D;padding:7px;margin:0 auto 8px} 
And It's Done !


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 for editing tasks and never edit templates directly. Personally I am using Espresso on my Mac and I am really satisfied.

Download

No files for download.

Screenshots

Click image for larger version
Name:	Similar Threads By AioNets.com.png
Views:	103
Size:	121.5 KB
ID:	151043  

Similar Mods

Add-On Releases Similar Threads After The First Post - VB3 - By AioNets.com vBulletin 3.8 Add-ons
Add-On Releases Similar Threads After The First Post - VB4 - By AioNets.com vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024