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 |
#132
|
|||
|
|||
I was doing that, and I replaced my default postbit legacy! lol, big error, I fixed it most of the way, but it was pretty customized. Thanks again for the mod magnus.
|
#133
|
||||
|
||||
No bugs reported.
|
#134
|
|||
|
|||
|
#135
|
|||
|
|||
when making the manual edits i get:
Code:
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/site.com/httpdocs/forum/includes/adminfunctions_template.php(3596) : eval()'d code on line 1 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. HTML Code:
<tr <if condition="!in_array($forumid, $ajax_firstpost_excluded)">id="vbpostrow_$thread[<if condition="$vbulletin->options['ajax_firstpost_firstlast']">lastpostid<else />firstpostid</if>]"</if>> HTML Code:
<if condition="!in_array($forumid, $ajax_firstpost_excluded)"><img id="vbpostimg_$thread[<if condition="$vbulletin->options['ajax_firstpost_firstlast']">lastpostid<else />firstpostid</if>]" src="$stylevar[imgdir_button]/expand.gif" onclick="return vbpost_get($thread[<if condition="$vbulletin->options['ajax_firstpost_firstlast']">lastpostid<else />firstpostid</if>])" onMouseOver="this.style.cursor='pointer';" /></if> |
#136
|
||||
|
||||
Did you disable Automatic Template Edits in the Collapsable First Post using AJAX Options from the AdminCP?
|
#137
|
|||
|
|||
yes
|
#138
|
||||
|
||||
this is tight baby!!! good job..... rated excellent!!
|
#139
|
|||
|
|||
Since we viewed the thread by expanding the thread. Can we have the newpost icon removed to show that we already read it? Same for the newpost icon on the forum home? Also, removing the thread from the New Posts page.
|
#140
|
|||
|
|||
ok was still unable to make the manual edits so i found a way to get the replacements to work.
also the only thing this is missing i a way to make a reply straight from the forumdisplay |
#141
|
||||
|
||||
Quote:
Is that the portion of the code that updates the post view amount? If not this feature is not working for me. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|