Optimised Scriptaculous Module with Thickbox

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2007, 09:17 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
This has taken a while, but I believe I've finally got a stable version of thickbox working with the scriptaculous module. I've uploaded the attachment below - all you need to do is upload this module in place of the default scriptaculous module (remember to backup the default module first!).

It has been tested in FireFox 1.5, Opera 9, and Internet Explorer 6 without problems so far. The code for non-admins is 55kb (27kb when compressed) which should help users on slower connections. The attachment contains all source files, as well as the optimised code.

You only really need this if you intend use a mod that uses thickbox. If you already have a thickbox module installed (it will use jquery) then you can do one of 2 things.

(1) Do nothing - if it works, it doesn't need fixing!
(2) Remove all references to thickbox / jquery from your current code, and install this

I will also be adding attachments for both the updated Video and Thickbox Login mods in the posts below.
Attached Files
File Type: zip scriptaculous.zip (104.5 KB, 887 views)

Last edited by Simon; 04-19-2007 at 09:32 AM.
Reply With Quote
  #2 (permalink)  
Old 04-19-2007, 09:20 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Attached below is the updated thickbox login code, using the modified scriptaculous module. Please follow all the instructions carefully if you intend to install it, and remember to remove ALL previous thickbox code if you already have it installed.

A demo can be found here, and the old thread on this mod can be found here.
Attached Files
File Type: zip ThickBox Login.zip (7.5 KB, 426 views)

Last edited by Simon; 04-19-2007 at 09:31 AM.
Reply With Quote
  #3 (permalink)  
Old 04-19-2007, 09:20 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Attached below is the updated video display mod, using the modified scriptaculous module. Please follow all the instructions carefully if you intend to install it, and remember to remove ALL previous thickbox code if you already have it installed. This mod is more difficult to install than most, so please follow the instructions very carefully.

A demo can be seen here, and the old thread on this mod can be found here.
Attached Files
File Type: zip Videos Display.zip (13.0 KB, 412 views)

Last edited by Simon; 04-19-2007 at 09:38 AM.
Reply With Quote
  #4 (permalink)  
Old 04-19-2007, 09:33 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Thanks for your hard work Simon. Will definately do as much testing as I can and get your new scriptaculous code in the SVN. I graduate college in a few weeks so it's been really hectic and I haven't had much time for Pligg lately.
Reply With Quote
  #5 (permalink)  
Old 04-19-2007, 09:35 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
If we have thickbox login and the video display mod installed and they appear to be working on FF and Ie, should we remove them and install these ones?

Geoserv
Reply With Quote
  #6 (permalink)  
Old 04-19-2007, 09:38 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
If it's working, don't touch them!

The only thing you might want to look at is this part of the instructions:

At the very top of your template css file should be a line that starts body { - make sure it has a width attribute set to width:100%;
Below that should be a containing div id, such as #wrap { - make sure it has a width attribute set to width:90%;

This will help with the overlay error in IE with the yget template, although may need some tweaking for other templates.

Last edited by Simon; 04-19-2007 at 09:45 AM.
Reply With Quote
  #7 (permalink)  
Old 04-19-2007, 09:47 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 537
Quote:
Originally Posted by kbeeveer46 View Post
Thanks for your hard work Simon. Will definately do as much testing as I can and get your new scriptaculous code in the SVN. I graduate college in a few weeks so it's been really hectic and I haven't had much time for Pligg lately.
Ugh graduation! I graduate on June 13th - an unlucky start to the rest of my career lol. At least it isn't Friday 13th!
Reply With Quote
  #8 (permalink)  
Old 04-19-2007, 10:06 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Ok, thank you.

Geoserv
Reply With Quote
  #9 (permalink)  
Old 04-19-2007, 01:22 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 30
This works like a charm .. Thanks a lot !
Reply With Quote
  #10 (permalink)  
Old 04-19-2007, 01:52 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
thanks simon

For those of us that are using heavily modifed versions of yget, can you explain why the two changes to the css are necessary so that we can apply these fixes to our own sites?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 158 03-19-2010 04:49 PM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 8 01-04-2010 07:06 PM
Help Installing Thickbox for Upload module aguillen Questions and Comments 1 06-26-2009 01:19 AM
[MOD] Thickbox Module for Pligg cent Questions and Comments 35 11-19-2008 09:54 AM
Lightbox Thickbox Scriptaculous jbquery revolver Questions and Comments 3 04-18-2007 12:54 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development