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

  #166  
Old 24 Apr 2007, 17:34
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
That sounds great, magnus. Thanks so much for your reply and consideration! Looking forward to your updates.


In the meantime I have gone in and tweaked vbpost_postbit to my liking. Mainly just simplifying it, removing the extras I didn't think this needed (location, post count, user title, etc.) Looking great.



Another minor request. When hovering over the button, right now I am seeing the default/standard thread preview popup. (Same as if I'd hover over the thread title itself.) I think it would make more sense if the popup said this instead:

"Click here to see the _x_ post"

(where x = "first," or "last," or "first unread," depending on the Admin CP or User CP settings for this hack.)

So users can better understand what's going on with this new feature.
Reply With Quote
  #167  
Old 24 Apr 2007, 17:56
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Tralala View Post
Another minor request. When hovering over the button, right now I am seeing the default/standard thread preview popup. (Same as if I'd hover over the thread title itself.) I think it would make more sense if the popup said this instead:

"Click here to see the _x_ post"

(where x = "first," or "last," or "first unread," depending on the Admin CP or User CP settings for this hack.)

So users can better understand what's going on with this new feature.
Good idea. Just added that real quick.
Reply With Quote
  #168  
Old 24 Apr 2007, 17:57
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
hrhr
waiting vor update*g*
Reply With Quote
  #169  
Old 24 Apr 2007, 23:43
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
To anyone experiencing the conditional errors when evaluating the templates, please try the following.

In your AdminCP > vBulletin Options > Collapsable First Post using AJAX Options:

Set the Forum Exclusion List to 0 (zero).

Now, resubmit the template modifications and see if you still receive the error. I'm trying to track down what would be causing this error for some of you, but I can't seem to replicate it on my development forum unfortunately.

This is what's holding up the next release, as I'd like to have this resolved before I put another version out there.

Thanks!
Still getting these errors when setting forum to 0

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.


I would be willing to do your beta for you seeing how I am one of the people having this issue
Reply With Quote
  #170  
Old 25 Apr 2007, 14:17
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by rjmjr69 View Post
Still getting these errors when setting forum to 0

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.


I would be willing to do your beta for you seeing how I am one of the people having this issue
Great! I'll send you a copy via PM. Also, before installing the beta -- try the attached threadbit. See if that resolves the errors.
Attached Files
File Type: txt rjmjr69_threadbit.txt (7.2 KB, 14 views)
Reply With Quote
  #171  
Old 25 Apr 2007, 19:42
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Originally Posted by magnus View Post
Great! I'll send you a copy via PM. Also, before installing the beta -- try the attached threadbit. See if that resolves the errors.

Ok that template now works fine but it still does not update the post count.
Reply With Quote
  #172  
Old 25 Apr 2007, 19:46
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Post count? What post count? I'm glad the errors are gone, but could you try the Forum Exclusion List and tell me if it's actually working now? Just put any active Forum ID and see if the expand/collapse icons still display.
Reply With Quote
  #173  
Old 25 Apr 2007, 20:35
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
I'm sorry the THREAD VIEW count is not moving. The beta installed without a hitch. Still no thread view count going up but it did install without any issues and is working.

Thanks
Reply With Quote
  #174  
Old 25 Apr 2007, 22:09
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
So far so good. We should be ready for a release soon. Yay!
Reply With Quote
  #175  
Old 25 Apr 2007, 22:12
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Ok, for those receiving errors when modifying the templates manually. See the original post for updated template modifications. The only modifications were to the threadbit template. Nothing else has changed.
Reply With Quote
  #176  
Old 26 Apr 2007, 04:28
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
If a thread is also a poll, how about having an option of either showing the poll or posts? .. maybe make it so clicking the poll icon shows the poll?

Have a think
Reply With Quote
  #177  
Old 26 Apr 2007, 10:58
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: Cédric
Wink

Originally Posted by magnus View Post
This hack is for 3.6. I haven't tested it on 3.5, but I don't see why it wouldn't work.

It would take 5 minutes for you to try it.
Ouip, but doesn't work in 3.5 (queries).

Cédric
Reply With Quote
  #178  
Old 26 Apr 2007, 14:10
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by apdcanari View Post
Ouip, but doesn't work in 3.5 (queries).

Cédric
Good to know. I've released a vB3.5 compatible version. You can find it here.
Reply With Quote
  #179  
Old 26 Apr 2007, 20:24
Domski Domski is offline
 
Join Date: Nov 2004
Nevermind me.... i put the images in the ~/images/buttons folder and not the ~/images/MY TEMPLATE/buttons

Last edited by Domski; 26 Apr 2007 at 20:29. Reason: stupid me!
Reply With Quote
  #180  
Old 26 Apr 2007, 22:35
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Nice work.

One thing I've noticed, is that the vB drop down menu that should pop up when you click on the username, only works in Firefox and not IE...in IE it just takes you to the full profile page.

I've tried copying the original code from postbit_lagacy and it still doesn't work.

Anyone know why this is?
__________________
MARK.B (Member of the vB Support Team)
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 00:41.

Layout Options | Width: Wide Color: