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 |
#412
|
||||
|
||||
I would need a link to your forum in order to tell you exactly what's wrong. But, most likely it's due to the vbpost_ajax.php file not being located in your forumroot.
|
#413
|
|||
|
|||
My forum is turned off so it won't help you,
The vbpost_ajax.php is in the forum root...the board located in the main directory not in /forum or something else. |
#414
|
||||
|
||||
Quote:
http://yoursite/vbpost_ajax.php http://yoursite/clientscript/jquery.js http://yoursite/clientscript/vbulletin_vbpost.js Also, verify that you're using the default vBulletin style.. to rule out any style related issues. |
#415
|
||||
|
||||
Great Mod, many thanks... works really slick.
Only problem I have is that I have also added the Who Has Read This Post mod. If I click the thread title to view the message in full the registers the fact that the message has been read. However with the collapsible thread, this does not register the fact that the messages have been read by the user. Most of my messages do not contain replies, it is basically a read only board for disseminating information so whilst the collapsible threads are really useful for readers, I as the admin want to see what is getting most interest. Would it be very easy to incorporate some form of interoperability between the mods? possible switchable for those that hadn't installed the Who Has Read mod. Many thanks... great work! Edit> Actually did wonder if setting update read count might help but it unfortunately doesn't, presumable it is the step of open the thread view that initiates the steps to register that the user has read the message. |
#416
|
||||
|
||||
Quote:
In vbpost_ajax.php: FIND PHP Code:
PHP Code:
|
#417
|
|||
|
|||
in my search the posbit images have no id's so it wount work
Code:
<img id="vbpostimg_" src="images/bgold/buttons/expand.gif" onclick="return vbpost_get()" |
#418
|
||||
|
||||
Quote:
|
#419
|
||||
|
||||
Magnus,
I have tried your update and yes it now registers the read message against the user. Many thanks for this, both your mod and the who has read mod are ideal for my board.:up: |
#420
|
|||
|
|||
i tried this on my forum... and it's a mess.... my db server load jump to 1700 !!!
anybody use this mod and optimize the code? i do like this mod.. my post table is 11 gig |
#421
|
||||
|
||||
Quote:
The same query is run whether a user clicks on the thread and views the whole thing, or if they click on the expand icon |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|