Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



Optimised Scriptaculous Module with Thickbox

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2007, 09:17 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Optimised Scriptaculous Module with Thickbox

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, 817 views)

Last edited by Simon; 04-19-2007 at 09:32 AM.
Reply With Quote
Sponsor
  #2 (permalink)  
Old 04-19-2007, 09:20 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
ThickBox Login

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, 388 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: 575
Video Display

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, 402 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,547
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.

Free and Premium Pligg Hosting
I accept donations for my time helping users like you on the forum and IRC.
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: 847
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: 575
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: 575
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: 847
Ok, thank you.

Geoserv
Reply With Quote
  #9 (permalink)  
Old 04-19-2007, 01:22 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 32
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: 227
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
[MOD] Thickbox Module for Pligg cent Modification Tutorials 35 11-19-2008 09:54 AM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
What functions do I lose if I disable scriptaculous module deeplygreen General Help 1 02-05-2008 06:21 PM
READ ME FIRST: Pligg Module Thread Rules Yankidank Pligg Modules 0 12-01-2007 04:16 PM
Lightbox Thickbox Scriptaculous jbquery revolver Modification Tutorials 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! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development