vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!) (https://vborg.vbsupport.ru/showthread.php?t=145187)

raiderlax 07-23-2007 06:58 PM

Wow, man thanks alot it works awesome now :)

Coldhands 08-08-2007 04:21 PM

Is it possible to condense the clientscript/jquery.js file? Is every function in that library being used for this hack or is there a lot of fat in this code?

What functions in clientscript/jquery.js can we do without?????? I'm just sayin, 61k of js is a lot just to show the first post.

magnus 08-08-2007 05:38 PM

Feel free to edit whatever you like from the jquery.js file. I can't distribute it if I modify it.

Coldhands 08-08-2007 10:55 PM

I've deleted my post, in hopes of eliminating all evidence that I am in fact retarded. :tin-foil-hat:

Coldhands 08-08-2007 11:55 PM

Quote:

Originally Posted by magnus (Post 1312894)
Feel free to edit whatever you like from the jquery.js file. I can't distribute it if I modify it.

I think you may be misinterpreting the license, not that the jquery police would be knocking on your door anytime soon. :D

JQuery offers a compressed version that you can download from the Google Gods here >> http://code.google.com/p/jqueryjs/do....1.3.1.pack.js

jquery-1.1.3.1.pack.js works the same as the clientscript/jquery.js in the download for this hack, but it's only 1/3 the size. Just rename jquery-1.1.3.1.pack.js to jquery.js and overwrite the clientscript/jquery.js that came with this hack.

The js file in the download is made for humans to read, develop and debug; the code I linked to is for production. If you're feeling saucy, you could even trim that one down a bit. When you go through 300 gigs a month, every little bit counts.

P.S. Thanks for the great hack and quick response Magnus. :up:

mtlcore 08-09-2007 01:09 AM

Nice hack dude.

One thing though, I install it, works fine on Default template. Doesn't show up on my custom template. Even did the template edits (turned off auto edits too). Still nothing. :(

magnus 08-09-2007 11:00 AM

Quote:

Originally Posted by mtlcore (Post 1313212)
Nice hack dude.

One thing though, I install it, works fine on Default template. Doesn't show up on my custom template. Even did the template edits (turned off auto edits too). Still nothing. :(

You're probably using a custom image directory. You'll need to copy the images to that dir as well.

magnus 08-09-2007 11:01 AM

Quote:

Originally Posted by Coldhands (Post 1313174)
I think you may be misinterpreting the license, not that the jquery police would be knocking on your door anytime soon. :D

JQuery offers a compressed version that you can download from the Google Gods here >> http://code.google.com/p/jqueryjs/do....1.3.1.pack.js

jquery-1.1.3.1.pack.js works the same as the clientscript/jquery.js in the download for this hack, but it's only 1/3 the size. Just rename jquery-1.1.3.1.pack.js to jquery.js and overwrite the clientscript/jquery.js that came with this hack.

The js file in the download is made for humans to read, develop and debug; the code I linked to is for production. If you're feeling saucy, you could even trim that one down a bit. When you go through 300 gigs a month, every little bit counts.

P.S. Thanks for the great hack and quick response Magnus. :up:


I'll look at that, thanks. :)

cheekymonk3y 08-12-2007 12:21 AM

Quote:

Originally Posted by magnus (Post 1313502)
You're probably using a custom image directory. You'll need to copy the images to that dir as well.

woot, that fixed mine as well, you should change it if you can to just look in the parent image directory instead of the style's directories. :P

magnus 08-12-2007 03:26 PM

Quote:

Originally Posted by cheekymonk3y (Post 1315540)
woot, that fixed mine as well, you should change it if you can to just look in the parent image directory instead of the style's directories. :P

It properly uses the $stylevar[imgdir_{x}] variables. Changing it to anything other would cause breakage for others.


All times are GMT. The time now is 03:14 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.01659 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete