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

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

  #31  
Old 18 Apr 2007, 19:37
bitdefuser bitdefuser is offline
 
Join Date: Mar 2007
Location: C:\WINDOWS
Hm, can you please add an option that allows that?
Reply With Quote
  #32  
Old 18 Apr 2007, 19:38
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
done, uploaded again.
Reply With Quote
  #33  
Old 18 Apr 2007, 19:39
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
still the same for me
Reply With Quote
  #34  
Old 18 Apr 2007, 19:39
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
still errors
Reply With Quote
  #35  
Old 18 Apr 2007, 19:41
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
This is so hard to do remotely.. lol.
Reply With Quote
  #36  
Old 18 Apr 2007, 19:41
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
I am using vbseo if that means something
Reply With Quote
  #37  
Old 18 Apr 2007, 19:42
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
I developed this on a forum using vBSEO. That shouldn't be a problem.
Reply With Quote
  #38  
Old 18 Apr 2007, 19:43
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
the image code I had to add manually in templates because of vbplaza
Reply With Quote
  #39  
Old 18 Apr 2007, 19:45
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Ok, upload this file. This isn't going to fix it, it's to give me more information. I'm going to need you to delete it as soon as I'm done.
Attached Files
File Type: php vbpost_ajax.php (4.9 KB, 22 views)
Reply With Quote
  #40  
Old 18 Apr 2007, 19:45
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
after giving the alert, the image ajaxsmall.gif still displays and i must refresh to stop it
Reply With Quote
  #41  
Old 18 Apr 2007, 19:45
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Also, I see 10 installs. Has anyone gotten this working? I need to know if this is a global problem or something confined to these 2 reports (so far).
Reply With Quote
  #42  
Old 18 Apr 2007, 19:48
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
still the same with new file
Reply With Quote
  #43  
Old 18 Apr 2007, 19:48
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
4x4 Mecca, Ok. Delete the file.

Y'know, this could get lengthy. Do you have an AIM screename? :P
Reply With Quote
  #44  
Old 18 Apr 2007, 19:49
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
i got msn
Reply With Quote
  #45  
Old 18 Apr 2007, 19:50
bitdefuser bitdefuser is offline
 
Join Date: Mar 2007
Location: C:\WINDOWS
Originally Posted by bitdefuser View Post
Hm, can you please add an option that allows that?
Can you?
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:10.

Layout Options | Width: Wide Color: