Optimised Scriptaculous Module with Thickbox

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 07-15-2007, 08:56 PM
SoapTaco's Avatar
Casual Pligger
Pligg Version: 9.9.0
Pligg Template: All
 
Join Date: Nov 2006
Location: Detroit, MI
Posts: 78
Send a message via Skype™ to SoapTaco
I have tried everything I can think of including changing the return= paths, etc. The login box is working great but only on the index page. I am sure it has something to do with url method 2, I just can't possibly revert the site to the old method now.

Anyone, it would be appreciated because I have been looking at this for hours.
Reply With Quote
  #42 (permalink)  
Old 07-19-2007, 03:38 PM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 147
Hello,

I really like the effort you're putting in developing this great project, and also love the team work. But I'm a biology kind of guy and I always have little problems when working on code.

Now here's my problem, I wanted to make a section for videos independent of News just like OIOnews / Headlines. And here are the steps I took. I am using Pligg b9.7 with the normal yget template nothing modified.

1)Uninstalled default Scriptaculous and thickbox modules and deleted them completely from server. Then installed the modified one found here

2)I then downloaded VideoDisplay.zip found here and followed the instructions found within, I used the recommended way. Everything went smoothly.

3)Upon testing the results, I obtained SQL database errors in step submit step 3. Looking for an answer I found that a user had similar problems at step 2 but he said he found the possible error in link.php and posted his file, which I downloaded and used instead of the link.php that I had. And poof the SQL errors disappeared. Great!... well no there was still a little problem. The videos apeared as if normally embended. And not as a small picture if pressed opened the video in thickbox.

Remark: I have video embed enabled and I used html tags <youtube></youtube>. Does it conflict or is it supposed to be like that or is there another way.

4) Upon reviewing my files, and database, I found that my database is indeed writing 1's for video's and 0's for articles, so no problem here. I also considered checking where I put the smarty condition in link_summary.tpl as I have no idea where to put those lines, so I tried moving them around with no apparent result.

Code:
{if $story_type eq "1"}
<a class="thickbox" href="{$my_pligg_base}/play.php?id={$link_id}&height=425&width=450" title="View the Video file {$title_short}">
<img src="{$my_pligg_base}/path/to/video/image/video.jpg" width="80" height="64" border="0" alt="" /></a>
{/if}

5) So that's pretty up everything I can remember to write about, any suggestions where the problems might be? Oh one more thing, if I make a tab called videos, where is it suposed to link?

6) Oh and by the way, I have a idea similar. Since we know digg.com is lacking a pictures/images/photos section, I am certain using the same way used above we can implement this in Pligg, where users are also asked if this is an image in step 1, thus marking a 2 in the link_type database, and then create a smarty tag, that makes the image posted appear in a lightbox/thickbox.


I know this is a long post, hope you have the patience to read it I know I'm a total beginner here, sorry about that.
Reply With Quote
  #43 (permalink)  
Old 07-28-2007, 02:05 PM
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
I've just set this up on my site, and it is working great - except that the thickbox content (both the loaded box and the background blackening) doesn't cover Flash content (brought in with SWFObject) in Firefox 2.

In IE, it appears to be ok - well, effectively. It looks like it is turning the Flash off...

I also have sIFR flash headlines going on, which use their own embed routine, and the are fine in both IE and Firefox.

Any ideas? Once you've seen how much flash is on my site, you'll appreciate that it is kinda vital to not appear under it... commuso beta / Published
Reply With Quote
  #44 (permalink)  
Old 07-28-2007, 10:31 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi,

Not sure about this (so don't quote me), but I think for Thickbox or anything related to that to show over Flash, then the Flash file needs to have the wmode set to be opague and not transparent or windowless (?).

Best,
Cent


Quote:
Originally Posted by cruci View Post
I've just set this up on my site, and it is working great - except that the thickbox content (both the loaded box and the background blackening) doesn't cover Flash content (brought in with SWFObject) in Firefox 2.

In IE, it appears to be ok - well, effectively. It looks like it is turning the Flash off...

I also have sIFR flash headlines going on, which use their own embed routine, and the are fine in both IE and Firefox.

Any ideas? Once you've seen how much flash is on my site, you'll appreciate that it is kinda vital to not appear under it... commuso beta / Published
Reply With Quote
  #45 (permalink)  
Old 07-29-2007, 09:01 AM
Casual Pligger
 
Join Date: Oct 2006
Posts: 33
Quote:
Originally Posted by cent View Post
Hi,

Not sure about this (so don't quote me), but I think for Thickbox or anything related to that to show over Flash, then the Flash file needs to have the wmode set to be opague and not transparent or windowless (?).

Best,
Cent
Yeah, that sounds vaguely familiar too, although I think my sIFR flash headlines also have their wmode set to transparent...

I'll have a fiddle and see what happens.
Reply With Quote
  #46 (permalink)  
Old 08-02-2007, 04:04 PM
warefare's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 38
Just a little note, if you have problems with the thickbox and iframes in IE7.0 then I have a little fix here:

Download the newest thickbox.css from their main page.
[#FIND]
#TB_window { ... }

[#LOOK FOR]
display:none

remove that line and you won't have problems with displaying an iframe anymore.
Was tough to find that out, I can tell you.
Reply With Quote
  #47 (permalink)  
Old 08-06-2007, 04:01 PM
New Pligger
 
Join Date: Jul 2007
Posts: 11
can't make it work on 9.7
It looks like everything is all right in database. But images wont show opposite the title. I remove
{if $story_type eq "1"}
{/if}
from link_summary.tpl for a moment to see if the images will show and it did. What can be the problem?

ok i found it i i didnt add Ł
in libs/link.php, Find:

$smarty->assign('story_status', $this->status);

ADD BELOW:

$smarty->assign('story_type', $this->type);



Now images are showing but with empty window no movie. What now ?

Last edited by jackal; 08-06-2007 at 06:27 PM.
Reply With Quote
  #48 (permalink)  
Old 08-17-2007, 03:50 AM
New Pligger
 
Join Date: Aug 2007
Posts: 9
Hi,

Im trying to do the video thickbox MOD but I dont have a file called submit_empty_submit_form.tpl in my yget template files ?!

Any ideas ?

Cheers.
Reply With Quote
  #49 (permalink)  
Old 08-31-2007, 06:34 AM
grimusm's Avatar
Casual Pligger
Pligg Version: 9.7
Pligg Template: custom
 
Join Date: Aug 2007
Posts: 51
Quote:
Originally Posted by mtrend View Post
Hi,

Im trying to do the video thickbox MOD but I dont have a file called submit_empty_submit_form.tpl in my yget template files ?!

Any ideas ?

Cheers.
submit_step_1.tpl instead of submit_empty_submit_form.tpl in 9.7
Reply With Quote
  #50 (permalink)  
Old 08-31-2007, 06:44 AM
grimusm's Avatar
Casual Pligger
Pligg Version: 9.7
Pligg Template: custom
 
Join Date: Aug 2007
Posts: 51
Not sure if anyone else has had the same problem, but i will tell here just in case someone else has made the same mistake.

Everything looks fine, clicking the link brought up the thickbox but no video was played.

The attached files, play.php needs to have the URL in the form of Google Video.... or YouTube - Broadcast Yourself......

I had tried a few times but no video was displayed, then i saw i had input the URL's with the www.

Just needed to add, to play.php:

Code:
 if (preg_match("/http:\/\/youtube.com\/watch\?v=([0-9a-zA-Z]*)(.*)/i", $url, $matches)) {
        return '<object width="425" height="350">'.
               '<param name="movie" value="http://www.youtube.com/v/'.$matches[1].'" />'.
               '<param name="wmode" value="transparent" />'.
               '<embed src="http://www.youtube.com/v/'.$matches[1].'&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" />'.
               '</object>';
    }
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 Yesterday 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