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 20:23

  #76  
Old 18 Apr 2007, 21:38
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
@ rjmjr69:
Glad you got it working. Although, I don't see how this would affect Who's Online -- as you haven't actually left FORUMHOME. I'll look into it, though.

I'll also check into the cosmetics hack.

@ hornstar1337:
Thanks!
Reply With Quote
  #77  
Old 18 Apr 2007, 21:39
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by rjmjr69 View Post
So for us that did manual edits Add the new search_post edit PLUS re import and overwrite?
You can get away with not overwriting the php/js files, but you'll need to re-import and perform the template edits. (Be sure to disable the automatic template edits after re-importing)
Reply With Quote
  #78  
Old 18 Apr 2007, 21:47
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
You can get away with not overwriting the php/js files, but you'll need to re-import and perform the template edits. (Be sure to disable the automatic template edits after re-importing)

That worked just fine.

Here is a snap shot of what I am talking about for WOL. The username appears Its just I was using FF and my username blinks but it does appear




And here is what happens with the thread decorations


Last edited by rjmjr69; 18 Apr 2007 at 21:52.
Reply With Quote
  #79  
Old 18 Apr 2007, 21:55
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Real name: Peter
Hi,

great hack magnus. Thank you very much
I've only problems with vb codes boxes (attached).


Regards, Stoebi
Attached Images
File Type: jpg ss.jpg (32.5 KB, 77 views)
Reply With Quote
  #80  
Old 18 Apr 2007, 22:02
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by rjmjr69 View Post
That worked just fine.

Here is a snap shot of what I am talking about for WOL. The username appears Its just I was using FF and my username blinks but it does appear

This should be an easy fix. I'll add it to the list.

Originally Posted by rjmjr69
And here is what happens with the thread decorations

Hrm. That looks like a template editing typo in threadbit, IMHO. This hack doesn't modify thread titles (or prefixes) -- if you recall, all that was done was the adding of an <img /> tag.

If you've checked and can't find any typos, copy and paste your threadbit template into a .txt file so I can take a look at it.
Reply With Quote
  #81  
Old 18 Apr 2007, 22:07
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
This should be an easy fix. I'll add it to the list.


Hrm. That looks like a template editing typo in threadbit, IMHO. This hack doesn't modify thread titles (or prefixes) -- if you recall, all that was done was the adding of an <img /> tag.

If you've checked and can't find any typos, copy and paste your threadbit template into a .txt file so I can take a look at it.
Thank you for fixing this issue.
. I love this hack I can't tell you enough times This thing ROCKS.... I wish I could vote more than once for MOTM.................

Last edited by rjmjr69; 18 Apr 2007 at 22:49.
Reply With Quote
  #82  
Old 18 Apr 2007, 22:31
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Very nice job on this.. Thanks!

/me nominates.
__________________
-Jason / WTF!?
Reply With Quote
  #83  
Old 18 Apr 2007, 22:49
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Thanks for the support the problem was found and fixed in minutes By MAGNUS... Your the man thank you very much............. Great work

Last edited by rjmjr69; 21 Apr 2007 at 11:55.
Reply With Quote
  #84  
Old 18 Apr 2007, 22:51
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Real name: Paul
can it be set to show last post instead of first post? cheers
Reply With Quote
  #85  
Old 18 Apr 2007, 22:54
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by Cybertims View Post
can it be set to show last post instead of first post? cheers
Better yet how about FIRST AND LAST? That would be the coolest
Reply With Quote
  #86  
Old 18 Apr 2007, 23:10
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Yea, it could be set to lastpost pretty easily. In fact, I'll make it a toggle for the next release.

In the meantime, simply edit the threadbit template and replace all instances of $thread[firstpostid] with $thread[lastpostid] -- that'll do it. :P
Reply With Quote
  #87  
Old 19 Apr 2007, 00:19
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
So would it be possible to display both? The first and last post? That would make it real easy to check out a post....... IMO
Reply With Quote
  #88  
Old 19 Apr 2007, 00:48
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
Yea, it could be set to lastpost pretty easily. In fact, I'll make it a toggle for the next release.

In the meantime, simply edit the threadbit template and replace all instances of $thread[firstpostid] with $thread[lastpostid] -- that'll do it. :P

I have three instances of this in my template one being at the very top of the template should I also change that one?
Reply With Quote
  #89  
Old 19 Apr 2007, 03:40
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Looks awesome! Good work.
__________________
My cat's breathe smells like cat food!
Reply With Quote
  #90  
Old 19 Apr 2007, 04:57
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: Cédric
Hello,

3.5 please ?

Good hack

Thanks,

Cédric
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 16:07.

Layout Options | Width: Wide Color: