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
  #312  
Old 05-22-2007, 12:46 AM
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 BadgerDog View Post
"threadbit" "search_results" and "forumdisplay" have never been touched... they are the default v3.6.7PL1

Where would I need nowrap="nowrap", given that?

Thanks....

Appreciate the feedback...

Regards,
Badger
I'll be upgrading to 3.6.7 later this week. I'll attempt to duplicate the problem and provide a fix.
Reply With Quote
  #313  
Old 05-22-2007, 03:51 AM
StrifeX StrifeX is offline
 
Join Date: Dec 2006
Location: New York
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea, very innovative and original!
Reply With Quote
  #314  
Old 05-22-2007, 08:33 AM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
Ok, first things first:
  • If you've uninstalled the hack and still receive the errors, it's safe to assume this hack isn't the culprit.
  • This hack does not utilize the exec() function.
  • For the life of me, I can't fathom anyway that this hack would hook into vBadvanced. It's very static on where it hooks into.
My money is on another hack causing this problem or a vBadvanced configuration error. I personally do not use vBadvanced, so my knowledge on such is limited to non-existent.
Thanks for the quick response mate. I just know for sure that installed this hack caused the error message. One minute before I installed it I was browsing my site without any error messages. Next minute I decided to install this hack and one second later I got the error message. Sounds like too much of a coincidense to me.

My PHP skills are really limited. Do you perhaps know what this error message is and how to get rid of it?
Reply With Quote
  #315  
Old 05-22-2007, 09:50 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus View Post
I'll be upgrading to 3.6.7 later this week. I'll attempt to duplicate the problem and provide a fix.
Thank you Sir....

Appreciate that ...:up:

If I can help testing at all, please let me know...

Regards,
Badger
Reply With Quote
  #316  
Old 05-22-2007, 02:26 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 BozzaJos View Post
Thanks for the quick response mate. I just know for sure that installed this hack caused the error message. One minute before I installed it I was browsing my site without any error messages. Next minute I decided to install this hack and one second later I got the error message. Sounds like too much of a coincidense to me.

My PHP skills are really limited. Do you perhaps know what this error message is and how to get rid of it?
Not really, there's not much I can tell you other than find the code trying to call an exec() function.

This modifications requires no code changes. If you uninstall it and delete the files, the hack is gone, period. If you are still receiving errors, the problem lies elsewhere -- it cannot be this modification.

Apparently, it lies within a vBadvanced modification or vBadvanced itself. I'd start there.
Reply With Quote
  #317  
Old 05-22-2007, 03:27 PM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm positive it happened while installed this hack. Perhaps it's coz I've got vbadvanced installed, modified my forum files so they stay within the vbadvanced columns and coz I've renamed index.php to forum.php. I don't know what it is but I do know that it's been 3 weeks since it was the last time I changed something to my forum and now that I did it's given this error. If I check my forum @ 15:00 and everything is correct and then I installed your mod @ 15:01 and suddenly I get the error, I just don't see any other explanation than it's your mod who did it.

Btw, it's not that bad. I found out that it's only showing the message to admins but it's still a weird error lol. Unfortunately, I know nothing about php or this error message so I don't have a clue how to fix it.
Reply With Quote
  #318  
Old 05-22-2007, 09:31 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 BozzaJos View Post
If I check my forum @ 15:00 and everything is correct and then I installed your mod @ 15:01 and suddenly I get the error, I just don't see any other explanation than it's your mod who did it.
There could be a dozen other explanations.

Quote:
Warning: exec() has been disabled for security reasons in /forum.php(536) : eval()'d code on line 51
Line 536 of index.php (forum.php) is:
PHP Code:
($hook vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false
The plugin causing your error is using the forumhome_complete hook. My hack does not use this hook.

Check in Plugins & Products > Plugin Manager. Sort by Hook Location. Look for any plugins hooked into forumhome_complete -- one of those is the problem. Make note of each product name, then using the Product Manager, disable each of the noted hacks one at a time; checking to see if the error disappears. Once it does, you now know which hack is the culprit.

Let us know.
Reply With Quote
  #319  
Old 05-22-2007, 09:34 PM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i saw that at the german vb but i could not find it there ,,,,

thanks a lot for releasing it here .
Reply With Quote
  #320  
Old 05-22-2007, 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 Barakat View Post
i saw that at the german vb but i could not find it there ,,,,

thanks a lot for releasing it here .
Wait, where did you see this released? What German VB? I never authorized any translations or external releases. Could you let me know what site, please?
Reply With Quote
  #321  
Old 05-23-2007, 10:50 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no its not an external release but they are useing your hack on thier site ...
its so nice
http://www.vbhacks-germany.org/forumdisplay.php?f=109
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 07:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05067 seconds
  • Memory Usage 2,329KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_php
  • (7)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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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