The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Collapsable First Post using AJAX (or Last Post!) Details »» | |||||||||||||||||||||||||||
Collapsable First Post using AJAX (or Last Post!)
Developer Last Online: Feb 2012
[hr]-[/hr]
NOTICE: This is for vBulletin v3.6 ONLY. You can find a v3.5 compatible version here. [hr]-[/hr]*** Confirmed working on ALL vBulletin 3.6.x versions! *** [hr]-[/hr] 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. [hr]-[/hr] Usage: Simply click the expand icon [+] in front of the thread title to expand, and the collapse icon [-] to collapse. Rocket science, eh? [hr]-[/hr] Installation:
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. [hr]-[/hr] 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:
[hr]-[/hr] Tips, Tricks and Modifications: Currently Known Bugs:
* 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! Show Your Support
|
Comments |
#162
|
|||
|
|||
Ajax ftw->installed
Thank you ^^ |
#163
|
||||
|
||||
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! |
#164
|
||||
|
||||
Update:
1.2.1 BETA : PRIVATE BETA. NOT RELEASED.
THIS VERSION IS NOT AVAILABLE FOR PUBLIC DOWNLOAD! [hr]-[/hr]I NEED TESTERS! While this isn't a major revision, it hopefully addresses the few sporatic issues a few users have been reporting. I'm hoping the alleviate the need to manually edit templates with my revamped automatic template editing system. I will not be releasing any new features until these problems are resolved! The pre-requisites for testers are as follows:
If you meet any of the above criteria and wish to lend a hand, let me know. Thanks! THIS VERSION IS NOT AVAILABLE FOR PUBLIC DOWNLOAD!
|
#165
|
||||
|
||||
Just installed this... working great. (Tested on Safari.)
Awesome work... thanks, magnus! A few issues/suggestions: I see the expand/collapse button appears next to Subscribed Threads in the User CP. But the button doesn't work. If at all possible, could it be made to work? And if not, is there a way to remove the button from appearing next to those threads in the User CP? Since the button doesn't work, after all. I'd love to see some more options in AdminCP, like the ability to turn off avatars in the expanded post. That'd be a lot easier than manually going in and editing vbpost_postbit. I'd also like to see an option for the button to only appear next to new/unread threads, and not others. And when the button is clicked, that the status (of the very first post, at least, or whatever post is being displayed) gets marked as "read." |
#166
|
||||
|
||||
Quote:
Quote:
I'll see what I can do. Quote:
mark_thread_read(); mark_forum_read(); There's no specific way to mark a POST as read, so unless you want the entire THREAD marked as read, I don't really see a way to do this without basically adding an new post database table to tracking the read status of each post. What I have done, though, is added the ability to select "First Unread Post" to be displayed. So, when clicked the user will see the first unread post since their last visit. There's also an option in the AdminCP now to Mark Thread as Read when this post is viewed. So, it's configurable to that extent. |
#167
|
||||
|
||||
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. |
#168
|
||||
|
||||
Quote:
|
#169
|
|||
|
|||
hrhr
waiting vor update*g* |
#170
|
||||
|
||||
Quote:
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 |
#171
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|