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: 2476
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:	4595
Size:	21.5 KB
ID:	63321   Click image for larger version

Name:	ajax_firstpost_ss02.jpg
Views:	5474
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

  #106  
Old 19 Apr 2007, 18:55
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Strike3ForumsMH View Post
Very cool hack here. One question though and I apologize if this has been addressed, but is there anyway for it to call for the style's postbit when displaying the first or last post? Or if not that, where could I go to modify what it displays by default?

Thanks for the release magnus.
Edit the template vbpost_postbit to look however you like.
Reply With Quote
  #107  
Old 19 Apr 2007, 19:03
anywares anywares is offline
 
Join Date: Dec 2006
Truly a work of art

[read: shamelessly rip]
LOL!!

*Clicked install
Reply With Quote
  #108  
Old 19 Apr 2007, 19:34
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
it would be very nice if i could have the first AND the last posting
Reply With Quote
  #109  
Old 19 Apr 2007, 19:39
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by ragtek View Post
it would be very nice if i could have the first AND the last posting
it wouldn't be impossible, but how would you like it displayed?
Reply With Quote
  #110  
Old 19 Apr 2007, 19:48
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
hmm one icon with a 1(first ) and the + maybe?
Reply With Quote
  #111  
Old 19 Apr 2007, 20:10
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: Cédric
Smile

3.5 please
Reply With Quote
  #112  
Old 19 Apr 2007, 21:15
YLP1 YLP1 is offline
 
Join Date: Aug 2004
This may be a dumb question but if you have a protected forum (for say admins only), does this mod use the forum's permissions or could someone who would not have permission to see a forum or view topics within a forum be able to use this mod to view posts in hidden or protected forum?

Thanks in advance.
Reply With Quote
  #113  
Old 19 Apr 2007, 21:43
aggiefan aggiefan is offline
 
Join Date: Apr 2005
i really like this mod and dont know if its possible to do this or not but i think it would be even more useful if a basic quick reply was added in so you dont even have to click on the thread to respond.
__________________
Owner of http://www.aggiefans.com
Our Custom Hacks:
Reputation Report
vBContest (college pickem script)
Reply With Quote
  #114  
Old 19 Apr 2007, 21:53
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Here's a demo. woot!


http://www.caraudiojunkyard.com/foru...introductions/
Reply With Quote
  #115  
Old 19 Apr 2007, 22:16
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Suggestion: In some way, have a button or link that says Reply?
Reply With Quote
  #116  
Old 19 Apr 2007, 22:29
YLP1 YLP1 is offline
 
Join Date: Aug 2004
I was thinking this wasn't working but realized that it appears on the forum display and not on the index (forum list page). I mean DUH! I can be ditz sometimes.

I never use the forumdisplay to look at posts, I always click on the last post icon on the index page. Is there a way to add this nifty feature to the forum list page?

Thanks in advance.
Reply With Quote
  #117  
Old 19 Apr 2007, 22:31
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Originally Posted by YLP1 View Post
I was thinking this wasn't working but realized that it appears on the forum display and not on the index (forum list page). I mean DUH! I can be ditz sometimes.

I never use the forumdisplay to look at posts, I always click on the last post icon on the index page. Is there a way to add this nifty feature to the forum list page?

Thanks in advance.
That would be sweet to have this mod on the forumhome. Where when they click the expand, it will show the latest 5 threads?
Reply With Quote
  #118  
Old 19 Apr 2007, 22:35
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Originally Posted by dbirosel View Post
That would be sweet to have this mod on the forumhome. Where when they click the expand, it will show the latest 5 threads?
Oh yessssss indeed! I have been looking for a mod to display like the last 5 or 6 threads! This is definitely on my wish list!!! I could see this mod easily taking the MOTM!


One other question, how do I change the font style of the expanded post to use the small font style as designated by the style?
Reply With Quote
  #119  
Old 20 Apr 2007, 00:00
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
You can define how the posts looks, add a reply button and the like simply by editing the vbpost_postbit template.
Reply With Quote
  #120  
Old 20 Apr 2007, 00:39
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Originally Posted by magnus View Post
You can define how the posts looks, add a reply button and the like simply by editing the vbpost_postbit template.
Yea thanks, but some of us here don't know much about coding or designing. It would be great if you can have that as a new addition. At least a reply button or link, that will quote there message.
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 02:17.

Layout Options | Width: Wide Color: