miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Polls addon for miniBB Organize opinions on miniBB-forums, collecting them with the Polls & Surveys add-on!
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions /
Short link for this topic:

YouTube BB code

 Page Page 2 of 5:  ««  1  2  3  4  5  »» 
Author lime
Forums Member
#16 | Posted: 4 Nov 2006 13:11
lol @ paul

You can find some strange and funny things on youtube =)

Anonymous, I think only the code in bb_codes.php was changed.
Author Paul
CEO
#17 | Posted: 4 Nov 2006 15:27
Yes, the code for bb_codes.php has been changed.

Actually I need to know what other symbols are allowed in YouTube URLs, if it doesn't work.
Author Anonymous
Guest
#18 | Posted: 4 Nov 2006 15:45
seems to work now!

i have a question, is it possible to disable certain bb codes in specific forums?
Author Paul
CEO
#19 | Posted: 5 Nov 2006 08:19
I think yes... you need to modify functions of bb_codes.php so they include a condition like

if(isset($GLOBALS['forum']) and $GLOBALS['forum']!=0 and in_array($GLOBALS['forum'], $specialBBCodeForums)){

/* here we include the available codes for the forums, specified in $specialBBCodeForums array */

}
Author Anonymous
Guest
#20 | Posted: 5 Nov 2006 16:24
hmm, im afraid i will mess something up.

lets say i want to enable youtube code for only forum ID 4, how would the code look, and where in the youtube code would i put it?

i really appreciate this
Author Paul
CEO
#21 | Posted: 6 Nov 2006 04:01
if(isset($GLOBALS['forum']) and $GLOBALS['forum']!=0 and in_array($GLOBALS['forum'], array(4))){

/* You tube code here, provided in the package above. This rule must be pasted both in encodeBB and decodeBB functions. */

}
Author Anonymous
Guest
#22 | Posted: 6 Nov 2006 10:25
friggin awesome....
Author Paul
CEO
#23 | Posted: 6 Nov 2006 12:55
What is "frigging"?
Author Anonymous
Guest
#24 | Posted: 6 Nov 2006 18:32
it's a less offensive way of saying f*cking.

I mean, very cool. Thanks!
Author Paul
CEO
#25 | Posted: 7 Nov 2006 03:39
Ok, thanks :-)
Author Monk
Forums Member
#26 | Posted: 14 Nov 2006 23:32
I will definitely have to try this out. :-)

Just a quick question; is there a way to disable certain bb codes for Anonymous posters as well?

thank you.
Author Paul
CEO
#27 | Posted: 15 Nov 2006 03:30
is there a way to disable certain bb codes for Anonymous posters as well - check this thread.
Author Monk
Forums Member
#28 | Posted: 15 Nov 2006 15:48 | Edited by: Monk
Hmm, the button works, but all I'm getting is a big space where the Youtube video should be.

Edit: Never mind, I understand now.
Author Paul
CEO
#29 | Posted: 16 Nov 2006 04:00
Never mind, I understand now
So, what what the reason?
Author Monk
Forums Member
#30 | Posted: 16 Nov 2006 07:13 | Edited by: Monk
Well, when javacript window asked for the YouTube url I put:

//www.youtube.com/watch?v=s1WmOd9O_ew

That address is to the video on the YouTube site(Which redirects you to it when put in the address bar) and not the video file itself.

This url that worked is this:

//www.youtube.com/watch/v/s1WmOd9O_ew

This url is to the video file itself, which is why it works.

You can see the difference for yourself when you look at the link. It took me while to realize it; that's what you get when you work on these things late at night. :-)
 Page Page 2 of 5:  ««  1  2  3  4  5  »» 
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions / YouTube BB code Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts