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

  #136  
Old 20 Apr 2007, 03:34
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
Originally Posted by magnus View Post
Did you disable Automatic Template Edits in the Collapsable First Post using AJAX Options from the AdminCP?
yes
Reply With Quote
  #137  
Old 20 Apr 2007, 03:39
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Real name: Malik Ali Shabbazz
this is tight baby!!! good job..... rated excellent!!
Reply With Quote
  #138  
Old 20 Apr 2007, 04:09
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Since we viewed the thread by expanding the thread. Can we have the newpost icon removed to show that we already read it? Same for the newpost icon on the forum home? Also, removing the thread from the New Posts page.
Reply With Quote
  #139  
Old 20 Apr 2007, 07:00
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Real name: Chad Scira
ok was still unable to make the manual edits so i found a way to get the replacements to work.

also the only thing this is missing i a way to make a reply straight from the forumdisplay
Reply With Quote
  #140  
Old 20 Apr 2007, 10:49
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by Coders Shack View Post
when making the manual edits i get:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

when i add these two:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I'm getting this same exact problem after upgrading. I shut down the autotemplate edit as I had to the first time too. Any idea?

Is that the portion of the code that updates the post view amount? If not this feature is not working for me.

Last edited by rjmjr69; 20 Apr 2007 at 10:53.
Reply With Quote
  #141  
Old 20 Apr 2007, 12:16
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Coders Shack View Post
when making the manual edits i get:
Originally Posted by rjmjr69 View Post
I'm getting this same exact problem after upgrading. I shut down the autotemplate edit as I had to the first time too. Any idea?
My apologies, that was my fault. I've updated the template edits with new, tested, conditionals. That's what I get for not testing. Sorry!
Reply With Quote
  #142  
Old 20 Apr 2007, 21:44
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
My apologies, that was my fault. I've updated the template edits with new, tested, conditionals. That's what I get for not testing. Sorry!
Still does not work Now I get errors on both lines


Can you look and see if you can figure it out please...
Threadbit.txt
Reply With Quote
  #143  
Old 20 Apr 2007, 21:55
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
@rjmjr69:
Attached is your modified threadbit. I pasted this over my own threadbit and it tested fine.
Attached Files
File Type: txt rjmjr69_threadbit.txt (7.1 KB, 11 views)
Reply With Quote
  #144  
Old 20 Apr 2007, 23:25
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Even with your edit I get these errors still

The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 1

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 15

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #145  
Old 20 Apr 2007, 23:26
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Did you upload the new files and overwrite the old ones? (as well as reimport the new product xml and disable automatic template edits via the AdminCP)

Last edited by magnus; 20 Apr 2007 at 23:30.
Reply With Quote
  #146  
Old 21 Apr 2007, 01:07
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
This is probably impossible, or at least really hard, but I thought I'd suggest it anyway.

In addition to allowing us to select among First post, Last post, or First Unread (if you add this to a later update), what about a "User Selectable" option which would then put the "First, Last, or First Unread" options in everyone's UserCP options. Another admin at my site suggested it, so don't blame me. I think it's a good idea, but maybe not worth the effort to the developer.

And here I am suggesting really hard things, and I haven't even gotten around to adding a "Reply" button to this mod.
Reply With Quote
  #147  
Old 21 Apr 2007, 01:30
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by TheMilkCarton View Post
In addition to allowing us to select among First post, Last post, or First Unread (if you add this to a later update), what about a "User Selectable" option which would then put the "First, Last, or First Unread" options in everyone's UserCP options. Another admin at my site suggested it, so don't blame me. I think it's a good idea, but maybe not worth the effort to the developer.
Too late. Already working on it.

This was my original plan, I just wanted to get the backend solid first.
Reply With Quote
  #148  
Old 21 Apr 2007, 01:41
TheMilkCarton TheMilkCarton is offline
 
Join Date: Jan 2007
Nice!! Great minds think alike. hahah.
Reply With Quote
  #149  
Old 21 Apr 2007, 02:16
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Real name: Dante
Woot!! I can't wait for the next update. This mod has a lot of potential to become MOTM
Reply With Quote
  #150  
Old 21 Apr 2007, 05:11
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: Cédric
Hello,

3.5 please ? I speak french.

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 06:29.

Layout Options | Width: Wide Color: