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

  #46  
Old 18 Apr 2007, 19:52
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
die(print_r($post)); the debugging did not do anything. So the error must be before
Reply With Quote
  #47  
Old 18 Apr 2007, 19:54
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Lionel, you need to access it directly. http://yoursite/vbpost_ajax.php?postid=[some post id]
Reply With Quote
  #48  
Old 18 Apr 2007, 19:55
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
blank page
Reply With Quote
  #49  
Old 18 Apr 2007, 19:57
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Apparently, you and 4x4 Mecca have different problems because I got output from him.
Reply With Quote
  #50  
Old 18 Apr 2007, 19:59
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
You got output with the initial file, once I kept updating it, it no longer gave me output
Reply With Quote
  #51  
Old 18 Apr 2007, 19:59
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
here is mine

and here
Reply With Quote
  #52  
Old 18 Apr 2007, 20:00
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
i deleted the file with the debugging and was using the one before
Reply With Quote
  #53  
Old 18 Apr 2007, 20:01
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
I got output with the debugging LOADED LOADED
Reply With Quote
  #54  
Old 18 Apr 2007, 20:05
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Are either of you using any plugin or template caches?
Reply With Quote
  #55  
Old 18 Apr 2007, 20:06
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
not me. No cache plugin
Reply With Quote
  #56  
Old 18 Apr 2007, 20:07
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
i am on mysql 5.0.2 and php 5.16
Reply With Quote
  #57  
Old 18 Apr 2007, 20:08
WhaLberg's Avatar
WhaLberg WhaLberg is offline
 
Join Date: Nov 2006
Location: Dersaadet
Real name: Mengü Kağan
Nice work, rated 'Excellent'.
Reply With Quote
  #58  
Old 18 Apr 2007, 20:10
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
If some people got it to work, all that's left for me to think is my version of mysql
Reply With Quote
  #59  
Old 18 Apr 2007, 20:13
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
If vBulletin is working, it's not your MySQL version. This uses a normal vBulletin MySQL query.
Reply With Quote
  #60  
Old 18 Apr 2007, 20:17
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
past that line

if ($vbulletin->GPC['ajax'])

it stops echoing whatever i put as test
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 17:08.

Layout Options | Width: Wide Color: