miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /   

YouTube BB code

Page  Page 5 of 5:  « Previous  1  2  3  4  5  
Author Guest
#61 | Posted: 13 Aug 2009 11:47 
I've tried adding the youtube feature on my board, and it works as an admin, but not as a regular member? Is there something I forgot to do?
It takes the member to an edit message page but doesn't let them really edit anything.

Author samarac
Registered
#62 | Posted: 13 Aug 2009 11:53 
Additionally, I tried checking the url as mentioned in previous posts, and I'm using the most recent updated instructions.

Author tom322
Registered
#63 | Posted: 13 Aug 2009 12:19 
It works correctly for all members when I tested it.

Author Paul
Lead Developer
#64 | Posted: 13 Aug 2009 20:39 
Guest / samarac: I have no clues what you did wrong... may be you pasted the code in the section which is surrounded by "if($admin==1 or $isMod==1)" condition? It should work for all members by default if installed correctly.

Author jontrac
Registered
#65 | Posted: 30 Oct 2009 01:45 
Installed and tested. It works nicely!

Author astass
Registered
#66 | Posted: 25 Feb 2010 01:41 
new button

Author ripper
Registered
#67 | Posted: 11 Jun 2010 13:42 | Edited by: ripper 
Please read below...

Author Guest
#68 | Posted: 11 Jun 2010 14:02 
It seems that youtube changed something in their code and now "HQ" button disappeared in our embedded videos. It is interesting that when you choose full screen for the video then new HQ settings appear (360p/480p), but in a original window they are gone. Any ideas?

Author Paul
Lead Developer
#69 | Posted: 12 Jun 2010 03:28 | Edited by: Paul 
Ask YouTube :-) I have no ideas.

Author ripper
Registered
#70 | Posted: 15 Jun 2010 04:51 | Edited by: ripper 
Found what was the problem. Earlier in the code we had reduced size of the videos (we changed standard youtube settings) and it used to work fine, until youtube did something. But now it works again when we returned to standard settings of youtube.

Also wanted to ask is it possible to make youtube button visible in the forum only for admin and moderators?

Author Paul
Lead Developer
#71 | Posted: 15 Jun 2010 08:19 
ripper:
is it possible to make youtube button visible in the forum only for admin and moderators?

The answer is "it's possible".
Under bb_plugins.php you may this condition:

if($user_id==1 or $isMod==1){
$youTubeButton="HTML code for YouTube button";
}
else{
$youTubeButton='';
}

then paste {$youTubeButton} under templates/main_post_form.html instead of a static HTML code.

Author ripper
Registered
#72 | Posted: 15 Jun 2010 12:59 | Edited by: ripper 
Instead of HTML code for YouTube button we put this code:

<a href="JavaScript:paste_strinL(selektion,4,'[youtube='+prompt('URL:','http://www.youtube-url-here')+']','','')" onmouseover="window.status='{$l_bb_youtube}'; return true" onmouseout="window.status=''; return true" onmousemove="pasteSel()"><img src="{$main_url}/img/button_youtube.gif" style="width:23px;height:22px" alt="YouTube URL" title="YouTube URL" /></a>

but it says syntax error.

Author Paul
Lead Developer
#73 | Posted: 16 Jun 2010 02:51 
Are you experienced in PHP? :-)
You should put backslashes in front of quotes, if you put such text in quotes.

Page  Page 5 of 5:  « Previous  1  2  3  4  5 
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions / YouTube BB code Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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 Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB