[2.0.19] Youtube Video BBCode

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
125
64%
Very Good
23
12%
Good
21
11%
Fair
5
3%
Poor
21
11%
 
Total votes: 195

musicalforums
Registered User
Posts: 6
Joined: Sat Sep 23, 2006 8:01 pm

Post by musicalforums »

Hi....

It may be a bit cheeky to ask, but how do I make the videos viewable by only one usergroup.....?

Thanks if you can help....
antilis
Registered User
Posts: 3
Joined: Wed Jul 09, 2003 11:55 pm

Helpme please...

Post by antilis »

uwei80i
Registered User
Posts: 9
Joined: Sun Oct 22, 2006 10:40 am

Post by uwei80i »

Hi,

i successful install the mod but i cant direct use my font colour on posting message anymore , except manually key in the code ...

any idea why ?
User avatar
Roks
Registered User
Posts: 119
Joined: Thu Sep 14, 2006 1:15 am

Post by Roks »

Thanks for the MOD.
ctcentralinfo
Registered User
Posts: 191
Joined: Wed Jul 06, 2005 8:33 pm
Contact:

Post by ctcentralinfo »

The radio button shows up but when I click on it I get undefined. Can anyone help out?
ctcentralinfo
Registered User
Posts: 191
Joined: Wed Jul 06, 2005 8:33 pm
Contact:

Post by ctcentralinfo »

I figured this is somehow related to the lang_main.php file. Anyone?
ctcentralinfo
Registered User
Posts: 191
Joined: Wed Jul 06, 2005 8:33 pm
Contact:

Post by ctcentralinfo »

The tags work if I add them in manually, but when I click on the button in posting I get undefined:

http://www.cooltechcentral.com/forum/vi ... hp?p=37#37
bkt
Registered User
Posts: 42
Joined: Sun Jul 03, 2005 12:43 pm

Post by bkt »

Hi I'm having a major headache with this

I installed the mod maually and it comes up with this error

http://www.streetball.co.nz/forum/index.php

can anyone help

also I can't log into my administration, it comes up with this error
Warning: Cannot modify header information - headers already sent by (output started at /home/streetb/public_html/forum/language/lang_english/lang_main.php:1039) in /home/streetb/public_html/forum/admin/index.php on line 647

Warning: Cannot modify header information - headers already sent by (output started at /home/streetb/public_html/forum/language/lang_english/lang_main.php:1039) in /home/streetb/public_html/forum/admin/index.php on line 648
bkt
Registered User
Posts: 42
Joined: Sun Jul 03, 2005 12:43 pm

Post by bkt »

^^ Flag that. I've fixed it
dvdd127
Registered User
Posts: 402
Joined: Fri Jan 13, 2006 12:35 am
Location: Chicago, IL

Post by dvdd127 »

bkt wrote: Hi I'm having a major headache with this

I installed the mod maually and it comes up with this error

http://www.streetball.co.nz/forum/index.php

can anyone help

also I can't log into my administration, it comes up with this error
Warning: Cannot modify header information - headers already sent by (output started at /home/streetb/public_html/forum/language/lang_english/lang_main.php:1039) in /home/streetb/public_html/forum/admin/index.php on line 647

Warning: Cannot modify header information - headers already sent by (output started at /home/streetb/public_html/forum/language/lang_english/lang_main.php:1039) in /home/streetb/public_html/forum/admin/index.php on line 648
to fix the admin panel error...make sure you edited lang_main.php correctly. hopefully you have a backup of the old files from before you installed this MOD.. then you can just re-edit the lang_main.php file

I am not sure about the other other error.. because I dont see one when i click the link you provided.
/DD
A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Simple way to add YouTube and Google video to Adv BBcode Box

Post by A. Djabri »

Hi Guys,

This little mod is a simplified version of Freddie's one; No need to edit bbcode.tpl and bbcode.php. I've modified Freddie's Mod because of some conflicts with mp3 dewplayer installed in aokas.com/forum/

Code: Select all

#######################################################
#######################################################
##
## MOD Title: Simplified integration of youtube and google-video in advanced bbcode box
## MOD Author: A. Djabri <djabrister@gmail.com - http://aokas.com>
## MOD Description: This mod adds 2 image buttons to your advanced BBcode box, one for youtube and one for google-video. Based on Freddie's Mod <freddie> http://www.tactic.be
## MOD Version: 1.0.0 
## 
## Installation Level: easy 
## Installation Time: 2 Minutes
## Files To Edit: 2
##     mods/bbcode_box/bbcode_box.js
##     templates/subSilver/posting_body.tpl
##
## Included Files: 2
##     googlevid.gif, youtube.gif
##
## Verified Compatability: phpBB v 2.0.21
##
## topic on aokas.com with a screenshot : http://www.aokas.com/forum/viewtopic.php?p=1463#1463
##
################################################################ 
##
## Author Notes: Copy included images into mods/bbcode_box/images/ !!!
##
################################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
################################################################
#
#-----[ OPEN ]------------------------------------------
#
# If subSilver is your template
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------ 
# 
<img border="0" src="mods/bbcode_box/images/ram.gif" name="ram" type="image" class="postimage" alt="Real Media">

#
#-----[ INLINE, AFTER, ADD ]------------------------------------------
# 
<img border="0" src="mods/bbcode_box/images/googlevid.gif" name="GVideo" type="image" class="postimage" alt="GoogleVid"><img border="0" src="mods/bbcode_box/images/youtube.gif" name="youtube" type="image" class="postimage" alt="Youtube">

#
#-----[ OPEN ]------------------------------------------
#
mods/bbcode_box/bbcode_box.js

#
#-----[ FIND ]------------------------------------------ 
# 
symbol_help = "Insert Symbol Into Post";

#
#-----[ AFTER, ADD ]------------------------------------------
#
GVideo_help="Insert videoID: [video width=# height=#]http://video.google.com/googleplayer.swf?docId=VideoID[/video]";
youtube_help="Insert videoID: [video width=# height=#]http://www.youtube.com/v/VideoID[/video]";

#
#-----[ FIND ]------------------------------------------ 
# 
var symbol = 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#
var youtube = 0;
var GVideo = 0;

#
#-----[ FIND ]------------------------------------------ 
#
function helpline(help) {

#
#-----[ BEFORE, ADD ]------------------------------------------
#

function BBCGVideo() {
	var FoundErrors = '';
	var enterID   = prompt("Please enter the ID of the video (Try: -4190938042466443086)", "");
	if (!enterID)    {
		FoundErrors += " You have not entered an ID.";
	}
		var enterW   = prompt("Enter the video file width", "400");
	if (!enterW)    {
		FoundErrors += " You didn't enter the video file width.";
	}
	var enterH   = prompt("Enter the video file height", "350");
	if (!enterH)    {
		FoundErrors += " You didn't enter the video file height.";
	}
	if (FoundErrors)  {
		alert("Error:"+FoundErrors);
		return;
	}
	var ToAdd = "[video width="+enterW+" height="+enterH+"]http://video.google.com/googleplayer.swf?docId="+enterID+"[/video]";
	PostWrite(ToAdd);
}

function BBCyoutube() {
	var FoundErrors = '';
	var enterID   = prompt("Please enter the ID of the video (Try: vwl98dU0kY8)", "");
	if (!enterID)    {
		FoundErrors += " You have not entered an ID.";
	}
		var enterW   = prompt("Enter the video file width", "400");
	if (!enterW)    {
		FoundErrors += " You didn't enter the video file width.";
	}
	var enterH   = prompt("Enter the video file height", "350");
	if (!enterH)    {
		FoundErrors += " You didn't enter the video file height.";
	}
	if (FoundErrors)  {
		alert("Error:"+FoundErrors);
		return;
	}
	var ToAdd = "[video width="+enterW+" height="+enterH+"]http://www.youtube.com/v/"+enterID+"[/video]";
	PostWrite(ToAdd);
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
#
################################################################
################################################################
Demo:
1- YouTube: http://www.aokas.com/forum/viewtopic.php?t=317
2- Google Vid: http://www.aokas.com/forum/viewtopic.php?t=345
Thanks for phpBB.com and for all mod makers especially ptirhiik...
alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

thanxs works great for me
Tumbo
Registered User
Posts: 294
Joined: Wed Jun 01, 2005 7:20 pm
Location: Malmo/Sweden
Contact:

Re: [2.0.19] Youtube Video BBCode

Post by Tumbo »

Hi there.
I got a little problem.
I installed the [hide] button on my forum.
I also have got the [youtube] button there.
But now, where I hit the [youtube] button, it shows [hide][/hide] instead.
I know it is in posting_body but I don't know what to change in the file to make it work.

Code: Select all

// Define the bbCode tags 
bbcode = new Array(); 
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]','[youtube]','[/youtube]');
imageTag = false; [/code]



Do you see anything wrong?
A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Post by A. Djabri »

Hello,

When I installed Frddies's Mod, I hit mp3, youtube comes, I hit youtube and something else comes... Remove Freddies's Mod and things should be restaured. I think that the conflict is rather in includes/bbcode.php.
Last edited by A. Djabri on Sat Nov 11, 2006 2:33 pm, edited 1 time in total.
Thanks for phpBB.com and for all mod makers especially ptirhiik...
furplex
Registered User
Posts: 23
Joined: Wed Oct 25, 2006 7:29 pm

Post by furplex »

Sorry but can someone help tell me which version should i install?
I am confuse after reading all 19 pages with so many version...

Thanks

:oops:
Post Reply

Return to “[2.0.x] MOD Database Releases”