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

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

Comments
  #2  
Old 18 Apr 2007, 18:23
aveon's Avatar
aveon aveon is offline
 
Join Date: May 2006
wow man nice hack thanx for this i just love ajax
Reply With Quote
  #3  
Old 18 Apr 2007, 18:47
KevNJ KevNJ is offline
 
Join Date: Jan 2005
will be installing this when i get home. awesome mod!
Reply With Quote
  #4  
Old 18 Apr 2007, 18:55
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
http://www.4x4mecca.com/forum/forumdisplay.php?f=36
I get an error message when I try. The plus sign is there, but what I see is "There was an error. Please try again."
Reply With Quote
  #5  
Old 18 Apr 2007, 18:57
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 search_results -

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.




[CHANGED IN 1.2] 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; 25 Apr 2007 at 22:10.
Reply With Quote
  #6  
Old 18 Apr 2007, 19:01
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by 4x4 Mecca View Post
http://www.4x4mecca.com/forum/forumdisplay.php?f=36
I get an error message when I try. The plus sign is there, but what I see is "There was an error. Please try again."
Hrm.. that error appears when the script is unable to pull data. However, I tested the backend on your site and it seems to be working: http://www.4x4mecca.com/forum/vbpost...p?postid=12979

Let me nose around a bit.
Reply With Quote
  #7  
Old 18 Apr 2007, 19:09
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
@4x4 Mecca:

Redownload the archive and upload/overwrite your existing vbpost_ajax.php with the new one. Let me know if that fixes it.
Reply With Quote
  #8  
Old 18 Apr 2007, 19:09
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Thanks! I just edited the teplates manually just incase that was the problem. It still isn't working.
Reply With Quote
  #9  
Old 18 Apr 2007, 19:13
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Error is still there. Any idea what might be interfering?

Last edited by 4x4 Mecca; 18 Apr 2007 at 21:56.
Reply With Quote
  #10  
Old 18 Apr 2007, 19:14
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Originally Posted by 4x4 Mecca View Post
http://www.4x4mecca.com/forum/forumdisplay.php?f=36
I get an error message when I try. The plus sign is there, but what I see is "There was an error. Please try again."
same for me
Reply With Quote
  #11  
Old 18 Apr 2007, 19:17
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Ok, I removed the download link for a second while I try and track this down. My apologies.
Reply With Quote
  #12  
Old 18 Apr 2007, 19:19
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
I have a few (read maybe a lot) hacks installed, but I don't know which one could be messing with it. Anyone else recreate this on their own site?
Reply With Quote
  #13  
Old 18 Apr 2007, 19:20
ninjamaster's Avatar
ninjamaster ninjamaster is offline
 
Join Date: Oct 2006
THANKS M8 nice work
Reply With Quote
  #14  
Old 18 Apr 2007, 19:20
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
this is also giving a javascript error in newposts
Reply With Quote
  #15  
Old 18 Apr 2007, 19:22
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Wait, you get an error when trying to write a new post? I don't see how this could affect that. What's the error?
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 18:38.

Layout Options | Width: Wide Color: