Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Collapsable First Post using AJAX for vB3.5 Details »
Collapsable First Post using AJAX for vB3.5
Mod Version: 1.2.2, 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.5.8 Rating: (1 vote - 5.00 average) Installs: 7
Released: 26 Apr 2007 Last Update: 26 Apr 2007 Downloads: 49
Not Supported Uses Plugins Template Edits Additional Files  


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



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

Description:
Allows you to expand/collapse the first post of a thread from FORUMDISPLAY and search results without the need to load the entire thread.

Details:
Upon perusing the wonderful deals over at slickdeals.net, 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. 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.

vB 3.5 Notes:

Please note that this version is developed for vB3.5, and as such, there are limitations not found in vB3.6. Currently, this modification is restricted to displaying the first post only, as the necessary tables and PHP to display last post, and first unread post aren't (easily) available in vB3.5 without more in-depth hacking and additional queries.

This extended features may be added at a later date, but until then, this is the meat and potatos.



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



Installation:
  1. Download and unzip the ajax_first_post_vB3.5.zip archive.
  2. Upload necessary files to their respective locations.
  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!

Notes:
All template modifications are made automatically. They attach to pretty common text locations using an intuitive automatic template editing routine. Modified styles shouldn't* be a problem. Honestly, I would be suprised if anyone actually NEEDED to make manual edits.

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



Comments:
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.2.2
    • First vB3.5 release.

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.

Screenshots

Click image for larger version

Name:	ajax_firstpost_ss01.jpg
Views:	118
Size:	21.5 KB
ID:	63656   Click image for larger version

Name:	ajax_firstpost_ss02.jpg
Views:	143
Size:	38.6 KB
ID:	63657  

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
Forum Display Enhancements Collapsable First Post using AJAX (or Last Post!) magnus vBulletin 3.6 Add-ons 598 17 May 2015 19:54

Comments
  #2  
Old 26 Apr 2007, 14:02
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
For those who have problems with the automatic template edits, or who just like to do things the hard way, here are the template edits required:

First, disable the automatic template edits:
  • Browse to AdminCP > vBulletin Options > Collapsable First Post Using AJAX Options
  • Select No for Enable Automatic Template Editing

Now perform the following template edits:

In FORUMDISPLAY -

FIND:

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

ADD AFTER:

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




In threadbit -

FIND: (should be the first line)

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

REPLACE WITH:

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


FIND:

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

ADD AFTER:

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


Last edited by magnus; 26 Apr 2007 at 14:05.
Reply With Quote
  #3  
Old 26 Apr 2007, 20:00
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: Cédric
Wink

Thanks
Reply With Quote
  #4  
Old 29 Apr 2007, 21:36
letsjoy's Avatar
letsjoy letsjoy is offline
 
Join Date: Jul 2006
Thanks man
__________________
"Everything you can imagine is real"
-Pablo Picasso

Pakistan - Ahmad
Reply With Quote
  #5  
Old 30 Apr 2007, 01:31
Dave Hawley Dave Hawley is offline
 
Join Date: Jun 2004
Thumbs up

This is one neat hack! Nice job and all works just as advertised. Is there anyway ONLY Threads with no replies can show the plus sign?
Reply With Quote
  #6  
Old 03 May 2007, 14:04
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Real name: STEVE
thats a crackin idea, installed and it works a treat!!!
Reply With Quote
  #7  
Old 04 May 2007, 04:22
skooby skooby is offline
 
Join Date: May 2006
Not working for me but I think I know why.

I have in my root a folder that contains the default style for the site. Because of that could it be causing the errors I'm getting because the images are now in /style/images instead of /images?

This is what I get in Firefox:


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


In IE, it just gives the Database encountered an error. My site is www.nokturnalist.com if you want to check it yourself.
Reply With Quote
  #8  
Old 04 May 2007, 11:39
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by skooby View Post
Not working for me but I think I know why.

I have in my root a folder that contains the default style for the site. Because of that could it be causing the errors I'm getting because the images are now in /style/images instead of /images?

This is what I get in Firefox:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
You're trying to run the vB3.5 version on vB3.6. Click here for the vB3.6 version
Reply With Quote
  #9  
Old 04 May 2007, 13:39
skooby skooby is offline
 
Join Date: May 2006
Well I installed the 3.6 without realizing my site uses 3.5.4 so I uninstalled it and removed the manual entries and then reinstalled it with 3.5. Maybe I'll do it again, I must have left something out. I did make a backup before I installed it so I can always revert to that.
Reply With Quote
  #10  
Old 04 May 2007, 14:31
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
The error message you posted says your site runs vBulletin 3.6.5 -- not 3.5.4.

Database error in vBulletin 3.6.5:
Reply With Quote
  #11  
Old 11 Sep 2007, 03:36
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Any chance this will come for 3.6x? I really think this mod is useful.
Reply With Quote
  #12  
Old 11 Sep 2007, 19:26
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by JohnBee View Post
Any chance this will come for 3.6x? I really think this mod is useful.
This modification was developed for vB3.6. This is just the vB3.5 port, click here for the vB3.6 version.
Reply With Quote
  #13  
Old 20 Aug 2008, 08:36
ArchangelX ArchangelX is offline
 
Join Date: Feb 2006
Real name: Michael Kitchens
I've done everything here, tried both the manual and the auto. The only problem is that the + box doesn't open up at all. It's like the javascript isn't activating. I've double checked to make sure it's in the right folders, and it is...any suggestions?
__________________
Hawaii's Online Community!
Hawaii Talks
Reply With Quote
  #14  
Old 20 Aug 2008, 08:52
Dave Hawley Dave Hawley is offline
 
Join Date: Jun 2004
Are you allowing AJAX
__________________
Excel Help! Searchable MS Office Help Forums
Reply With Quote
  #15  
Old 20 Aug 2008, 20:19
ArchangelX ArchangelX is offline
 
Join Date: Feb 2006
Real name: Michael Kitchens
Is there an option for that somewhere?

*runs off to go check*
__________________
Hawaii's Online Community!
Hawaii Talks
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

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 12:24.

Layout Options | Width: Wide Color: