Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
I'm not sure if it is fully correct and safe at the same time... but you can have a try.

Code: [Download] [Hide] [Select]
<div id="utube{SIMPLETEXT}{postrow.POST_ID}"></div>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/flashfix.js"></script>
<script type="text/javascript">
var fo = new FlashObject("http://www.youtube.com/v/{SIMPLETEXT}", "mymovie", "425", "350","7");
fo.addParam("wmode", "transparent");
fo.addVariable("tab", getQueryParamValue("tab"));
fo.write("utube{SIMPLETEXT}{postrow.POST_ID}");
</script>

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
thanks MG, i was so happy that i tried this immediately but what i was afraid of is exactly what it does...

{postrow.POST_ID} is not accepted in bbcode replacements, it is just not replaced so it still looks like {postrow.POST_ID} after making a post and viewing the source of the page

as far as i know it will accept anything from the language directory but that would be just about all it would accept? i hope not

thanks for the heads up sofar though
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
And what about using PHP switch in template?

http://area51.phpbb.com/phpBB/viewtopic.php?f=26&t=29448

Code: [Download] [Hide] [Select]
<!-- PHP -->mt_rand(100000, 999999);<!-- ENDPHP -->


This will generate a random number you can attach to your ID.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
wow if that would work i ld be in seventh heaven  

i m not sure how but i will try, see what it it will bring and report back (hopefully with a positive answer )

would be great if this works .. it would only leave me with one similar (but more complicated to me)  bug hunt
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
He he he... we will sort it out...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
just for your info... i haven t  forgotten about this and i will get back on this one (i just got distracted)  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
Joshua203 wrote: [View Post]
(i just got distracted)  


He he he... then close YouTube and go back coding!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
rotfl_01
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
Also if you add  (" allowfullscreen="true" )

This will allow the Board member to view the Video Full Screen on the Forum.
instead of going to "YouTube" for that Option.  


Like So.

Code: [Download] [Hide] [Select]
<object width="425" height="350"><param name="movie" value="h**p://***.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="h**p://***.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" " allowfullscreen="true" wmode="transparent" width="425" height="350"></embed></object>

 



 
St0neySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
This is What I actually Use for the YouTube BBC Code.   (My Post above was a addon to what was posted.)

This BBC code
a) Will center the Video in the Post
b) Allows Full Screen View
c) Make video Larger - width="640" height="385



BBCode usage:

Code: [Download] [Hide] [Select]
[youtube]http://www.youtube.com/watch?v={IDENTIFIER}[/youtube]



HTML replacement: (Changed Thanks MG)

Code: [Download] [Hide] [Select]
<div style="margin: 0 auto; text-align: center;"><br><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></div><br />



Help line:

Code: [Download] [Hide] [Select]
[youtube]http://www.youtube.com/watch?v=_Zh5mXvkaMk[/youtube]



St0ney
 



 
Last edited by St0ney on Sun 25 Nov, 2012 17:16; edited 1 time in total 
St0neySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
Many thanks for sharing this tip.

Anyway I would suggest not to use the tag CENTER as it has been discouraged.

When I need to center some content I always use a DIV:

Code: [Download] [Hide] [Select]
<div style="margin: 0 auto; text-align: center;">YOURCONTENT</div>



Also make sure you close properly BR whether you add it => <br />
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
Thanks MG - Changed the Code above and on my Board.

I'll need to look at the code on my board, I'm sure I have a ton of <CENTER> Tags.
I'm a old HTML guy, so I'm not up to date on proper php coding.
 



 
St0neySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
Thanks St0ney,

I will certainly give this one a try  
 




____________
www.DutchaGoGo.com (development/under construction ...Forever?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: YouTube BBCode 
 
St0ney wrote: [View Post]
I'm a old HTML guy, so I'm not up to date on proper php coding.

Don't worry... HTML is changing day by day... it's impossible to be always up to date.

You can refer to this link to check your code against rules: http://validator.w3.org/

You don't have to be 100% compliant, but the most you can fix, the better it is... and you can reasonably expect that most browsers will display your site properly.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML

HideSimilar Topics





 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron