[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

A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Post by A. Djabri »

I've installed the Advanced BBCode Box and it contains many new features including fading effect... Easy to install and to transform.
Image
Last edited by A. Djabri on Sat Nov 11, 2006 2:47 pm, edited 1 time in total.
Thanks for phpBB.com and for all mod makers especially ptirhiik...

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

Post by Tumbo »

A. Djabri wrote: I've installed the Advanced BBCode Box and it contains many news features including fading effect... Easy to install and to transform.


Okay. But how will it work with the one I have on here
http://www.euro-rap.com/forum/posting.p ... ply&t=6194

A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Post by A. Djabri »

Which one ? I have to register...
Thanks for phpBB.com and for all mod makers especially ptirhiik...

plc
Registered User
Posts: 39
Joined: Fri Sep 01, 2006 5:09 am

Re: [2.0.19] Youtube Video BBCode

Post by plc »

Tumbo wrote: 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?

Ive had that same problem

first change positions of youtube and hide in that rule.

I you got hide you probably have this

Code: Select all

<input type="button" class="button" accesskey="h" name="addbbcode18" value="Hide" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('h')" />
replace "18" with "20" (two times)

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

Post by Tumbo »

A. Djabri wrote: Which one ? I have to register...


This:
Image

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

Post by Tumbo »

How did you add the YouTube mark there?

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

Post by Tumbo »

A. Djabri wrote: I've installed the Advanced BBCode Box and it contains many new features including fading effect... Easy to install and to transform.
Image


How did you add the YouTube mark there?

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

Post by Tumbo »

Hi there.
I have just installed the Advanced BB Code and everything seems to work fine...almost.

When you write a text, and click on a smiley, it doesn't appear, and you get an error, which says:

Line: 651
Char: 3
Error: "baseHeight" is undefied.
Url: http://www.euro-rap.com/forum/posting.p ... ply&t=5934

The strange part is, when the text area is empty, the smileys appear!

PLEAS HELP!

A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Post by A. Djabri »

:?:
Last edited by A. Djabri on Sun Nov 12, 2006 3:49 am, edited 3 times in total.
Thanks for phpBB.com and for all mod makers especially ptirhiik...

A. Djabri
Registered User
Posts: 10
Joined: Fri Nov 10, 2006 8:40 pm
Location: Canada
Contact:

Post by A. Djabri »

Sorry, I was out.
Good luck Tumbo.
Last edited by A. Djabri on Sun Nov 12, 2006 3:48 am, edited 1 time in total.
Thanks for phpBB.com and for all mod makers especially ptirhiik...

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

Post by Tumbo »

I have just installed the Advanced BB Code and everything seems to work fine...almost.

When you write a text, and click on a smiley, it doesn't appear, and you get an error, which says:

Line: 651
Char: 3
Error: "baseHeight" is undefied.
Url: http://www.euro-rap.com/forum/posting.p ... ply&t=5934

The strange part is, when the text area is empty, the smileys appear!

PLEAS HELP!

LukeUlrich
Registered User
Posts: 9
Joined: Mon Nov 13, 2006 4:12 am

Post by LukeUlrich »

May I ask if there is going to be a release for phpbb 2.0.18??

elcapitan350z
Registered User
Posts: 1
Joined: Tue Nov 14, 2006 4:44 am

Post by elcapitan350z »

Quick little question, is it possible to install this on a php-nuke site? My forum is within my Modules. I've tried 2 different times and havent succeed yet.

LukeUlrich
Registered User
Posts: 9
Joined: Mon Nov 13, 2006 4:12 am

Post by LukeUlrich »

*slaps head*

Stupid question, lol, I mean 2.0.21.

lego1360
Registered User
Posts: 1
Joined: Thu Nov 16, 2006 5:59 am

Re: Simple way to add YouTube and Google video to Adv BBcode

Post by lego1360 »

A. Djabri wrote: 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




I tried this code it shows up and all but the google and youtube buttons dont open the prompt. Can anybody help me here.

Post Reply

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