Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2007, 09:17 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
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, 720 views)
__________________


Last edited by Simon; 04-19-2007 at 09:32 AM..
Reply With Quote
The Following 5 Users Say Thank You to Simon For This Useful Post:
  #2 (permalink)  
Old 04-19-2007, 09:20 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
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, 327 views)
__________________


Last edited by Simon; 04-19-2007 at 09:31 AM..
Reply With Quote
The Following 2 Users Say Thank You to Simon For This Useful Post:
  #3 (permalink)  
Old 04-19-2007, 09:20 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
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, 377 views)
__________________


Last edited by Simon; 04-19-2007 at 09:38 AM..
Reply With Quote
The Following 3 Users Say Thank You to Simon For This Useful Post:
  #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: 254
Thanked 649 Times in 513 Posts
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.
__________________
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: 849
Thanks: 74
Thanked 49 Times in 45 Posts
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
Thanks: 14
Thanked 126 Times in 61 Posts
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
Thanks: 14
Thanked 126 Times in 61 Posts
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: 849
Thanks: 74
Thanked 49 Times in 45 Posts
Ok, thank you.

Geoserv
Reply With Quote
  #9 (permalink)  
Old 04-19-2007, 01:22 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 32
Thanks: 6
Thanked 1 Time in 1 Post
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: 56
Thanked 22 Times in 18 Posts
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
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
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0