Register Members List Search Today's Posts Mark Forums Read

Mod Options
Collapsable First Post using AJAX (or Last Post!) Details »
Collapsable First Post using AJAX (or Last Post!)
Mod Version: 1.2.1, by magnus (Member) magnus is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (59 votes - 4.83 average) Installs: 411
Released: 18 Apr 2007 Last Update: 27 Apr 2007 Downloads: 2474
Not Supported Uses Plugins Auto-Template Additional Files  

NOTICE: This is for vBulletin v3.6 ONLY. You can find a v3.5 compatible version here.

*** Confirmed working on ALL vBulletin 3.6.x versions! ***

Keywords: FORUMDISPLAY, search, results, collapse, AJAX, collapsable, first, last, unread, post

Allows you to expand/collapse the first, last or first unread post of a thread from FORUMDISPLAY and search results without the need to load the entire thread.

Upon perusing the wonderful deals over at, I noticed this nifty feature which caught my eye. I found it quite useful as most people have a bad habit of not being very descriptive with their thread titles. This little trick made my browsing experience much more enjoyable, so naturally I had to borrow [read: shamelessly rip] the idea.

Please note that no additional queries are added, unless using the 'First Unread Post' option. Otherwise, the only queries performed are the same as those when a thread is normally viewed.

The magic behind this modification is performed by jQuery: The Write Less, Do More, JavaScript Library.

Simply click the expand icon [+] in front of the thread title to expand, and the collapse icon [-] to collapse. Rocket science, eh?

  1. Download and unzip the archive.
  2. Upload necessary files to their respective locations. (Attention custom style users! Be sure to upload the images to your custom image directory.)
  3. Import the product-ajax_first_post.xml via the Product Manager.
  4. Make any desired configuration changes via AdminCP > vBulletin Options > Collapsable First Post using AJAX
  5. ???
  6. Profit!

All template modifications are made automatically. They attach to pretty common text locations, so modified styles shouldn't* be a problem.

However, for those who wish (or need) to perform the edits manually, you can find that information here.

As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really.

Version History:
  • 1.0.0 - Initial release, here's to hoping...
  • 1.1.0
    • Fixed JavaScript errors when using search.
    • Resolved (known) cross browser compatibility issues.
  • 1.2.0
    • New AdminCP configuration options:
      • Ability to select first or last post to be displayed.
      • Ability to disable on a per forum basis.
      • Option to update thread views when expanded.
      • Option to disable automatic template editing with a single click.
    • Tweaked a couple plugins to prevent unnecessary checking.
    • Properly registers in Who's Online
  • 1.2.1
    • Will no longer show expand icon next to thread redirects.
    • Added ability to display first unread post.
    • Completely revamped the automatic template editing system. Should now be able to make template edits to even the most modified templates as well.
    • Fixed a couple non-breaking typos.
    • Included JavaScript in USERCP_SHELL to allow expand/collapse of subscribed threads.
    • Added a hover title to the expand icon to inform the user what they can expect when clicking it.

Tips, Tricks and Modifications:

Currently Known Bugs:
  • None

* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!

Download Now

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


Click image for larger version

Name:	ajax_firstpost_ss01.jpg
Views:	4593
Size:	21.5 KB
ID:	63321   Click image for larger version

Name:	ajax_firstpost_ss02.jpg
Views:	5470
Size:	38.6 KB
ID:	63322  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Collapsable First Post using AJAX for vB3.5 magnus vBulletin 3.5 Add-ons 15 20 Aug 2008 20:23

Old 15 Oct 2009, 17:53
reddyink reddyink is offline
Join Date: Aug 2007

Works If you do
1) download latest Jquery +
2)Update of [email protected] file

Last edited by reddyink; 15 Oct 2009 at 21:51.
Reply With Quote
Old 15 Oct 2009, 18:34
columbusgeek's Avatar
columbusgeek columbusgeek is offline
Join Date: Sep 2007
Thanks for getting this fixed.
Reply With Quote
Old 17 Oct 2009, 17:55
reddyink reddyink is offline
Join Date: Aug 2007
How to add extra material to this feature.
I want to add ratings and extra thread fields.

Reply With Quote
Old 03 Nov 2009, 21:04
columbusgeek's Avatar
columbusgeek columbusgeek is offline
Join Date: Sep 2007
Can this be changed to include the first and second posts of the thread? We use "answer forums" and it would be swell if you clicked the little plus and got the question and the answer, without having to see the rest of the chaff.
Reply With Quote
Old 13 Dec 2009, 12:11
Ghostt Ghostt is offline
Join Date: Oct 2009
WHY i have a bad granularity font, with that ajax mod?
HOW can it be fixed? is it because of ajax effect??

and the [spoiler] bbcode isn`T working it expand automaticaly...
Reply With Quote
Old 31 Dec 2009, 11:42
joshskeety joshskeety is offline
Join Date: May 2004
This mod is awesome. It'd be pretty cool to give users an option in their profiles so that they can select whether they want to see First Post or First Unread Post.
Reply With Quote
Old 20 May 2010, 23:09
BobbyBig BobbyBig is offline
Join Date: Mar 2006
Working with 4.0.3 ?
Reply With Quote
Old 24 May 2010, 22:31
Tettinntil's Avatar
Tettinntil Tettinntil is offline
Join Date: Feb 2006
Originally Posted by reddyink View Post

Works If you do
1) download latest Jquery +
2)Update of [email protected] file
Should I rename the Jquery-file in [email protected] post?
PROUD owner of these two wonderful and popular forums - Babywearing and Clothdiaper forum in Norway (3.8.4)

Reply With Quote
Old 05 Oct 2010, 14:57
Kaitlyn2004 Kaitlyn2004 is offline
Join Date: Jul 2006
Is anyone working on a version for vB4?
__________________ - Need answers? Ask it online.
Create powerful online surveys with ease in minutes!
Sign up for your FREE account today!
Reply With Quote
Old 13 Jan 2011, 17:19
qubed qubed is offline
Join Date: Sep 2008
i am using it on vb3.8.5 i am able to get the + open, but i can't get the - to collapse it back. i updated to jquery 1.4.4, is there any advice anyone can offer? thanks!


Be sure to download the file in Mad [email protected]'s post and also update to your latest jquery (just google jquery, download the latest, change file name of latest jquery to jquery.js and upload to the clientscript folder

WORKING FINE ON 3.8.5 now.

Last edited by qubed; 13 Jan 2011 at 18:07.
Reply With Quote
Old 26 Jan 2011, 02:48
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Join Date: Jun 2008
Real name: Joe D.
I noticed if spoiler tags bb code is used in the post it won't be collapsed (hidden) when you open a post with ajax- basically defeats the use of the bb code. I'd image all javascript based bb codes would have issues.
Former Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
Old 19 Jun 2011, 18:43
drsli's Avatar
drsli drsli is offline
Join Date: Jan 2008
Real name: Dietmar
Awesome, works perfectly within my vb3.8.5-installation. Many thanks!
Reply With Quote
Old 04 Jun 2013, 17:53
Tyran1 Tyran1 is offline
Join Date: Jan 2007
Location: Deutsches Reich
Works nice on 3.8.7 !!
Reply With Quote
Old 17 May 2015, 19:54
weinstoc weinstoc is offline
Join Date: Apr 2007
Running vb3.8.7. Getting Uncaught TypeError: newrow.find(...).addClass(...).end(...).vbshowRow is not a function in vbulletin_vbpost.js. Doesn't matter if I've upgraded to the file in Mad [email protected]'s post or not. Any thoughts?
Reply With Quote

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 02:18.

Layout Options | Width: Wide Color: