Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Similar Threads After The First Post [Plugin] - VB4 - By AioNets.com Details »»
Similar Threads After The First Post [Plugin] - VB4 - By AioNets.com
Mod Version: 1.00, by A.Chakery (Coder/Designer) A.Chakery is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 9
Released: 27 Nov 2014 Last Update: Never Downloads: 0
Supported Uses Plugins Template Edits Auto-Template  

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 :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The second template is : "showthread_similarthreads" ... Double click on it and replace all of its content with :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4- Now Search For "Postbit Templates" and Double Click on it :

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 " $post[message] " and AFTER that insert below code :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And then save this template.

5- Styling :
- First Please Go to "AdminCP > Style Manager" ,
- Open your style templates,
- Then Add below CSS code to "postbit.css" template

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Similar Threads By AioNets.com.png
Views:	200
Size:	121.5 KB
ID:	151047

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Similar Threads After The First Post - VB4 - By AioNets.com A.Chakery vBulletin 4.x Add-ons 49 19 Jul 2015 10:56
Similar Threads After The First Post - VB3 - By AioNets.com A.Chakery vBulletin 3.8 Add-ons 15 27 Nov 2014 03:27
Similar Threads After The First Post [Plugin] - VB3 - By AioNets.com A.Chakery vBulletin 3.8 Add-ons 1 26 Nov 2014 12:26

Comments
  #2  
Old 27 Nov 2014, 03:41
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
<------ Reserved ------->
Reply With Quote
  #3  
Old 05 Feb 2015, 14:05
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
how to make it appear both in first post and at the bottom of thread as usial? thanks
__________________
WBR`s
M.C.
Reply With Quote
  #4  
Old 05 Feb 2015, 19:34
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Hello M.C.

To have Similar Threads in both places , please use this code in STEP 2

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Please test it and update us with the results.

Good Luck
Reply With Quote
  #5  
Old 21 Feb 2015, 19:29
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
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
__________________
WBR`s
M.C.

Last edited by M.C. : 21 Feb 2015 at 19:35.
Reply With Quote
  #6  
Old 21 Feb 2015, 22:25
Muhammad Rahman Muhammad Rahman is offline
 
Join Date: Jun 2012
working perfect!!! Thanks
__________________
none_
Reply With Quote
  #7  
Old 22 Feb 2015, 02:23
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Would you please provide us with the vBulletin installation which you have this problem with ?
Reply With Quote
  #8  
Old 22 Feb 2015, 10:45
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Real name: Marcin
Originally Posted by M.C. View Post
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
Exactly. How to make to be shown only on first thread post instead every single one?
Reply With Quote
  #9  
Old 22 Feb 2015, 10:52
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Would you please provide us with your vBulletin URL ?

Last edited by A.Chakery : 22 Feb 2015 at 11:09.
Reply With Quote
  #10  
Old 22 Feb 2015, 11:10
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Ok I think we missed a conditional in step 3 ...

Would you please test this code in STEP3 , Editing showthread_similarthreads template ?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


And please do not forget to share the results with me.
Reply With Quote
  #11  
Old 22 Feb 2015, 11:23
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Real name: Marcin
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!

Last edited by Marcin1 : 22 Feb 2015 at 14:41.
Reply With Quote
  #12  
Old 23 Feb 2015, 03:05
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Originally Posted by M.C. View Post
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #13  
Old 24 Feb 2015, 20:01
M.C.'s Avatar
M.C. M.C. is offline
 
Join Date: Jan 2002
no, it doesn't show at all with any of your codes above either with my version:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so I still ask you to create separate template for first post and leave "showthread_similarthreads" untouched
__________________
WBR`s
M.C.

Last edited by M.C. : 24 Feb 2015 at 20:09.
Reply With Quote
  #14  
Old 25 Feb 2015, 06:10
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
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.
Reply With Quote
  #15  
Old 24 Mar 2015, 17:37
stained stained is offline
 
Join Date: Jun 2009
Hi,

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:42.

Layout Options | Width: Wide Color: