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

  #256  
Old 04 May 2007, 14:33
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Michelle View Post
Yes but as it is I understood that you meant on showthread and I thought "how useless!" when I saw the title. It was out of sheer luck that I clicked on the title to figure out what it was. And it's a pity cause it's a wonderful idea!
Like I said, I'm open to ideas.

I'm a programmer, not a marketer unfortunately.

You're right, though. The name is pretty bland and uninteresting..
Reply With Quote
  #257  
Old 04 May 2007, 19:54
KoC KoC is offline
 
Join Date: May 2005
How to disable the avatar and signature of the user? There must be a option to do this in future versions.
__________________
http://www.payidar.net

More and more..
Reply With Quote
  #258  
Old 04 May 2007, 20:22
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by KoC View Post
How to disable the avatar and signature of the user? There must be a option to do this in future versions.
Edit the vbpost_postbit template to look however you want.
Reply With Quote
  #259  
Old 05 May 2007, 00:57
morpheusXIIX morpheusXIIX is offline
 
Join Date: Jul 2002
have you thought of adding the option to show "all unread posts"? or would that be too intensive to run?
__________________
-
sx
Reply With Quote
  #260  
Old 05 May 2007, 01:07
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Originally Posted by morpheusXIIX View Post
have you thought of adding the option to show "all unread posts"? or would that be too intensive to run?
My first thought on that is... why bother? At that point, why wouldn't the user just go into the thread itself?

I'm thinking this AJAX display is meant to be a preview, not a complete replacement for forum navigation.
Reply With Quote
  #261  
Old 05 May 2007, 02:27
skooby skooby is offline
 
Join Date: May 2006
Awesome mod

Last edited by skooby; 05 May 2007 at 02:30.
Reply With Quote
  #262  
Old 05 May 2007, 13:39
l3it3r l3it3r is offline
 
Join Date: May 2006
Originally Posted by magnus View Post
Elaborate on "nothing happens" please..
The + shows up next to all the threads, click on it, nothing happens, no errors, nothing. I uninstalled, reinstalled. still nothing.
Reply With Quote
  #263  
Old 05 May 2007, 14:49
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by l3it3r View Post
The + shows up next to all the threads, click on it, nothing happens, no errors, nothing. I uninstalled, reinstalled. still nothing.
First, verify that the files vbulletin_vbpost.js and jquery.js are in your [b]/clientscript/[b] directory. If the are, then do the following:

Activate the mod. Browse to your forumdisplay page. In your browser, right click. Select View Source. Copy and paste the entire source to a .txt file.

Attach the text file to a post here, or give it to me in a PM. I need to look at it.
Reply With Quote
  #264  
Old 05 May 2007, 17:28
BANDiT600's Avatar
BANDiT600 BANDiT600 is offline
 
Join Date: Jul 2003
Real name: Nikolay
My options sets to show last post, but... When I edit any post of the thread and next try to see last post it shows me last edited post, not the last one... It happens in serach results.

Last edited by BANDiT600; 05 May 2007 at 18:02.
Reply With Quote
  #265  
Old 05 May 2007, 17:31
BANDiT600's Avatar
BANDiT600 BANDiT600 is offline
 
Join Date: Jul 2003
Real name: Nikolay
"by createdate" change to "order by id"???

Not good that this mod doesn't show last post in search result!!!

But thanks anyway...
/me installed...

Last edited by BANDiT600; 05 May 2007 at 17:54.
Reply With Quote
  #266  
Old 05 May 2007, 18:38
BANDiT600's Avatar
BANDiT600 BANDiT600 is offline
 
Join Date: Jul 2003
Real name: Nikolay
And another little bug with alignment of "subscribed" and other icons, see screenshot!

With AJAX:
post_with_ajax.jpg

Without AJAX:
post_without_ajax.jpg
Reply With Quote
  #267  
Old 06 May 2007, 06:10
Timelord Timelord is offline
 
Join Date: May 2004
Real name: Danny Stewart
Hi Magnus! First of all, I just wanted to say this is a great idea, and from what I've seen, you've implemented it very well. However, I cannot get this to work on my forums. I have determined that it is because of the style I am using, as I have tested it under the default vBulletin style and it works there. However on the style I am using, a slightly modified version of Chestnut (by Allan), no [+] boxes appear to the left of the thread titles. I have attempted manually editing all the templates and letting it do it automatically, both times to no avail. I'm not sure what it is that's causing it but it would seem to relate directly to my style. Is there anything you can suggest that might fix this?

Thanks very much!
Reply With Quote
  #268  
Old 06 May 2007, 12:55
Dr. Bantham's Avatar
Dr. Bantham Dr. Bantham is offline
 
Join Date: Feb 2007
This looks like a wonderful mod, but it is not working for me. The graphic appears in my default template, but clicking on it results in opening the full thread as normal. I suspect this is a conflict with the following mod:

Change Forum Cell Colour on Mouseover

I really enjoy using the first mod, but would compromise highlighting the cell only without the zoned click selection if absolutely necessary. I am assuming this is the problem, however.

UPDATE
I reinstalled and used manual template edits, as I assumed this could possibly remedy my issue. This resulted in no graphic and no effect. I then realized that the images/buttons directory had to be uploaded to the custom image folder I had set up for my template. End result: same as original installation for default template (clicking on the image results in opening the full thread as normal).
__________________
THOMAS LIGOTTI ONLINE
A Shining Brainless Beacon Of Elegant Mutations And Cunning Annihilations

Last edited by Dr. Bantham; 06 May 2007 at 14:08. Reason: Progress Update
Reply With Quote
  #269  
Old 06 May 2007, 15:17
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Wait, the full thread opens, with replies and everything? That's.. odd. I don't even see how that's possible. Either way, I'd need to see it, in action, on the forum in question before I could even begin to fathom a fix.
Reply With Quote
  #270  
Old 06 May 2007, 15:19
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Timelord View Post
Hi Magnus! First of all, I just wanted to say this is a great idea, and from what I've seen, you've implemented it very well. However, I cannot get this to work on my forums. I have determined that it is because of the style I am using, as I have tested it under the default vBulletin style and it works there. However on the style I am using, a slightly modified version of Chestnut (by Allan), no [+] boxes appear to the left of the thread titles. I have attempted manually editing all the templates and letting it do it automatically, both times to no avail. I'm not sure what it is that's causing it but it would seem to relate directly to my style. Is there anything you can suggest that might fix this?

Thanks very much!
You need to upload the image files included in the zip to your style's (chestnut) specific image directory as well. No reason to use manual edits, as the automatic ones will work just fine once the image files are put into the proper directories.
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 15:49.

Layout Options | Width: Wide Color: