Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Collapsable First Post using AJAX (or Last Post!) Details »»
Collapsable First Post using AJAX (or Last Post!)
Version: 1.2.1, by magnus magnus is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 04-17-2007 Last Update: 04-26-2007 Installs: 412
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

[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:
  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.

[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:
  • 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.

[hr]-[/hr]
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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #492  
Old 02-14-2008, 07:29 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to a 3.7 compatible version :up:
Reply With Quote
  #493  
Old 02-14-2008, 08:59 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tested it with 3.7? I had reports of it working fine. I, personally, do not use 3.7 nor do I have a sandbox for it (yet). I generally wait for RC/Gold/Final versions before porting things over.
Reply With Quote
  #494  
Old 02-14-2008, 09:48 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
Have you tested it with 3.7? I had reports of it working fine. I, personally, do not use 3.7 nor do I have a sandbox for it (yet). I generally wait for RC/Gold/Final versions before porting things over.
I have it on 3.7 Magnus, and it seems to be ok.
Reply With Quote
  #495  
Old 02-21-2008, 08:30 AM
young coder's Avatar
young coder young coder is offline
 
Join Date: Aug 2007
Location: Egypt
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

Thanks for this great product
I want to know how to make it expand by Default and click the collapse icon to collapse

I want to invert the usage simple i want the usage to be
click the collapse icon [-] to collapse , and the expand icon [+] in front of the thread title to expand
Reply With Quote
  #496  
Old 02-25-2008, 12:41 PM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fine support
tks
joao barroca
aka beduino

Quote:
Originally Posted by magnus View Post
Ok, here's a fix. This is for passiveVid - (YouTube, Myspace, Google...) Not BBCODE users ONLY.

In AdminCP > Plugins & Products > Plugin Manager, look for passiveVid - Showthread Replacement under Product : passiveVid and select [Edit].

FIND:
PHP Code:
               foreach ($passiveVid as $k => $v) {
                   if ( 
$this->registry->options['passiveVid_sites'] & $v['id'] ) {
                       
$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
 
                   }
               } 
REPLACE WITH:
PHP Code:
               if ($passiveVid) {
                   foreach (
$passiveVid as $k => $v) {
                       if ( 
$this->registry->options['passiveVid_sites'] & $v['id'] ) {
                           
$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
 
                       }
                   }
               } 

Disclaimer:
Note that this was tested on my development board. I do not actively use passiveVid (or any video embedding tools) so I cannot be held responsible for any undesired effects that may occur as a result of making these changes.

That being said, the changes simply check for the existence of a variable. There are no destructive functions being added or implemented, however, I just like to cover my rear.
Reply With Quote
  #497  
Old 03-01-2008, 08:30 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

I have Installed this Mod in vB 3.6.7 PL1 and Works Ok and also don't Interfere with other Mods.

I've Found what seems to be a Bug of this Mod in vB 3.6.8 PL2:

When seeing the FORUMDISPLAY Template, this Mod Interferes with the AJAX Functionality of other Mods such as MGC ChatBox EVO, Mood Manager, and Even with the AJAX Functionality of vBulletin in the Matter of Editing the Titles of the Threads directly in the FORUMDISPLAY View (If You're Moderator or Administrator, if You Double Click on the Title of the Thread listed in this View, the Cell will Turn into a TextBox were You can Edit the Title and the Press Enter to Apply the Changes); all of this Mods and Other AJAX Functionalities different than this Mod ones, will Not Function and will Create an Error Page Message quietly Displayed in the Status Bar of the Internet Explorer Navigator!!

When Disabling this Mod all AJAX Functionalities of the Other Mods and of vBulletin in this Template View return to Normal, so the Code Error is in This Mod!!

Once I Detected a Similar Error in other Mod, and was Because of the JavaScript File that Served the Purposes of that other Mod, so the JavaScript Files of this Mode are Perhaps the First Source the Coders Should Check to Correct this Bug!!

Check that Solution in: "Ajax Fisheye Menu", perhaps it could Help.

Would be Nice that other Forumers that Use this Mod in vB 3.6.8 PL2, and of course the Author magnus, could Confirm if this Error is also Happening in their Boards; other possible source for the Error (perhaps in Addition with the Java Script Files), could be in the Plugins interfering with one or more of the other Mods affecting also the AJAX Functionality of vBulletin that I mentioned!!

I Hope You Can Fix this Problem. I had to Disable this Mod in my vB 3.6.8 PL2 Board, because I had to Choose between the Great Features of it and the Other Mods and Even the AJAX Functionality of Editing the Titles of the Threads Fast!!

My Best Regards!!

Reply With Quote
  #498  
Old 03-01-2008, 09:41 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post
Hello.

I have Installed this Mod in vB 3.6.7 PL1 and Works Ok and also don't Interfere with other Mods.

I've Found what seems to be a Bug of this Mod in vB 3.6.8 PL2:

When seeing the FORUMDISPLAY Template, this Mod Interferes with the AJAX Functionality of other Mods such as MGC ChatBox EVO, Mood Manager, and Even with the AJAX Functionality of vBulletin in the Matter of Editing the Titles of the Threads directly in the FORUMDISPLAY View (If You're Moderator or Administrator, if You Double Click on the Title of the Thread listed in this View, the Cell will Turn into a TextBox were You can Edit the Title and the Press Enter to Apply the Changes); all of this Mods and Other AJAX Functionalities different than this Mod ones, will Not Function and will Create an Error Page Message quietly Displayed in the Status Bar of the Internet Explorer Navigator!!

When Disabling this Mod all AJAX Functionalities of the Other Mods and of vBulletin in this Template View return to Normal, so the Code Error is in This Mod!!

Once I Detected a Similar Error in other Mod, and was Because of the JavaScript File that Served the Purposes of that other Mod, so the JavaScript Files of this Mode are Perhaps the First Source the Coders Should Check to Correct this Bug!!

Check that Solution in: "Ajax Fisheye Menu", perhaps it could Help.

Would be Nice that other Forumers that Use this Mod in vB 3.6.8 PL2, and of course the Author magnus, could Confirm if this Error is also Happening in their Boards; other possible source for the Error (perhaps in Addition with the Java Script Files), could be in the Plugins interfering with one or more of the other Mods affecting also the AJAX Functionality of vBulletin that I mentioned!!

I Hope You Can Fix this Problem. I had to Disable this Mod in my vB 3.6.8 PL2 Board, because I had to Choose between the Great Features of it and the Other Mods and Even the AJAX Functionality of Editing the Titles of the Threads Fast!!

My Best Regards!!

I'm sorry, but I cannot seem to replicate this action. I have absolutely no problems whatsoever with any default AJAX functionality while having this modification enabled.

All testing was done on vBulletin 3.6.8 PL2.

It's entirely possible that there's a conflict with another modification, but unfortunately, it's extremely difficult for me to track that down as it's a guarantee that we do not use the same modifications. The only modification used on my forum not coded by myself is vBSEO.
Reply With Quote
  #499  
Old 03-01-2008, 11:33 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
I'm sorry, but I cannot seem to replicate this action. I have absolutely no problems whatsoever with any default AJAX functionality while having this modification enabled.

All testing was done on vBulletin 3.6.8 PL2.

It's entirely possible that there's a conflict with another modification, but unfortunately, it's extremely difficult for me to track that down as it's a guarantee that we do not use the same modifications. The only modification used on my forum not coded by myself is vBSEO.
OK. I Appreciate Your Help. If I Get it to Work by Making Tests on Changing the Plugins, I'll Share the Answers With You!!

What Really Worries and Confuses me, is that I Have Installed in my vb 3.6.8 PL2 Forum almost All the Mods I've Installed in my vB 3.6.7 PL1 Forum (were the Mod is Working without a Problem)!!

My Best Regards!!

Reply With Quote
  #500  
Old 03-03-2008, 03:22 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will there be any new developments?
Reply With Quote
  #501  
Old 03-03-2008, 04:24 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dethfire View Post
Will there be any new developments?
.. as in? Everything works.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07897 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete