Register Members List Search Today's Posts Mark Forums Read

Reply
 
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: 2472
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

Description:
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.

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, 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.



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.zip 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!

Notes:
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.



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.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.

Screenshots

Click image for larger version

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

Name:	ajax_firstpost_ss02.jpg
Views:	5466
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 21:23

  #526  
Old 24 Mar 2008, 15:10
codershark codershark is offline
 
Join Date: Feb 2008
I have checked all file, with the same result
Reply With Quote
  #527  
Old 24 Mar 2008, 15:36
codershark codershark is offline
 
Join Date: Feb 2008
Now I have change the jquery.js file against the newest (1.2.3) and now it works fine, but when I click on the minus-button it dont close...
Reply With Quote
  #528  
Old 09 Apr 2008, 12:49
tobias_t tobias_t is offline
 
Join Date: Dec 2006
Which edits needs to be made so that the function only shows up for certain usergroups? I would like to limit it to moderators at first.
Reply With Quote
  #529  
Old 12 Apr 2008, 17:25
ThomasR ThomasR is offline
 
Join Date: Mar 2005
I had to disable this plugin, because I had a php error when trying to access the usercp :
Fatal error: Call to undefined function fetch_coventry() in /my/server/path/forums/www/usercp.php(503) : eval()'d code on line 21
Everything was workng fine yesterday, I didn't edit/change a file for a week.

Last edited by ThomasR; 12 Apr 2008 at 17:38.
Reply With Quote
  #530  
Old 13 Apr 2008, 01:23
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Have upgraded to 3.7RC3 and it no longer works. It displays the plus icon but clicking it just makes the image disappear and does not open the preview. I have tried both the manual and auto template edits. This was working for me prior to the RC3 release
Reply With Quote
  #531  
Old 13 Apr 2008, 02:47
tmiland's Avatar
tmiland tmiland is offline
 
Join Date: Mar 2008
Real name: Tommy
Originally Posted by toucan42 View Post
Have upgraded to 3.7RC3 and it no longer works. It displays the plus icon but clicking it just makes the image disappear and does not open the preview. I have tried both the manual and auto template edits. This was working for me prior to the RC3 release
Try to re-import the product xml file...

However, i just installed it on 3.7.0 RC2 without any issues at all.

Marked as installed & nominated.
Reply With Quote
  #532  
Old 13 Apr 2008, 02:51
toucan42 toucan42 is offline
 
Join Date: Sep 2006
re-import worked for opening but now they won't close! lol

appears i have the same problem as codershark above
Reply With Quote
  #533  
Old 13 Apr 2008, 03:10
tmiland's Avatar
tmiland tmiland is offline
 
Join Date: Mar 2008
Real name: Tommy
Thats weird

Try the latest jquery.js version, see if that helps
Reply With Quote
  #534  
Old 13 Apr 2008, 05:31
toucan42 toucan42 is offline
 
Join Date: Sep 2006
I tried - doesn't do it =(
Reply With Quote
  #535  
Old 13 Apr 2008, 09:53
Andyrew's Avatar
Andyrew Andyrew is offline
 
Join Date: Aug 2005
Real name: Andrew
When i click the [+] i get

Warning
: Invalid argument supplied for foreach() in
/includes/class_postbit.php(296) : eval()'d code
on line
249

Just above the post that displays and no way to close post. 3.6.9

Update: It does work if i turn off passivevid

Last edited by Andyrew; 13 Apr 2008 at 12:00. Reason: Update post
Reply With Quote
  #536  
Old 13 Apr 2008, 10:25
toucan42 toucan42 is offline
 
Join Date: Sep 2006
It appears to be an issue with the AJAX fisheye menu here http://www.vbulletin.org/forum/showthread.php?t=160422
Reply With Quote
  #537  
Old 13 Apr 2008, 19:27
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
toucan42, I visted the site in the URL you sent me via PM and the modification appears to be working fine. The post preview opens and closes without issue. The only issue I see is you haven't copied ajaxsmall.gif to your custom images directory (cb/buttons).
Reply With Quote
  #538  
Old 14 Apr 2008, 01:26
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Yeah it works because I disabled the other hack referenced in the post above. Thanks for checking!
Reply With Quote
  #539  
Old 16 Apr 2008, 15:56
baz_kingfish's Avatar
baz_kingfish baz_kingfish is offline
 
Join Date: Jan 2008
Mangus,
Any news on whether you are working on an update to this hack? I was hoping you would implement my previous suggestion of adding the same functionality to the vB default blue arrow for "last post". Love the hack...just wish I could do the same type of preview on the last post in addition to the first/first unread.
thanks,
KF
__________________
Reply With Quote
  #540  
Old 04 May 2008, 13:49
SCuN SCuN is offline
 
Join Date: Mar 2008
great mod work 3.7.0 ;]

Last edited by SCuN; 08 May 2008 at 19:40.
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 09:30.

Layout Options | Width: Wide Color: