Optimised Scriptaculous Module with Thickbox

Register an Account
Reply
 
Thread Tools Display Modes
  #61 (permalink)  
Old 01-07-2008, 09:39 PM
grimusm's Avatar
Casual Pligger
Pligg Version: 9.7
Pligg Template: custom
 
Join Date: Aug 2007
Posts: 51
Having real troubles styling the thickbox/lightbox.

Where exactly is the close link located?, as i have searched everywhere and could not find it. I need to change the text, replace it with an image instead of the close text currently there on the lightbox.

Also i was looking to move the top title bar (using lightbox for youtube videos). Which has the title and close button to the bottom under the video, is this possible. The top problem with the close button is more important please.
Reply With Quote
  #62 (permalink)  
Old 01-09-2008, 11:36 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 87
Quote:
Originally Posted by grimusm View Post
I have just noticed the above too, before i read your post. I will have a look into it see if there is anything i can do to fix it.

EDIT: Have managed to make all the video's display in order from date published (ignoring the actual page number)

open 'videos.php'

find:
Code:
if(!isset($_REQUEST['search'])){$search->orderBy = "link_published_date DESC";}
replace with:
Code:
if(!isset($_REQUEST['search'])){$search->orderBy = "link_type DESC,link_published_date DESC";}
Only thing is the pagination displays for (all articles) not just (video pages) - therefore may be many empty pages. I will look to see if i can fix this too.

EDIT: (probably won't have time to look at this - haven't had any luck so far - /libs/html1.php is where the pagination is located. I guess justs needs to count only $link_type = 1 for videos.php pages. Not sure how to do this though.)


Also on another note, does anyone know if it is possible to include an EVB or other vote button on the video thickbox? (like in digg.com videos)
Thanks, it is a little bit better though. However like you said, many blank pages at the end. Hope any one can fix this.
Reply With Quote
  #63 (permalink)  
Old 01-19-2008, 09:21 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Will this video mod work for 9.8.2?

Step 1 in the instructions call for changes in submit_empty_submit_form.tpl, this template file doesn't exist in 9.8.2

Anyone have this installed on 9.8.2?

Geoserv.
Reply With Quote
  #64 (permalink)  
Old 01-26-2008, 04:21 PM
New Pligger
 
Join Date: Jan 2008
Posts: 9
I installed the video mod and get this error when trying to submit

Code:
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_id=link_author' at line 1 in /home2/upchuckr/public_html/upchuckit/libs/db.php on line 233

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND vote_value > 0 AND vote_user_id=2' at line 1 in /home2/upchuckr/public_html/upchuckit/libs/db.php on line 233

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 10, '63.146.193.23')' at line 1 in /home2/upchuckr/public_html/upchuckit/libs/db.php on line 233

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' link_status='discard', link_randkey=0, link_category=0, link_modified=NULL, lin' at line 1 in /home2/upchuckr/public_html/upchuckit/libs/db.php on line 233

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_id=link_author' at line 1 in /home2/upchuckr/public_html/upchuckit/libs/db.php on line 233
Please help!
Reply With Quote
  #65 (permalink)  
Old 01-27-2008, 01:10 PM
New Pligger
 
Join Date: Jan 2008
Posts: 9
ok i was able to get everything installed and it worked now. the only problem is i still see a few lines of that error message when submitting.
Reply With Quote
  #66 (permalink)  
Old 01-29-2008, 01:04 AM
New Pligger
 
Join Date: Jan 2008
Posts: 9
can anyone figure out how to get rid of that error ?
Reply With Quote
  #67 (permalink)  
Old 02-11-2008, 05:59 AM
New Pligger
Pligg Version: 9.8.2 Beta
Pligg Template: not sure yet
 
Join Date: Dec 2007
Posts: 7
Quote:
Originally Posted by blackpr View Post
Hello,
I have made a hack and i want to share it with you.
If you want to have a thumbnail of the youtube video instead of a standard image follow the next steps:
Open the /libs/link.php file:
add in the function read below the
Code:
$this->link_field15=$link->link_field15;
these two lines:
Code:
$youtubevide=explode("=", $this->url= $link->link_url);
$this->yt=$youtubevide[1];
In the same file add below
Code:
$smarty->assign('story_status', $this->status);
the line
Code:
	$smarty->assign('yt_vid_id',  $this->yt);
Now in the template file that you have the
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}
change to
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="http://img.youtube.com/vi/{$yt_vid_id}/2.jpg" width="80" height="64" border="0" alt="" /></a>
{/if}
Great work! Works perfect!
Reply With Quote
  #68 (permalink)  
Old 02-18-2008, 02:08 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 47
can anyone share a link for me to see this module in action?

thanks
Reply With Quote
  #69 (permalink)  
Old 03-13-2008, 02:08 AM
abraxas's Avatar
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 100
Have you managed to figure out the SQL syntax error?
I have a similar one:

Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `link_author` = 1 ORDER BY `link_date` DESC LIMIT 1' at line 1 in C:\wamp\www\pligg\libs\db.php on line 233
Reply With Quote
  #70 (permalink)  
Old 03-13-2008, 02:36 AM
abraxas's Avatar
Pligg Donor
Pligg Version: Plig
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: Boulder county, CO.
Posts: 100
I'm getting a SQL syntax error near 'AND `link_author` = 1 ORDER BY `link_date` DESC LIMIT 1'

Perhaps because I've skipped step 6
6.) You can now use the smarty conditional
not knowing where to put it.

I'm using 9.9.0 with b-Ice template.

And, thank you Simon, for this work!
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 268 02-03-2012 12:19 PM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 11 12-20-2010 04:18 PM
Help Installing Thickbox for Upload module aguillen Questions and Comments 1 06-26-2009 02:19 AM
[MOD] Thickbox Module for Pligg cent Questions and Comments 35 11-19-2008 10:54 AM
Lightbox Thickbox Scriptaculous jbquery revolver Questions and Comments 3 04-18-2007 01: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