phpBB Forum

It is currently Thu 24. May 2012, 06:55

All times are UTC + 1 hour

Forum rules


Hello dearest user and welcome to our EQDKP-Plus support forum.

Please read the following rules and terms before posting anything! Failure in doing so will result in being ignored or being banned. Posting in our boards means you have read, understood and accepted those rules.

English Board Rules – Click here



Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Video in news size
PostPosted: Mon 3. Oct 2011, 01:19 
Moderator
User avatar

Joined: Sun 11. Jan 2009, 18:14
Posts: 161
Location: USA
What file controls the video players size in the news feeds?

I have been searching.....no luck.
I did stumble upon a player.swf and yt.swf......are those it?

I wanted to take a crack at adjusting the size of the player and centering it.


Website: http://www.darkaftermath.com
PHPInfo: http://www.darkaftermath.com/phpinfo.php
Eqdkp Version 0.6.4.6
PHP 5.2.14 / MYSQL 5.0.77



Top
 Profile  
 
Offline
 Post subject: Re: Video in news size
PostPosted: Mon 3. Oct 2011, 04:41 
Moderator
User avatar

Joined: Sun 11. Jan 2009, 18:14
Posts: 161
Location: USA
Found this when viewing the page in HTML...

Code:
    <div class="newscontainer"><table border="0" cellpadding="0" cellspacing="2"><tbody><tr><td align="left"><a href="http://www.youtube.com/watch?v=Nd8iZB4IW_o&amp;feature=channel_video_title" target="_blank" class="postlink">watch the video on  Youtube</a></td><td align="right"><span class="gensmall"></span></td></tr><tr><td colspan="2"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Nd8iZB4IW_o"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/Nd8iZB4IW_o" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></object></td></tr></tbody></table></div>


When I changed the values....the player centered and size went to 640x385. Looked great.
However....need to find out what file tells the news to create it this way.


Website: http://www.darkaftermath.com
PHPInfo: http://www.darkaftermath.com/phpinfo.php
Eqdkp Version 0.6.4.6
PHP 5.2.14 / MYSQL 5.0.77



Top
 Profile  
 
Offline
 Post subject: Re: Video in news size
PostPosted: Mon 3. Oct 2011, 08:07 
Core-Developer
User avatar

Joined: Fri 15. May 2009, 19:32
Posts: 3464
pluskernel/include/bbcode.class.php


Greetings, GodMod
---
Schreibt mir nie unaufgefordert PNs! - Never write me unrequested PMs!

Support my work:Image



Top
 Profile  
 
Offline
 Post subject: Re: Video in news size
PostPosted: Tue 4. Oct 2011, 06:20 
Moderator
User avatar

Joined: Sun 11. Jan 2009, 18:14
Posts: 161
Location: USA
Perfect...thank you very much!

This is how I have it so far....

Code:
         // match a youtube video URL and replace it
         $ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.youtube|youtube)(\.[\w\.]+?/watch\?v=)([\w-]+)([&][\w=+&;%]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $user->lang['Jump_to'] . ' Youtube</a>' . $object . '<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\5" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>' . $tableend, $ret);
         
         // match a youtube.de video URL and replace it
         $ret = preg_replace("#(^|[\n ])([\w]+?://)(de\.youtube|youtube)(\.[\w\.]+?/watch\?v=)([\w-]+)([&][\w=+&;%]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $user->lang['Jump_to'] . ' Youtube</a>' . $object . '<object width="640" height="385"><param name="movie" value="http://de.youtube.com/v/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\5" type="application/x-shockwave-flash" wmode="transparent" width="640" height="384"></embed></object>' . $tableend, $ret);


Player resized nicely.

Now just where/how to put in the center tag....
Ill take a closer look tomorrow. A little late right now

Again thank you!


Website: http://www.darkaftermath.com
PHPInfo: http://www.darkaftermath.com/phpinfo.php
Eqdkp Version 0.6.4.6
PHP 5.2.14 / MYSQL 5.0.77



Top
 Profile  
 
Offline
 Post subject: Re: Video in news size
PostPosted: Sat 22. Oct 2011, 01:16 
Moderator
User avatar

Joined: Sun 11. Jan 2009, 18:14
Posts: 161
Location: USA
Ok....sigh...

I resized the youtube player. Looks good....
Then I resized the left/right columns also, and everything is lining up pretty good.
Resized the images then changed the style.css to reflect the new size.

I just cannot get the darn code right for centering the youtube player.

I would think its somewhere in this code...

Code:
         // match a youtube video URL and replace it
         $ret = preg_replace("#(^|[\n ])([\w]+?://)(www\.youtube|youtube)(\.[\w\.]+?/watch\?v=)([\w-]+)([&][\w=+&;%]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $user->lang['Jump_to'] . ' Youtube</a>' . $object . '<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\5" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>' . $tableend, $ret);
         
         // match a youtube.de video URL and replace it
         $ret = preg_replace("#(^|[\n ])([\w]+?://)(de\.youtube|youtube)(\.[\w\.]+?/watch\?v=)([\w-]+)([&][\w=+&;%]*)*(^[\t <\n\r\]\[])*#is", '\\1' . $directurl . '\\2\\3\\4\\5\\6" target="_blank" class="postlink">' . $user->lang['Jump_to'] . ' Youtube</a>' . $object . '<object width="640" height="385"><param name="movie" value="http://de.youtube.com/v/\\5"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\5" type="application/x-shockwave-flash" wmode="transparent" width="640" height="384"></embed></object>' . $tableend, $ret);


If this is the right part to add it.....help?
If not, what is the correct file to edit? Ill give it a go if its a different file....


Website: http://www.darkaftermath.com
PHPInfo: http://www.darkaftermath.com/phpinfo.php
Eqdkp Version 0.6.4.6
PHP 5.2.14 / MYSQL 5.0.77



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

(C) The EQdkp-Plus Developer Team
EQdkp Plus Template by Ramon Kaes