[ABD] Advanced BBcode box 3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] Advanced BBcode box 3

Post by leviatan21 »

ginopilotino wrote:first test positive , bbcode about image and video enters on cursor line with IE.

my browser note a javascript error in viewtopic page. line 51, caratecter 3. :o
Hi ginopilotino :
That error is from eviL<3 Quick Reply, the bug was informed some time ago , there is no fix for it. :cry:
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
ginopilotino
Registered User
Posts: 15
Joined: Thu Apr 03, 2008 9:41 pm
Contact:

Re: [DEV] Advanced BBcode box 3

Post by ginopilotino »

leviatan21 wrote:
ginopilotino wrote:first test positive , bbcode about image and video enters on cursor line with IE.

my browser note a javascript error in viewtopic page. line 51, caratecter 3. :o
Hi ginopilotino :
That error is from eviL<3 Quick Reply, the bug was informed some time ago , there is no fix for it. :cry:
ok, i don't use that mod :mrgreen:

for myself ABBC3 V 1.0.9 is perfect

i want donwload now :lol: :lol: :lol:
calproye
Registered User
Posts: 108
Joined: Wed Oct 03, 2007 5:06 pm
Location: Madrid - ES
Contact:

Re: [DEV] Advanced BBcode box 3

Post by calproye »

leviatan21 wrote:
calproye wrote:Hi! leviatan. I was testing the BBvideo BBCode and it doesn't work properly. Look at here:

http://www.mssti.com/phpbb3/viewtopic.php?f=10&t=129

It's your board.

and look at here: http://www.testforo4.calproye.es/viewto ... t=5&p=5#p5 There Explain why doens't works porperly (in spanish. It's my board :D )




Best Regrads
Hi calproye :
Thank you, your explain is very good, I made some changes for youtube and google, now you can see your test working fine Here
Thanks you very much for spending your time in this BBCode (sigo diciendo que es la leche!!) ;)

and now I'm waiting for a download link to test in my board (the same as ginopilotino) :lol:


Best regards

PD: if you need help for something...
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] Advanced BBcode box 3

Post by leviatan21 »

ginopilotino wrote:for myself ABBC3 V 1.0.9 is perfect

i want donwload now :lol: :lol: :lol:
calproye wrote:and now I'm waiting for a download link to test in my board (the same as ginopilotino) :lol:

Best regards

PD: if you need help for something...
For all who wants the download link, and want to help me, I only need YOUR test, a lot of it...

More test = less bugs = better mod = happy me :lol:
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] Advanced BBcode box 3

Post by Peter77sx »

So release it already. :lol: works good for me so far. can't find any bugs. so... good job. ;)
User avatar
[alfa]
Registered User
Posts: 28
Joined: Sat Dec 15, 2007 11:26 pm
Location: Madrid, Spain
Contact:

Re: [DEV] Advanced BBcode box 3

Post by [alfa] »

Same here ^^ :ugeek:
pavabe
Registered User
Posts: 48
Joined: Wed Dec 29, 2004 1:37 pm

Re: [DEV] Advanced BBcode box 3

Post by pavabe »

Yesterday we have solved many little bugs.
You need to make at much different post as you can and if everything is working OK.

Try to use different bbcodes in one post and see if every installed template works well.
If you get an error please report it directly

Test board 1
Test board 2

Both have installed the latest version of Advanced BBcode box 3 v 1.0.9
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] Advanced BBcode box 3

Post by Peter77sx »

nevermind, i figured it out. :)
Last edited by Peter77sx on Wed Apr 23, 2008 4:42 am, edited 1 time in total.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: [DEV] Advanced BBcode box 3

Post by Peter77sx »

double post.
calproye
Registered User
Posts: 108
Joined: Wed Oct 03, 2007 5:06 pm
Location: Madrid - ES
Contact:

Re: [DEV] Advanced BBcode box 3

Post by calproye »

Hi! I need some help with this mod. I defined a new BBCode a long time ago called "center" ("Centra texto/imagenes/tablas") and it works properly


Today I have defined new ABBCodes called "remarcar...", "Enlace..", "Linea..." and "off-topc.." ( they are the last four icons). Look at the picture:


Image



but they are in my board, but any buttons works properly. Nothing. I do "click" but, nothing happens. (The new BBCodes are defined in ACP and they work fine.)


Image

Look at the last picture. There are a white lines, but they are the bbcodes that I've defined: they are duplicated without names. ( I can't erase them).

I followed the instruccions and these are my modified files:

includes/abbcode_custom.php

Code: Select all

<?php
/**
*
* @package phpBB3
* @version $Id: abbcode_custom.php,v 1.0.8 2008/03/01 03:01:00 leviatan21 Exp $
* @copyright leviatan21 < info@mssti.com > (Gabriel) http://www.mssti.com/phpbb3/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
**/

if (!defined('IN_PHPBB'))
{
	exit;
}

$custom_abbcode_ary = array( //0=($0)<br/>1=($1)<br/>2=($2)<br/>3=($3)<br/>4=($4)<br/>5=($5)<br/>6=($6)<br/>7=($7)

	// [rapidshare]file url[/rapidshare\] Code..
	'ABBC3_RAPIDSHARE'	=> array( 'id' => 61	,'display' => false	,'image' => 'rapidshare.gif',
	'found'				=> "#\[rapidshare\](.*?)\[\/rapidshare\]#sie",
	'regexp'			=> "\$this->rapidshare_pass('\$1')"),

	// [flash width=X height=X]Flash URL[/flash] code..
	'ABBC3_FLASH'		=> array( 'id' => 100	,'display' => false	,'image' => 'flash.gif',
	'found'				=> "#\[flash (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9])\](.*?)\[/flash\]#si",
	'regexp'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="$2" height="$5"><param name="movie" value="$6" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="$6" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="$2" height="$5" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>'),
//	'found'				=> "#\[flash( (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9]))?\](.*?)\[/flash\]#sie",
//	'regexp'			=> 	"\$this->BBvideo_pass('\$7', '\$3', '\$6')"),
	
	// Flv: [flv width,height]http://url[/flv] Code..
	'ABBC3_FLV'			=> array( 'id' => 101	,'display' => false	,'image' => 'flashflv.gif',
	'found'				=> "#\[flv (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9])\](.*?)\[/flv\]#si",
	'regexp'			=> '<embed src="./images/flvplayer.swf" width="$2" height="$5" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=$6&autostart=false" /><br/>'),
//	'found'				=> "#\[flv( (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9]))?\](.*?)\[/flv\]#sie",
//	'regexp'			=> 	"\$this->BBvideo_pass('\$7', '\$3', '\$6')"),
//	'regexp'			=> '<embed src="./images/flvplayer.swf" width="' . ( ( '$3' != 0 ) ? '$3' : $this->abbcode_config['ABBC3_VIDEO_width'] ) . '" height="' .  ( ( '$6' != 0 ) ? '$6' : $this->abbcode_config['ABBC3_VIDEO_height'] ) . '" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=$7&autostart=false" /><br/>'),

	'ABBC3_BBVIDEO'		=> array( 'id' => 63	,'display' => true	,'image' => 'bbvideo.gif',
	'found' => "#\[BBvideo( (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9]))?\](.*?)\[/BBvideo\]#sie",
	'regexp' => "\$this->BBvideo_pass('\$7', '\$3', '\$6')"),

	// [video width=X height=X]file Video URL[/video] code..
	'ABBC3_VIDEO'		=> array( 'id' => 102	,'display' => true	,'image' => 'video.gif',
	'found'				=> "#\[video (width=)?([0-9]?[0-9]?[0-9])(,| )(height=)?([0-9]?[0-9]?[0-9])\](.*?)\[/video\]#si",
	'regexp'			=> '<object width="$2" height="$5" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_' . $this->abbcode_config['ABBC3_UID'] . '"><param name="url" value="$6" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$6" /><!--[if !IE]>--><object width="$2" height="$5" type="video/x-ms-wmv" data="$6"><param name="src" value="$6" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>'),
	
	// [stream]file Sound URL[/stream] code..
	'ABBC3_STREAM'		=> array( 'id' => 103	,'display' => false	,'image' => 'sound.gif',
	'found'				=> "#\[stream\](.*?)\[/stream\]#si",
	'regexp'			=> '<object width="320" height="45" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_' . $this->abbcode_config['ABBC3_UID'] . '"><param name="url" value="$1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$1" /><!--[if !IE]>--><object width="320" height="45" type="video/x-ms-wmv" data="$1"><param name="src" value="$1" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>'),
	
	// [quicktime width=X height=X]file Quicktime URL[/quicktime] code..
	'ABBC3_QUICKTIME'	=> array( 'id' => 104	,'display' => false	,'image' => 'quicktime.gif',
	'found'				=> "#\[quicktime width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\](.*?)\[/quicktime\]#si",
	'regexp'			=> '<object id="qtstream_' . $this->abbcode_config['ABBC3_UID'] . '" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="$1" height="$2"><param name="src" value="$3" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="type" value="video/quicktime" /><embed name="qtstream_' . $this->abbcode_config['ABBC3_UID'] . '" src="$3" pluginspage="http://www.apple.com/quicktime/download/" enablejavascript="true" controller="true" width="$1" height="$2" type="video/quicktime" autoplay="false"></embed></object>'),
	
	// [ram]file Ram URL[/ram] code..
	'ABBC3_RAM'			=> array( 'id' => 105	,'display' => false	,'image' => 'ram.gif',
	'found'				=> "#\[ram width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\](.*?)\[/ram\]#si",
	'regexp'			=> '<object id="rmstream_' . $this->abbcode_config['ABBC3_UID'] . '" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="$1" height="$2"><param name="src" value="$3" /><param name="autostart" value="false" /><param name="controls" value="ImageWindow" /><param name="console" value="ctrls_' . $this->abbcode_config['ABBC3_UID'] . '" /><param name="prefetch" value="false" /><embed name="rmstream_' . $this->abbcode_config['ABBC3_UID'] . '" type="audio/x-pn-realaudio-plugin" src="$3" width="$1" height="$2" autostart="false" controls="ImageWindow" console="ctrls_' . $this->abbcode_config['ABBC3_UID'] . '" prefetch="false"></embed></object><br /><object id="ctrls_' . $this->abbcode_config['ABBC3_UID'] . '" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="$1" height="36"><param name="controls" value="ControlPanel" /><param name="console" value="ctrls_{_file.ATTACH_ID}" /><embed name="ctrls_' . $this->abbcode_config['ABBC3_UID'] . '" type="audio/x-pn-realaudio-plugin" width="$1" height="36" controls="ControlPanel" console="ctrls_' . $this->abbcode_config['ABBC3_UID'] . '"></embed></object>'),
	
	// [Gvideo]video.google URL[/Gvideo] code..
	'ABBC3_GVIDEO'		=> array( 'id' => 106	,'display' => false	,'image' => 'googlevid.gif',
	'found'				=> "#\[Gvideo\]http://video.google.(.*?)/videoplay\?docid=(.*?)\[/Gvideo\]#si",
	'regexp'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="425" height="350"><param name="movie" value="http://video.google.$1/googleplayer.swf?docid=$2" /><param name="play" value="false" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="http://video.google.$1/googleplayer.swf?docid=$2" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="425" height="350" play="false" loop="false" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>'),
	
	// [youtube]YouTube URL[/youtube] code..
	'ABBC3_YOUTUBE'		=> array( 'id' => 107	,'display' => false	,'image' => 'youtube.gif',
	'found'				=> "#\[youtube\]http://((.*?)?)youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is",
	'regexp'			=> '<object width="425" height="350"><param name="movie" value="http://$2youtube.com/v/$3" /><param name="wmode" value="transparent" /><embed src="http://$2youtube.com/v/$3" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>'),
	
	// [veoh]Veoh URL[/veoh] code.. (http://www.phpbb.com/community/viewtopic.php?p=3929705#p3929705)
	'ABBC3_VEOH'		=> array( 'id' => 108	,'display' => false	,'image' => 'veoh.gif',
	'found'				=> "#\[veoh\]http://(.*?).veoh.com/videos/(.*?)\[/veoh\]#si",
	'regexp'			=> '<embed src="http://\\1.veoh.com/videodetails2.swf?permalinkId=\\2&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'),
	
	// [collegehumor]collegehumor video URL[/collegehumor] Code..
	'ABBC3_COLLEGE'		=> array( 'id' => 109	,'display' => false	,'image' => 'collegehumor.gif',
	'found'				=> "#\[collegehumor\]http://www.collegehumor.com/video:(.*?)\[/collegehumor\]#si",
	'regexp'			=> '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&fullscreen=1" width="480" height="360" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&fullscreen=1" /></object>'),
	
	// [dm]Video ID[/dm] code..
	'ABBC3_DMOTION'		=> array( 'id' => 110	,'display' => false	,'image' => 'dailymotion.gif',
	'found'				=> "#\[dm\](.*?)\[/dm\]#si",
	'regexp'			=> '<object width="420" height="352"><param name="movie" value="http://www.dailymotion.com/swf/$1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><embed src="http://www.dailymotion.com/swf/$1" type="application/x-shockwave-flash" width="420" height="352" allowFullScreen="true" allowScriptAccess="never"></embed></object>'),
	
	// [gamespot] Gamespot video URL [/gamespot] Code..
	'ABBC3_GAMESPOT'	=> array( 'id' => 111	,'display' => false	,'image' => 'gamespot.gif',
	'found'				=> "#\[gamespot\]http://www.gamespot.com/video/(.*?)/(.*?)\[/gamespot\]#si",
	'regexp'			=> '<embed id="mymovie" width="432" height="355" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D%26adgrp%3D%26sid%3D$2%26pid%3D$1%26mb%3D%26onid%3D%26nc%3D1202626246593%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="never" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>'),
	
	// [gametrailers]Gametrailers video URL[/gametrailers] Code..
	'ABBC3_GAMETRAILERS'=> array( 'id' => 112	,'display' => false	,'image' => 'gametrailers.gif',
	'found'				=> "#\[gametrailers\]http://www.gametrailers.com/player/(.*?).html\[/gametrailers\]#si",
	'regexp'			=> '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392"><param name="allowScriptAccess" value="never" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=$1" /><param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=$1" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="never" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed></object>'),
	
	// [ignvideo]ING video URL [/ignvideo] Code..
	'ABBC3_IGNVIDEO'	=> array( 'id' => 113	,'display' => false	,'image' => 'ign.gif',
	'found'				=> "#\[ignvideo\](.*?)\[/ignvideo\]#si",
	'regexp'			=> '<embed src="http://videomedia.ign.com/ev/ev.swf" flashvars="$1" type="application/x-shockwave-flash" width="433" height="360" ></embed>'),
	
	// [liveleak]Liveleak video URL [/liveleak] Code..
	'ABBC3_LIVELEAK'	=> array( 'id' => 114	,'display' => false	,'image' => 'liveleak.gif',
	'found'				=> "#\[liveleak\]http://www.liveleak.com/view\?i=(.*?)\[/liveleak\]#si",
	'regexp'			=> '<object type="application/x-shockwave-flash" width="450" height="370" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token=$1"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token=$1" /><param name="wmode" value="transparent" /><param name="quality" value="high" /></object>'),
	
	// Custom BBcodes

	'CENTER'			=> array( 'id' => 121	,'display' => true	,'image' => 'center2.gif'	,'found' => ""	,'regexp' => ''),	
	'EDIT'			=> array( 'id' => 122	,'display' => true	,'image' => 'editar.gif'	,'found' => ""	,'regexp' => ''),
	'FTP=' 			=> array( 'id' => 123	,'display' => true	,'image' => 'ftp.gif'   	,'found' => ""	,'regexp' => ''),
	'HRM' 			=> array( 'id' => 124	,'display' => true	,'image' => 'hrm.gif'   	,'found' => ""	,'regexp' => ''),
	'OFF-TOPIC'			=> array( 'id' => 125	,'display' => true	,'image' => 'off-topic.gif'	,'found' => ""	,'regexp' => ''),

// Break line and continue down ?
//	'ABBC3_BREAK100'	=> array( 'id' => 200	,'display' => false	,'image' => 'spacer.gif'	,'found' => ""											,'regexp' => ""),
// Display icon division for tags ?
//	'ABBC3_DIVISION100'	=> array( 'id' => 201	,'display' => false	,'image' => 'spacer.gif'	,'found' => ""											,'regexp' => ''),

	
);

#	// [stage6 width=X height=X]Video ID[/stage6] code..
#	'ABBC3_STAGE6'		=> array( 'id' => 106	,'display' => false	,'image' => 'stage6.gif',
#	'found'				=> "#\[stage6 width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\](.*?)\[/stage6\]#si",
#	'regexp'			=> '<object  classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://download.divx.com/player/DivXBrowserPlugin.cab" width="$1" height="$2" ><param name="src" value="http://video.stage6.com/$3/.divx" /><param name="autoplay" value="false" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/$3/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" width="$1" height="$2" /></object><br />'),
	
#	// [Bebo]Bebo video URL[Bebo] Code..
#	'ABBC3_BEBO'		=> array( 'id' => 117	,'display' => false	,'image' => 'spacer.gif',
#	'found'				=> "#\[Bebo\](.*?)\[/Bebo\]#si",
#	'regexp'			=> '<embed width="425" height="350" src="http://static.videoegg.com/videoegg/loader.swf" FlashVars="$1" quality="high" allowScriptAccess="never" bgcolor="#FFFFFF" scale="noscale"wmode="window" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><br>'),

#	// [Putfile]Putfile video URL [/Putfile] Code..
#	'ABBC3_PUTFILE'		=> array( 'id' => 118	,'display' => false	,'image' => 'spacer.gif',
#	'found'				=> "#\[Putfile\]http://media.putfile.com/(.*?)\?pos=(.*?)\[/Putfile\]#si",
#	'regexp'			=> '<object type="application/x-shockwave-flash" data="http://feat.putfile.com/flow/putfile.swf?videoFile=$1" height="349" width="420" align="middle"><param name="movie" value="http://feat.putfile.com/flow/putfile.swf?videoFile=$1" /><param name="quality" value="high" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://feat.putfile.com/flow/putfile.swf?videoFile=$1" allowFullScreen="true" allowScriptAccess="always" height="349" width="420"></embed></object>'),

#	// [video]file Video URL[/video] code..
#	'ABBC3_VIDEO'		=> array( 'id' => 116	,'display' => false	,'image' => 'video.gif',
#	'found'				=> "#\[video\](.*?)\[/video\]#si",
#	'regexp'			=> '<object id="MediaPlayer' . $this->abbcode_config['ABBC3_UID'] . '" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"><param name="filename" value="$1"><param name="Showcontrols" value="True"><param name="autoStart" value="True"><embed type="application/x-mplayer10" src="$1" name="MediaPlayer" width=320 height=240></embed></object>'),

?>

language/en/mods/abbcode_custom.php

Code: Select all

<?php
/**
* @package: phpBB3 :: Advanced BBCode box 3 -> language [en][English]
* @version: $Id: abbcode_custom.php, v 1.0.8 2008/03/31 03:01:00 leviatan21 Exp $
* @copyright: leviatan21 < info@mssti.com > (Gabriel) http://www.mssti.com/phpbb3/
* @license: http://opensource.org/licenses/gpl-license.php GNU Public License 
* @author: leviatan21 - http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=345763
*
**/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Reference : http://www.phpbb.com/mods/documentation/phpbb-documentation/language/index.php#lang-use-php

$lang = array_merge($lang, array(

	// Rapid share checker
	'ABBC3_RAPIDSHARE_TAG'		=> 'rapidshare',
	'ABBC3_RAPIDSHARE_MOVER'	=> 'Insert a file from rapidshare',
	'ABBC3_RAPIDSHARE_TIP'		=> '[rapidshare]http://rapidshare.com/files/...[/rapidshare]',
	'ABBC3_RAPIDSHARE_EXAMPLE'	=> 'http://rapidshare.com/files/86587996/ABBC3_v108.zip.html',
	'ABBC3_RAPIDSHARE_VIEW'		=> '<a href="http://rapidshare.com/files/86587996/ABBC3_v108.zip.html" >http://rapidshare.com/files/86587996/ABBC3_v108.zip.html</a> <font color="green" size="4" >File not found !</font><br />',
	'ABBC3_RAPIDSHARE_GOOD'		=> 'File found on server !',
	'ABBC3_RAPIDSHARE_WRONG'	=> 'File not found !',

	// Flash (swf) Wizard
	'ABBC3_FLASH_TAG'			=> 'flash',
	'ABBC3_FLASH_MOVER'			=> 'Insert flash file (swf)',
	'ABBC3_FLASH_TIP'			=> '[flash width=# height=#]URL flash[/flash] or [flash width,height]URL flash[/flash]',
	'ABBC3_FLASH_EXAMPLE'		=> 'http://www.adobe.com/support/flash/ts/documents/test_version/version.swf',
	'ABBC3_FLASH_VIEW'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="200" height="100"><param name="movie" value="http://www.adobe.com/support/flash/ts/documents/test_version/version.swf" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="http://www.adobe.com/support/flash/ts/documents/test_version/version.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="200" height="100" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>',
	
	// Flash (flv) Wizard
	'ABBC3_FLV_TAG'				=> 'flash',
	'ABBC3_FLV_MOVER'			=> 'Insert flash video (flv)',
	'ABBC3_FLV_TIP'				=> '[flv width=# height=#]URL flash video[/flv] or [flv width,height]URL flash video[/flv]',
	'ABBC3_FLV_EXAMPLE' 		=> 'http://www.channel-ai.com/video/eyn/demo1.flv',
	'ABBC3_FLV_VIEW'			=> '<embed src="../images/flvplayer.swf" width="200" height="100" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=../files/demo1.flv&autostart=false" />',
	
	// Streaming Video Wizard
	'ABBC3_VIDEO_TAG'			=> 'video',
	'ABBC3_VIDEO_MOVER'			=> 'Insert video',
	'ABBC3_VIDEO_TIP'			=> '[video width=# height=#]URL video[/video]',
	'ABBC3_VIDEO_EXAMPLE'		=> 'http://s25wm.castup.net/992150003-52.wmv',
	'ABBC3_VIDEO_VIEW'			=> '<object width="200" height="100" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_"><param name="url" value="$3" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$3" /><!--[if !IE]>--><object width="200" height="100" type="video/x-ms-wmv" data="$3"><param name="src" value="$3" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>',
	
	// Streaming Audio Wizard
	'ABBC3_STREAM_TAG'			=> 'sound',
	'ABBC3_STREAM_MOVER'		=> 'Insert sound',
	'ABBC3_STREAM_TIP'			=> '[stream]URL stream[/stream]',
	'ABBC3_STREAM_EXAMPLE'		=> '', //'Example: ???',
	'ABBC3_STREAM_VIEW'			=> '<object width="200" height="45" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_"><param name="url" value="$1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$1" /><!--[if !IE]>--><object width="200" height="45" type="video/x-ms-wmv" data="$1"><param name="src" value="$1" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>',
	
	// Quick time
	'ABBC3_QUICKTIME_TAG'		=> 'Quick time',
	'ABBC3_QUICKTIME_MOVER'		=> 'Insert Quick time',
	'ABBC3_QUICKTIME_TIP'		=> '[quicktime width=# height=#]URL Quick time[/quicktime]',
	'ABBC3_QUICKTIME_EXAMPLE'	=> 'http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt' . ' ' . 'http://www.carnivalmidways.com/images/Music/thisisatest.mp3',
	'ABBC3_QUICKTIME_VIEW'		=> '<object id="qtstream_" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="200" height="100"><param name="src" value="http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="type" value="video/quicktime" /><embed name="qtstream_" src="http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt" pluginspage="http://www.apple.com/quicktime/download/" enablejavascript="true" controller="true" width="200" height="100" type="video/quicktime" autoplay="false"></embed></object>',
	
	// Real Media Wizard
	'ABBC3_RAM_TAG'				=> 'Real Media',
	'ABBC3_RAM_MOVER'			=> 'Insert Real Media',
	'ABBC3_RAM_TIP'				=> '[ram]URL Real Media[/ram]',
	'ABBC3_RAM_EXAMPLE'			=> '', //'Example: ???',
	'ABBC3_RAM_VIEW'			=> '<object id="rmstream_" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="100"><param name="src" value="$3" /><param name="autostart" value="false" /><param name="controls" value="ImageWindow" /><param name="console" value="ctrls_" /><param name="prefetch" value="false" /><embed name="rmstream_" type="audio/x-pn-realaudio-plugin" src="$3" width="200" height="100" autostart="false" controls="ImageWindow" console="ctrls_" prefetch="false"></embed></object><br /><object id="ctrls_" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="36"><param name="controls" value="ControlPanel" /><param name="console" value="ctrls_" /><embed name="ctrls_" type="audio/x-pn-realaudio-plugin" width="200" height="36" controls="ControlPanel" console="ctrls_"></embed></object>',
	
	// Stage6 video Wizard
	'ABBC3_STAGE6_TAG'			=> 'Stage6 Video',
	'ABBC3_STAGE6_MOVER'		=> 'Insert video from Stage6', // from http://www.stage6.com/
	'ABBC3_STAGE6_TIP'			=> '[stage6]Stage6 ID[/stage6]',
	'ABBC3_STAGE6_EXAMPLE'		=> '2068715',
	'ABBC3_STAGE6_VIEW'			=> '<object  classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://download.divx.com/player/DivXBrowserPlugin.cab" width="200" height="100" ><param name="src" value="http://video.stage6.com/2068715/.divx" /><param name="autoplay" value="false" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/2068715/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" width="200" height="100" /></object><br />',
	
	// Google video Wizard
	'ABBC3_GVIDEO_TAG'			=> 'Google Video',
	'ABBC3_GVIDEO_MOVER'		=> 'Insert video from Google',
	'ABBC3_GVIDEO_TIP'			=> '[GVideo]URL video[/GVideo]',
	'ABBC3_GVIDEO_EXAMPLE'		=> 'http://video.google.com/videoplay?docid=-8351924403384451128',
	'ABBC3_GVIDEO_VIEW'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="200" height="100"><param name="movie" value="http://video.google.com/googleplayer.swf?docid=-8351924403384451128" /><param name="play" value="false" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="http://video.google.com/googleplayer.swf?docid=-8351924403384451128" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="200" height="100" play="false" loop="false" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>',
	
	// Youtube video Wizard
	'ABBC3_YOUTUBE_TAG'			=> 'Youtube Video',
	'ABBC3_YOUTUBE_MOVER'		=> 'Insert video from Youtube',
	'ABBC3_YOUTUBE_TIP'			=> '[youtube]URL video[/youtube]',
	'ABBC3_YOUTUBE_EXAMPLE'		=> 'http://www.youtube.com/watch?v=TA4hm97m494',
	'ABBC3_YOUTUBE_VIEW'		=> '<object width="200" height="100"><param name="movie" value="http://www.youtube.com/v/TA4hm97m494" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/TA4hm97m494" type="application/x-shockwave-flash" wmode="transparent" width="200" height="100"></embed></object>',
	
	// Veoh video
	'ABBC3_VEOH_TAG'			=> 'Veoh',
	'ABBC3_VEOH_MOVER'			=> 'Insert video from Veoh',
	'ABBC3_VEOH_TIP'			=> '[veoh]URL video[/veoh]',
	'ABBC3_VEOH_EXAMPLE'		=> 'http://www.veoh.com/videos/v1409404EqT5SJjM',
	'ABBC3_VEOH_VIEW'			=> '<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=v1409404EqT5SJjM&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="200" height="100" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>',
	
	// Collegehumor video
	'ABBC3_COLLEGE_TAG'			=> 'collegehumor',
	'ABBC3_COLLEGE_MOVER'		=> 'Insert video from collegehumor',
	'ABBC3_COLLEGE_TIP'			=> '[collegehumor]collegehumor video URL[/collegehumor]',
	'ABBC3_COLLEGE_EXAMPLE' 	=> 'http://www.collegehumor.com/video:1802097',
	'ABBC3_COLLEGE_VIEW'		=> '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1802097&fullscreen=1" width="200" height="100" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1802097&fullscreen=1" /></object>',

	// Dailymotion video
	'ABBC3_DMOTION_MOVER'		=> 'Insert video from dailymotion', // from http://www.dailymotion.com/
	'ABBC3_DMOTION_TIP'			=> '[dm]Dailymotion ID[/dm]',
	'ABBC3_DMOTION_VIEW'		=> '<object width="200" height="100"><param name="movie" value="http://www.dailymotion.com/swf/x3hm7o" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><embed src="http://www.dailymotion.com/swf/x3hm7o" type="application/x-shockwave-flash" width="200" height="100" allowFullScreen="true" allowScriptAccess="never"></embed></object>',
	
	// Gamespot video
	'ABBC3_GAMESPOT_MOVER'		=> 'Insert video from Gamespot',
	'ABBC3_GAMESPOT_TIP'		=> '[gamespot]Gamespot video URL[gamespot]',
	'ABBC3_GAMESPOT_EXAMPLE'	=> 'http://www.gamespot.com/video/944074/6185798/tom-clancys-rainbow-six-vegas-2-official-trailer-3',
	'ABBC3_GAMESPOT_VIEW'		=> '<embed id="mymovie" width="200" height="100" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D%26adgrp%3D%26sid%3D6185798%26pid%3D944074%26mb%3D%26onid%3D%26nc%3D1202626246593%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="never" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>',
	
	// Gametrailers video
	'ABBC3_GAMETRAILERS_MOVER'	=> 'Insert video from Gametrailers',
	'ABBC3_GAMETRAILERS_TIP'	=> '[gametrailers]Gametrailers video URL[/gametrailers]',
	'ABBC3_GAMETRAILERS_EXAMPLE'=> 'http://www.gametrailers.com/player/30461.html',
	'ABBC3_GAMETRAILERS_VIEW'	=> '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="200" height="100"><param name="allowScriptAccess" value="never" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=30461" /><param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=30461" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="never" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="100"></embed></object>',
	
	// IGN video
	'ABBC3_IGNVIDEO_MOVER'		=> 'Insert video from Ign',
	'ABBC3_IGNVIDEO_TIP'		=> '[ignvideo]ING video URL[/ignvideo]',
	'ABBC3_IGNVIDEO_EXAMPLE'	=> 'object_ID=967025&downloadURL=http://tvmovies.ign.com/tv/video/article/850/850894/knightrider_trailer_020808_flvlow.flv',
	'ABBC3_IGNVIDEO_VIEW'		=> '<embed src="http://videomedia.ign.com/ev/ev.swf" flashvars="object_ID=967025&downloadURL=http://tvmovies.ign.com/tv/video/article/850/850894/knightrider_trailer_020808_flvlow.flv" type="application/x-shockwave-flash" width="200" height="100" ></embed>',
	
	// LiveLeak video
	'ABBC3_LIVELEAK_MOVER'		=> 'Insert video from Liveleak',
	'ABBC3_LIVELEAK_TIP'		=> '[liveleak]Liveleak video URL[/liveleak]',
	'ABBC3_LIVELEAK_EXAMPLE'	=> 'http://www.liveleak.com/view?i=413_1202590393',
	'ABBC3_LIVELEAK_VIEW'		=> '<object type="application/x-shockwave-flash" width="200" height="100" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token=i=413_1202590393"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token=$1" /><param name="wmode" value="transparent" /><param name="quality" value="high" /></object>',
	
	// Custom BBcodes


	// Center
	'CENTER_MOVER'				=> 'Text/images/tables centered',
	'CENTER_TIP'				=> '[center]Enter your text,images and tables to be centered[/center]',
	'CENTER_VIEW'				=> '<div align="center">This is a sample text</div>',
	
	'EDIT_MOVER'				=> 'Remarca texto añadido/editado con posterioridad a un mensaje ya posteado',
	'EDIT_TIP'					=> '[edit]Entra el texto[/edit]',
	'EDIT_VIEW'					=> '<div style="background-color: #B5C7CE; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;"><strong>Editado/Añadido: </strong>Texto añadido o editado</div>',

	'FTP=_MOVER'				=> 'Enlace a servidor ftp',
	'FTP=_TIP'					=> '[ftp=ftp://...]Nombre de Ftp[/ftp]',
	'FTP=_VIEW'					=> '<a href="ftp://calproye.es" target="_blank">Calproye</a>',

	'HRM_MOVER'					=> 'Línea divisoria mejorada',
	'HRM_TIP'					=> '[hrm]color,número[/hrm] donde "color" es el color de la linea y número es la longitud en % de la línea',
	'HRM_VIEW'					=> '<hr style="color: red  background-color: red; border: 1px solid red" width="70%" />',

	'OFF-TOPIC_MOVER'				=> 'Off-topic tachado',
	'OFF-TOPIC_TIP'				=> '[off-topic]Lo que esta fuera de contexto[/off-topic]',
	'OFF-TOPIC_VIEW'				=> '<div style="background-color: #FAAAAA; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;"><strong>OFF-TOPIC: </strong><del><i>Fuera de topic</i></del></div>',

));

?>
My board is Spanish

language/es/mods/abbcode_custom.php

Code: Select all

<?php
/**
* @package: phpBB3 :: Advanced BBCode box 3 -> language [sp][Spanish]
* @version: $Id: abbcode_custom.php, v 1.0.8 2008/03/31 03:01:00 leviatan21 Exp $
* @copyright: leviatan21 < info@mssti.com > (Gabriel) http://www.mssti.com/phpbb3/
* @license: http://opensource.org/licenses/gpl-license.php GNU Public License 
* @author: leviatan21 - http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=345763
*
**/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Reference : http://www.phpbb.com/mods/documentation/phpbb-documentation/language/index.php#lang-use-php

$lang = array_merge($lang, array(

	// Rapid share checker
	'ABBC3_RAPIDSHARE_TAG'		=> 'rapidshare',
	'ABBC3_RAPIDSHARE_MOVER'	=> 'Insertar un archivo desde rapidshare',
	'ABBC3_RAPIDSHARE_TIP'		=> '[rapidshare]http://rapidshare.com/files/...][/rapidshare]',
	'ABBC3_RAPIDSHARE_EXAMPLE'	=> 'http://rapidshare.com/files/86587996/ABBC3_v108.zip.html',
	'ABBC3_RAPIDSHARE_VIEW'		=> '<a href="http://rapidshare.com/files/86587996/ABBC3_v108.zip.html" >http://rapidshare.com/files/86587996/ABBC3_v108.zip.html</a> <font color="green" size="4" >Archivo no encontrado !</font><br />',
	'ABBC3_RAPIDSHARE_GOOD'		=> 'Archivo encontrado el servidor !',
	'ABBC3_RAPIDSHARE_WRONG'	=> 'Archivo no encontrado !',
	
	// Flash (swf) Wizard
	'ABBC3_FLASH_TAG'			=> 'flash',
	'ABBC3_FLASH_MOVER'			=> 'Insertar video de flash (swf)',
	'ABBC3_FLASH_TIP'			=> '[flash width=# height=#]URL flash[/flash] o [flash width,height]URL flash[/flash]',
	'ABBC3_FLASH_EXAMPLE'		=> 'http://www.adobe.com/support/flash/ts/documents/test_version/version.swf',
	'ABBC3_FLASH_VIEW'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="200" height="100"><param name="movie" value="http://www.adobe.com/support/flash/ts/documents/test_version/version.swf" /><param name="play" value="true" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="http://www.adobe.com/support/flash/ts/documents/test_version/version.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="200" height="100" play="true" loop="true" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>',
	
	// Flash (flv) Wizard
	'ABBC3_FLV_TAG'				=> 'flash',
	'ABBC3_FLV_MOVER'			=> 'Insertar video de flash (flv)',
	'ABBC3_FLV_TIP'				=> '[flv width=# height=#]URL flash video[/flv] o [flv width,height]URL flash video[/flv]',
	'ABBC3_FLV_EXAMPLE' 		=> 'http://www.channel-ai.com/video/eyn/demo1.flv',
	'ABBC3_FLV_VIEW'			=> '<embed src="../images/flvplayer.swf" width="200" height="100" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=../files/demo1.flv&autostart=false" />',
	
	// Streaming Video Wizard
	'ABBC3_VIDEO_TAG'			=> 'video',
	'ABBC3_VIDEO_MOVER'			=> 'Insertar video',
	'ABBC3_VIDEO_TIP'			=> '[video width=# height=#]URL video[/video]',
	'ABBC3_VIDEO_EXAMPLE'		=> '', //'Example: ???',
	'ABBC3_VIDEO_VIEW'			=> '<object width="200" height="100" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_"><param name="url" value="$3" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$3" /><!--[if !IE]>--><object width="200" height="100" type="video/x-ms-wmv" data="$3"><param name="src" value="$3" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>',
	
	// Streaming Audio Wizard
	'ABBC3_STREAM_TAG'			=> 'sonido',
	'ABBC3_STREAM_MOVER'		=> 'Insertar sonido',
	'ABBC3_STREAM_TIP'			=> '[stream]URL Archivo[/stream]',
	'ABBC3_STREAM_EXAMPLE'		=> '', //'Example: ???',
	'ABBC3_STREAM_VIEW'			=> '<object width="200" height="45" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="wmstream_"><param name="url" value="$1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /><param name="src" value="$1" /><!--[if !IE]>--><object width="200" height="45" type="video/x-ms-wmv" data="$1"><param name="src" value="$1" /><param name="controller" value="1" /><param name="showcontrols" value="1" /><param name="showdisplay" value="0" /><param name="showstatusbar" value="0" /><param name="autosize" value="1" /><param name="autostart" value="0" /><param name="visible" value="1" /><param name="animationstart" value="0" /><param name="loop" value="0" /></object><!--<![endif]--></object>',
	
	// Quick time
	'ABBC3_QUICKTIME_TAG'		=> 'Quick time',
	'ABBC3_QUICKTIME_MOVER'		=> 'Insertar Quick time',
	'ABBC3_QUICKTIME_TIP'		=> '[quicktime width=# height=#]URL Quick time[/quicktime]',
	'ABBC3_QUICKTIME_EXAMPLE'	=> 'http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt' . ' ' . 'http://www.carnivalmidways.com/images/Music/thisisatest.mp3',
	'ABBC3_QUICKTIME_VIEW'		=> '<object id="qtstream_" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="200" height="100"><param name="src" value="http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt" /><param name="controller" value="true" /><param name="autoplay" value="false" /><param name="type" value="video/quicktime" /><embed name="qtstream_" src="http://www.nature.com/neuro/journal/v3/n3/extref/Li_control.mov.qt" pluginspage="http://www.apple.com/quicktime/download/" enablejavascript="true" controller="true" width="200" height="100" type="video/quicktime" autoplay="false"></embed></object>',
	
	// Real Media Wizard
	'ABBC3_RAM_TAG'				=> 'Real Media',
	'ABBC3_RAM_MOVER'			=> 'Insertar Real Media',
	'ABBC3_RAM_TIP'				=> '[ram]URL Real Media[/ram]',
	'ABBC3_RAM_EXAMPLE'			=> '', //'Example: ???',
	'ABBC3_RAM_VIEW'			=> '<object id="rmstream_" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="100"><param name="src" value="$3" /><param name="autostart" value="false" /><param name="controls" value="ImageWindow" /><param name="console" value="ctrls_" /><param name="prefetch" value="false" /><embed name="rmstream_" type="audio/x-pn-realaudio-plugin" src="$3" width="200" height="100" autostart="false" controls="ImageWindow" console="ctrls_" prefetch="false"></embed></object><br /><object id="ctrls_" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="36"><param name="controls" value="ControlPanel" /><param name="console" value="ctrls_{_file.ATTACH_ID}" /><embed name="ctrls_" type="audio/x-pn-realaudio-plugin" width="200" height="36" controls="ControlPanel" console="ctrls_"></embed></object>',
	
	// Stage6 video Wizard
	'ABBC3_STAGE6_TAG'			=> 'Stage6 Video',
	'ABBC3_STAGE6_MOVER'		=> 'Insertar video desde Stage6', // from http://www.stage6.com/
	'ABBC3_STAGE6_TIP'			=> '[stage6]Stage6 ID[/stage6]',
	'ABBC3_STAGE6_EXAMPLE'		=> '2068715',
	'ABBC3_STAGE6_VIEW'			=> '<object  classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://download.divx.com/player/DivXBrowserPlugin.cab" width="200" height="100" ><param name="src" value="http://video.stage6.com/2068715/.divx" /><param name="autoplay" value="false" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/2068715/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" width="200" height="100" /></object><br />',
	
	// Google video Wizard
	'ABBC3_GVIDEO_TAG'			=> 'Google Video',
	'ABBC3_GVIDEO_MOVER'		=> 'Insertar video desde Google',
	'ABBC3_GVIDEO_TIP'			=> '[GVideo]URL video[/GVideo]',
	'ABBC3_GVIDEO_EXAMPLE'		=> 'http://video.google.com/videoplay?docid=-8351924403384451128',
	'ABBC3_GVIDEO_VIEW'			=> '<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" width="200" height="100"><param name="movie" value="http://video.google.com/googleplayer.swf?docid=-8351924403384451128" /><param name="play" value="false" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><embed src="http://video.google.com/googleplayer.swf?docid=-8351924403384451128" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="200" height="100" play="false" loop="false" quality="high" allowscriptaccess="never" allownetworking="internal"></embed></object>',
	
	// Youtube video Wizard
	'ABBC3_YOUTUBE_TAG'			=> 'Youtube Video',
	'ABBC3_YOUTUBE_MOVER'		=> 'Insertar video desde Youtube',
	'ABBC3_YOUTUBE_TIP'			=> '[youtube]URL video[/youtube]',
	'ABBC3_YOUTUBE_EXAMPLE'		=> 'http://www.youtube.com/watch?v=TA4hm97m494',
	'ABBC3_YOUTUBE_VIEW'		=> '<object width="200" height="100"><param name="movie" value="http://www.youtube.com/v/TA4hm97m494" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/TA4hm97m494" type="application/x-shockwave-flash" wmode="transparent" width="200" height="100"></embed></object>',
	
	// Veoh video
	'ABBC3_VEOH_TAG'			=> 'Veoh',
	'ABBC3_VEOH_MOVER'			=> 'Insertar video desde Veoh',
	'ABBC3_VEOH_TIP'			=> '[veoh]URL video[/veoh].',
	'ABBC3_VEOH_EXAMPLE'		=> 'http://www.veoh.com/videos/v1409404EqT5SJjM',
	'ABBC3_VEOH_VIEW'			=> '<embed src="http://www.veoh.com/videodetails2.swf?permalinkId=v1409404EqT5SJjM&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="200" height="100" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>',
	
	// Collegehumor video
	'ABBC3_COLLEGE_TAG'			=> 'collegehumor',
	'ABBC3_COLLEGE_MOVER'		=> 'Insertar video desde collegehumor',
	'ABBC3_COLLEGE_TIP'			=> '[collegehumor]collegehumor video URL[/collegehumor]',
	'ABBC3_COLLEGE_EXAMPLE' 	=> 'http://www.collegehumor.com/video:1802097',
	'ABBC3_COLLEGE_VIEW'		=> '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1802097&fullscreen=1" width="200" height="100" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1802097&fullscreen=1" /></object>',

	// Dailymotion video
	'ABBC3_DMOTION_MOVER'		=> 'Insertar video desde dailymotion', // from http://www.dailymotion.com/
	'ABBC3_DMOTION_TIP'			=> '[dm]Dailymotion ID[/dm]',
	'ABBC3_DMOTION_VIEW'		=> '<object width="200" height="100"><param name="movie" value="http://www.dailymotion.com/swf/x3hm7o" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="never" /><embed src="http://www.dailymotion.com/swf/x3hm7o" type="application/x-shockwave-flash" width="200" height="100" allowFullScreen="true" allowScriptAccess="never"></embed></object>',
	
	// Gamespot video
	'ABBC3_GAMESPOT_MOVER'		=> 'Insertar video desde Gamespot',
	'ABBC3_GAMESPOT_TIP'		=> '[gamespot]Gamespot video URL [gamespot]',
	'ABBC3_GAMESPOT_EXAMPLE'	=> 'http://www.gamespot.com/video/944074/6185798/tom-clancys-rainbow-six-vegas-2-official-trailer-3',
	'ABBC3_GAMESPOT_VIEW'		=> '<embed id="mymovie" width="200" height="100" flashvars="paramsURI=http%3A%2F%2Fwww%2Egamespot%2Ecom%2Fpages%2Fvideo%5Fplayer%2Fproteus%5Fxml%2Ephp%3Fadseg%3D%26adgrp%3D%26sid%3D6185798%26pid%3D944074%26mb%3D%26onid%3D%26nc%3D1202626246593%26embedded%3D1%26showWatermark%3D0%26autoPlay%3D0" allowfullscreen="true" allowscriptaccess="never" quality="high" name="mymovie" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/gs/proteus_embed.swf" type="application/x-shockwave-flash"/>',
	
	// Gametrailers video
	'ABBC3_GAMETRAILERS_MOVER'	=> 'Insertar video desde Gametrailers',
	'ABBC3_GAMETRAILERS_TIP'	=> '[gametrailers]Gametrailers video URL[/gametrailers]',
	'ABBC3_GAMETRAILERS_EXAMPLE'=> 'http://www.gametrailers.com/player/30461.html',
	'ABBC3_GAMETRAILERS_VIEW'	=> '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="200" height="100"><param name="allowScriptAccess" value="never" /><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=30461" /><param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid=30461" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="never" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="100"></embed></object>',

	// IGN video
	'ABBC3_IGNVIDEO_MOVER'		=> 'Insertar video desde Ign',
	'ABBC3_IGNVIDEO_TIP'		=> '[ignvideo]ING video URL[/ignvideo]',
	'ABBC3_IGNVIDEO_EXAMPLE'	=> 'object_ID=967025&downloadURL=http://tvmovies.ign.com/tv/video/article/850/850894/knightrider_trailer_020808_flvlow.flv',
	'ABBC3_IGNVIDEO_VIEW'		=> '<embed src="http://videomedia.ign.com/ev/ev.swf" flashvars="object_ID=967025&downloadURL=http://tvmovies.ign.com/tv/video/article/850/850894/knightrider_trailer_020808_flvlow.flv" type="application/x-shockwave-flash" width="200" height="100" ></embed>',
	
	// LiveLeak video
	'ABBC3_LIVELEAK_MOVER'		=> 'Insertar video desde Liveleak',
	'ABBC3_LIVELEAK_TIP'		=> '[liveleak]Liveleak video URL[/liveleak]',
	'ABBC3_LIVELEAK_EXAMPLE'	=> 'http://www.liveleak.com/view?i=413_1202590393',
	'ABBC3_LIVELEAK_VIEW'		=> '<object type="application/x-shockwave-flash" width="200" height="100" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token=i=413_1202590393"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token=$1" /><param name="wmode" value="transparent" /><param name="quality" value="high" /></object>',
	
	// Custom BBcodes

	'CENTER_MOVER'				=> 'Centra texto/imagenes/tablas',
	'CENTER_TIP'				=> '[center]Entra tu texto, imagen, tabla para ser centrada[/center]',
	'CENTER_VIEW'				=> '<div align="center">This is a sample text</div>',

	'EDIT_MOVER'				=> 'Remarca texto añadido/editado con posterioridad a un mensaje ya posteado',
	'EDIT_TIP'					=> '[edit]Entra el texto[/edit]',
	'EDIT_VIEW'					=> '<div style="background-color: #B5C7CE; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;"><strong>Editado/Añadido: </strong>Texto añadido o editado</div>',

	'FTP=_MOVER'					=> 'Enlace a servidor ftp',
	'FTP=_TIP'					=> '[ftp=ftp://...]Nombre de Ftp[/ftp]',
	'FTP=_VIEW'					=> '<a href="ftp://calproye.es" target="_blank">Calproye</a>',

	'HRM_MOVER'					=> 'Línea divisoria mejorada',
	'HRM_TIP'					=> '[hrm]color,número[/hrm] donde "color" es el color de la linea y número es la longitud en % de la línea',
	'HRM_VIEW'					=> '<hr style="color: blue  background-color: blue; border: 1px solid blue" width="70%" />',

	'OFF-TOPIC_MOVER'				=> 'Off-topic tachado',
	'OFFTOPIC_TIP'				=> '[off-topic]Lo que esta fuera de contexto[/off-topic]',
	'OFF-TOPIC_VIEW'				=> '<div style="background-color: #FAAAAA; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #666; padding: 4px;"><strong>OFF-TOPIC: </strong><del><i>Fuera de topic</i></del></div>',

	
));

?>
and finaly..... styles/prosilver/template/posting_abbcode_buttons.html

Code: Select all

<!-- // MOD : ABBC3 (V1.0.8) - START -->

<script type="text/javascript">
// <![CDATA[

/**
* Help line tips values
**/
var help_line2 = {

<!-- BEGIN abbc3_tags -->
	{abbc3_tags.TAG_NAME} : "{abbc3_tags.TAG_MOVER}" + " : {abbc3_tags.TAG_TIP}" + '\n' + "{abbc3_tags.TAG_NOTE}" + ( ("{abbc3_tags.TAG_EXAMPLE}") ? "{L_ABBC3_EXAMPLE}:{abbc3_tags.TAG_EXAMPLE}" :"" ),
<!-- END abbc3_tags -->
	
	abbc3_fonttype  : "{L_ABBC3_FONTTYPE_MOVER}"  + "{L_ABBC3_FONTTYPE_TIP}"  + '\n' + "{L_ABBC3_FONTTYPE_NOTE}" ,
	abbc3_fontsize  : "{L_ABBC3_FONTSIZE_MOVER}"  + "{L_ABBC3_FONTSIZE_TIP}"  + '\n' + "{L_ABBC3_FONTSIZE_NOTE}" ,
	abbc3_fonthili  : "{L_ABBC3_FONTHILI_MOVER}"  + "{L_ABBC3_FONTHILI_TIP}"  + '\n' + "{L_ABBC3_FONTHILI_NOTE}" ,
	abbc3_fontcolor : "{L_ABBC3_FONTCOLOR_MOVER}" + "{L_ABBC3_FONTCOLOR_TIP}" + '\n' + "{L_ABBC3_FONTCOLOR_NOTE}" ,

	abbc3_tip		:	"{L_BBCODE_STYLES_TIP}"
}

/**
* Show help line tips
**/
function helpline2( help )
{
	if ( !help )
	{
		help = 'abbc3_tip';
	}
	
	var helpbox = document.forms[form_name].helpbox;
	
	helpbox.value = ( help_line2[help] ) ? help_line2[help] : help_line[help];
}

/**
* Main function
**/

/** Get client info	**/
var clientPC = navigator.userAgent.toLowerCase();

/** Get browser version	**/
var clientVer = parseInt(navigator.appVersion);

var is_ie  = ((clientPC.indexOf('msie') != -1) && (clientPC.indexOf('opera') == -1));
var is_win = ((clientPC.indexOf('win')  != -1) || (clientPC.indexOf('16bit') != -1));

var theSelection, oSelectRange, oSelectLength = 0, copy_paste;


GB_myShow = function(caption, url, height, width, fullscreen, callback_fn)
{
	var options = { caption:caption, height:height || 450, width:width || 700, fullscreen:fullscreen || false, center_win:true, show_loading:true, callback_fn:callback_fn }
	var win = new GB_Window( options );
	return win.show(url);
}

function bbstyle2( bbcode, ftvalue )
{
	theSelection = false;

	var txtarea = document.forms[form_name].elements[text_name];
	
	/** Get text selection - not only the post content :(	**/
	if (window.getSelection)
	{
		theSelection = window.getSelection().toString();
	}
	else if (document.getSelection)
	{
		theSelection = document.getSelection();
	}
	else if (document.selection)
	{
		theSelection = document.selection.createRange().text;
	}

	if ((clientVer >= 4) && is_ie && is_win)
	{
		/** Get text selection	**/
		theSelection = document.selection.createRange().text;
		oSelectLength = theSelection.length;
	}
	else if (document.forms[form_name].elements[text_name].selectionEnd && (document.forms[form_name].elements[text_name].selectionEnd - document.forms[form_name].elements[text_name].selectionStart > 0))
	{
		var selLength = txtarea.textLength;
		var selStart = txtarea.selectionStart;
		var selEnd = txtarea.selectionEnd;
		var scrollTop = txtarea.scrollTop;
		
		if (selEnd == 1 || selEnd == 2) 
		{
			selEnd = selLength;
		}
		
		var s1 = (txtarea.value).substring(0,selStart);
		var s2 = (txtarea.value).substring(selStart, selEnd)
		var s3 = (txtarea.value).substring(selEnd, selLength);
		
		theSelection = s2
		oSelectLength = selEnd - selStart;
	}
	
	var atcaret_pos = getCaretPosition(document.forms[form_name].elements[text_name]).start;

	switch ( bbcode )
	{
		case "abbc3_justify" :
			bbfontstyle( "[align=justify]", "[/align]" );
			break;
		case "abbc3_right":
			bbfontstyle( "[align=right]", "[/align]" );
			break;
		case "abbc3_center" :
			bbfontstyle( "[align=center]", "[/align]" );
			break;
		case "abbc3_left" :
			bbfontstyle( "[align=left]", "[/align]" );
			break;
		case "abbc3_sup" :
			bbfontstyle( "[sup]", "[/sup]" );
			break;
		case "abbc3_sub" :
			bbfontstyle( "[sub]", "[/sub]" );
			break;
		case "abbc3_bold" :
			bbfontstyle( "[b]", "[/b]" );
			break;
		case "abbc3_italic" :
			bbfontstyle( "[i]", "[/i]" );
			break;
		case "abbc3_underline" :
			bbfontstyle( "[u]", "[/u]" );
			break;
		case "abbc3_strike" :
			bbfontstyle( "[s]", "[/s]" );
			break;
		case "abbc3_pre" :
			bbfontstyle( "[pre]", "[/pre]" );
			break;
		case "abbc3_tab" :
			bbfontstyle( "[tab=30]", "" );
			break;
		case "abbc3_fade" :
			bbfontstyle( "[fade]", "[/fade]" );
			break;
		case "abbc3_rtl" :
			bbfontstyle( "[dir=rtl]", "[/dir]" );
			break;
		case "abbc3_ltr" :
			bbfontstyle( "[dir=ltr]", "[/dir]" );
			break;
		case "abbc3_marqd" :
			bbfontstyle( "[marq=down]", "[/marq]" );
			break;
		case "abbc3_marqu" :
			bbfontstyle( "[marq=up]", "[/marq]" );
			break;
		case "abbc3_marql" :
			bbfontstyle( "[marq=left]", "[/marq]" );
			break;
		case "abbc3_marqr" :
			bbfontstyle( "[marq=right]", "[/marq]" );
			break;
		case "abbc3_code" :
			bbfontstyle( "[code]", "
" );
break;
case "abbc3_quote" :
bbfontstyle( "[quote]", "[/quote]" );
break;
case "abbc3_spoil" :
bbfontstyle( "[spoil]", "[/spoil]" );
break;
case "abbc3_listb" :
bbfontstyle( "
  • ", "
" );
break;
case "abbc3_listo" :
bbfontstyle( "
  1. ", "
" );
break;
case "abbc3_listitem" :
bbfontstyle( "[*]", "" );
break;
case "abbc3_hr" :
bbfontstyle( "[hr]", "" );
break;
case "abbc3_imgshack" :
GB_myShow ( bbcode, 'http://imageshack.us/', 300, 650, true )
break;

/** This bbcodes needs wizard - START **/
case "abbc3_url" :
case "abbc3_ed2k" :
case "abbc3_email" :
case "abbc3_web" :
case "abbc3_img" :
case "abbc3_thumbnail" :
case "abbc3_upload" :
case "abbc3_rapidshare" :
case "abbc3_testlink" :
case "abbc3_click" :
case "abbc3_bbvideo" :
case "abbc3_table" :

case "abbc3_flash" :
case "abbc3_flv" :
case "abbc3_veoh" :
case "abbc3_college" :
case "abbc3_video" :
case "abbc3_stream" :
case "abbc3_quicktime" :
case "abbc3_ram" :
case "abbc3_stage6" :
case "abbc3_gvideo" :
case "abbc3_youtube" :

/** Extra Custom bbcodes **/

case "abbc3_grad" :
if ( bbcode == "abbc3_grad")
{
if ( !oSelectLength )
{
alert( "abbc3_grad : {L_ABBC3_GRAD_MIN_ERROR}" + oSelectLength );
return;
}

if ( oSelectLength > 120 )
{
alert("abbc3_grad : {L_ABBC3_GRAD_MAX_ERROR}" + oSelectLength);
return;
}
}
else if ( ( bbcode != "abbc3_table" ) && ( bbcode != "abbc3_upload" ) )
{
if ( oSelectLength )
{
bbcode = bbcode.replace( "abbc3_" , "");
bbfontstyle( '[' + bbcode + ']', '[/' + bbcode + ']', '');
return ;
}
}
GB_myShow ( bbcode, '../../../../.{S_ABBC3_WIZARD_PAGE}&abbc3=' + bbcode + '&caret=' + atcaret_pos + '&form_name=' + form_name + '&text_name=' + text_name, 300, 680, true )
break;
/** This bbcodes needs wizard - END **/

case "abbc3_plain" :
if ( oSelectLength )
{
if ( ( clientVer >= 4 ) && is_ie && is_win )
{
temp = theSelection;
document.selection.createRange().text = temp.replace(/\[[^\]]*\]/gi,"");
}
else if ( txtarea.selectionEnd && ( txtarea.selectionEnd - txtarea.selectionStart > 0 ) )
{
temp = theSelection;
temp = temp.replace(/\[[^\]]*\]/gi,"");
txtarea.value = s1 + temp + s3;

txtarea.selectionStart = selEnd + open.length + close.length;
txtarea.selectionEnd = txtarea.selectionStart;
}
}
else
{
alert ( "{L_ABBC3_NOSELECT_ERROR}" );
return;
}
break;
case "abbc3_cut" :
if ( oSelectLength )
{
if ( ( clientVer >= 4 ) && is_ie && is_win )
{
document.selection.createRange().text = '';
}
else if ( txtarea.selectionEnd && ( txtarea.selectionEnd - txtarea.selectionStart > 0 ) )
{
txtarea.value = (txtarea.value).substring(0,selStart) + (txtarea.value).substring( selEnd, selLength );
}
}
else
{
alert ( "{L_ABBC3_NOSELECT_ERROR}" );
return;
}
break;
case "abbc3_copy" :
if ( oSelectLength )
{
copy_paste = theSelection;
}
else
{
alert ( "{L_ABBC3_NOSELECT_ERROR}" );
return;
}
break;
case "abbc3_paste" :
if ( copy_paste )
{
bbfontstyle( copy_paste, '' );
}
else
{
alert ( "{L_ABBC3_PASTE_ERROR}" );
}
break;

/** Custom bbcodes **/

case "center" :
bbfontstyle( "[center]", "[/center]" );
break;
case "edit" :
bbfontstyle( "[edit]", "[/edit]" );
break;
case "ftp=" :
bbfontstyle( "[ftp=]", "[/ftp]" );
break;
case "hrm" :
bbfontstyle( "[hrm]", "[/hrm]" );
break;
case "off-topic" :
bbfontstyle( "[off-topic]", "[/off-topic]" );
break;

case "abbc3_hide" :
bbfontstyle( "[hide]", "[/hide]" );
break;
case "abbc3_moderator" :
bbfontstyle( "[mod=\"{S_POST_AUTHOR}\"]", "[/mod]" );
break;
case "abbc3_offtopic" :
bbfontstyle( "[offtopic]", "[/offtopic]" );
break;
case "abbc3_dmotion" :
bbfontstyle( "[dm]", "[/dm]" );
break;
case "abbc3_gamespot" :
bbfontstyle( "[gamespot]", "[/gamespot]" );
break;
case "abbc3_gametrailers" :
bbfontstyle( "[gametrailers]", "[/gametrailers]" );
break;
case "abbc3_ignvideo" :
bbfontstyle( "[ignvideo]", "[/ignvideo]" );
break;
case "abbc3_putfile" :
bbfontstyle( "[Putfile]", "[/Putfile]" );
break;
case "abbc3_liveleak" :
bbfontstyle( "[liveleak]", "[/liveleak]" );
break;
case "abbc3_nfo" :
bbfontstyle( "[nfo]", "[/nfo]" );
break;
case "abbc3_glow" :
bbfontstyle( "[glow=red]", "[/glow]" );
break;
case "abbc3_shadow" :
bbfontstyle( "[shadow=blue]", "[/shadow]" );
break;
case "abbc3_dropshadow" :
bbfontstyle( "[dropshadow=blue]", "[/dropshadow]" );
break;
case "abbc3_blur" :
bbfontstyle( "[blur=blue]", "[/blur]" );
break;
case "abbc3_wave" :
bbfontstyle( "[wave=blue]", "[/wave]" );
break;
case "abbc3_search" :
bbfontstyle( "[search]", "[/search]" );
break;

default :
alert ("{L_ABBC3_ERROR_TAG}"+bbcode);
break;
}
oSelectRange = false;
oSelectLength = 0;

}

/**
* Dropdown Color pallette for highlight text & font text
*/
function ABBCcolorPalette( bbcode )
{
var r = 4, g = 4, b = 4;
var numberList = new Array(6);
var color = '';

numberList[0] = '00';
numberList[1] = '40';
numberList[2] = '80';
numberList[3] = 'BF';
numberList[4] = 'FF';

for ( r = 4; r > -1; r-- )
{
for ( g = 4; g > -1; g-- )
{
for ( b = 4; b > -1; b-- )
{
color = String(numberList[r]) + String(numberList[g]) + String(numberList);
if ( bbcode == 'abbc3_fontcolor')
{
document.write( '<option style="color:#' + color + '" value="' + color + '" >#' + color + '</option>' );
}
else
{
document.write( '<option style="background-color:#' + color + '" value="' + color + '" >#' + color + '</option>' );
}
}
}
}
}

// ]]>
</script>

<table id="abbc3posttable" width="100%" border="1" cellspacing="0" cellpadding="0">
<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{T_IMAGESET_PATH}/abbcode/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="cat bg3<!-- ENDIF --> valign="middle" colspan="2">
<span class="abbc3_link">
<a href="{S_ABBC3_HELP_PAGE}" rel="external" onclick="externalLinks(this);" title="{L_ABBC3_HELP_TITLE}" ><img src="{T_IMAGESET_PATH}/abbcode/images/help.gif" alt="{L_ABBC3_HELP_TITLE}" title="{L_ABBC3_HELP_TITLE}" /></a>
<a href="http://www.mssti.com/phpbb3/" rel="external" onclick="externalLinks(this);" title="{L_ABBC3_HELP_ALT}" ><img src="{T_IMAGESET_PATH}/abbcode/images/info.gif" alt="{L_ABBC3_HELP_ALT}" title="{L_ABBC3_HELP_ALT}" /></a>
</span>
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

<!-- IF S_ABBC3_BOXRESIZE -->
<input type="button" value=" + " class="button1" onclick="textbox_resize(10,text_name);" />&nbsp;<input type="button" value=" - " class="button1" onclick="textbox_resize(-10,text_name);" />
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_ABBC3_FONTTYPE -->
<select id="abbc3_fonttype" name="abbc3_fonttype" onchange="bbfontstyle('[font=' + this.form.abbc3_fonttype.options[this.form.abbc3_fonttype.selectedIndex].value + ']', '[/font]'); this.form.abbc3_fonttype.selectedIndex = 0" onmouseover="helpline2('abbc3_fonttype')" onmouseout="helpline2()" title="{L_ABBC3_FONTTYPE_MOVER}">
<option selected="selected" >- {L_ABBC3_FONTTYPE_MOVER} -</option>
<optgroup label="- ABBC Box 3 -">
<option style="font-family: Bradley Hand ITC;" value="Bradley Hand ITC" >Bradley Hand ITC</option>
<option style="font-family: Century Gothic;" value="Century Gothic" >Century Gothic</option>
<option style="font-family: Curlz MT;" value="Curlz MT">Curlz MT</option>
<option style="font-family: cursive;" value="cursive">Cursive</option>
<option style="font-family: fantasy;" value="fantasy">Fantasy</option>
<option style="font-family: French Script MT;" value="French Script MT">French Script MT</option>
<option style="font-family: Garamond;" value="Garamond">Garamond</option>
<option style="font-family: Garamond Bold;" value="Garamond Bold">Garamond Bold</option>
<option style="font-family: Goudy Stout;" value="Goudy Stout">Goudy Stout</option>
<option style="font-family: Helvetica;" value="Helvetica">Helvetica</option>
<option style="font-family: monospace;" value="monospace">Monospace</option>
<option style="font-family: OCR A Extended;" value="OCR A Extended">OCR A Extended</option>
<option style="font-family: Script MT Bold;" value="Script MT Bold">Script MT Bold</option>
</optgroup>
<!-- http://typetester.maratz.com/ -->
<optgroup label="- Safe list -">
<option style="font-family: Arial;" value="Arial">Arial</option>
<option style="font-family: Arial Black;" value="Arial Black">Arial Black</option>
<option style="font-family: Comic Sans MS;" value="Comic Sans MS">Comic Sans MS</option>
<option style="font-family: Courier New;" value="Courier New">Courier New</option>
<option style="font-family: Georgia;" value="Georgia">Georgia</option>
<option style="font-family: Impact;" value="Impact">Impact</option>
<option style="font-family: Times New Roman;" value="Times New Roman">Times New Roman</option>
<option style="font-family: Trebuchet MS;" value="Trebuchet MS">Trebuchet MS</option>
<option style="font-family: Verdana;" value="Verdana">Verdana</option>
</optgroup>
<optgroup label="- Win default -">
<option style="font-family: Lucida Console;" value="Lucida Console">Lucida Console</option>
<option style="font-family: Lucida Sans Unicode;" value="Lucida Sans Unicode">Lucida Sans Unicode</option>
<option style="font-family: Microsoft Sans Serif;" value="Microsoft Sans Serif">Microsoft Sans Serif</option>
<option style="font-family: MS Mincho;" value="MS Mincho">MS Mincho</option>
<option style="font-family: Palatino Linotype;" value="Palatino Linotype">Palatino Linotype</option>
<option style="font-family: Symbol;" value="Symbol">Symbol</option>
<option style="font-family: Tahoma;" value="Tahoma">Tahoma</option>
</optgroup>
</select>
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_ABBC3_FONTSIZE -->
<select id="abbc3_fontsize" name="abbc3_fontsize" style="width:100px;" onchange="bbfontstyle('[size=' + this.form.abbc3_fontsize.options[this.form.abbc3_fontsize.selectedIndex].value + ']', '[/size]'); this.form.abbc3_fontsize.selectedIndex = 0;" onmouseover="helpline2('abbc3_fontsize')" onmouseout="helpline2()" title="{L_ABBC3_FONTSIZE_MOVER}">
<option selected="selected" >- {L_ABBC3_FONTSIZE_MOVER} -</option>
<option style="font-size:50%" value="50">{L_FONT_TINY}</option>
<option style="font-size:85%" value="85">{L_FONT_SMALL}</option>
<option style="font-size:100%" value="100">{L_FONT_NORMAL}</option>
<option style="font-size:150%" value="150">{L_FONT_LARGE}</option>
<option style="font-size:200%" value="200">{L_FONT_HUGE}</option>
<option style="font-size:300%" value="300">{L_ABBC3_FONT_GIANT}</option>
</select>
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_ABBC3_FONTHILI -->
<select id="abbc3_fonthili" name="abbc3_fonthili" onchange="bbfontstyle('[highlight=#' + this.form.abbc3_fonthili.options[this.form.abbc3_fonthili.selectedIndex].value + ']', '[/highlight]'); this.form.abbc3_fonthili.selectedIndex = 0;" onmouseover="helpline2('abbc3_fonthili')" onmouseout="helpline2()" title="{L_ABBC3_FONTHILI_MOVER}">
<option selected="selected" >- {L_ABBC3_FONTHILI_MOVER}- </option>
<script type="text/javascript">
// <![CDATA[
ABBCcolorPalette('abbc3_fonthili');
// ]]>
</script>
</select>
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_ABBC3_FONTCOLOR -->
<select id="abbc3_fontcolor" name="abbc3_fontcolor" onchange="bbfontstyle('[color=#' + this.form.abbc3_fontcolor.options[this.form.abbc3_fontcolor.selectedIndex].value + ']', '[/color]'); this.form.abbc3_fontcolor.selectedIndex = 0;" onmouseover="helpline2('abbc3_fontcolor')" onmouseout="helpline2()" title="{L_ABBC3_FONTCOLOR_MOVER}">
<option selected="selected" >- {L_ABBC3_FONTCOLOR_MOVER}- </option>
<script type="text/javascript">
// <![CDATA[
ABBCcolorPalette('abbc3_fontcolor');
// ]]>
</script>
</select>
<!-- ELSE -->
<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
<!-- ENDIF -->

<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

<!-- BEGIN abbc3_tags -->
<img src="{T_IMAGESET_PATH}/abbcode/images/{abbc3_tags.TAG_SRC}" class="btnbbcode3 editor_Button" onclick="bbstyle2('{abbc3_tags.TAG_NAME}')" onmouseover="helpline2('{abbc3_tags.TAG_NAME}')" onmouseout="helpline2()" alt="{abbc3_tags.TAG_MOVER}" title="{abbc3_tags.TAG_MOVER}" id="{abbc3_tags.TAG_NAME}" />

<!-- BEGIN linebreak -->
<!-- IF linebreak.S_ABBC3_DIVISION -->
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF linebreak.S_ABBC3_BREAK -->
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

</td>
</tr>

<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{T_IMAGESET_PATH}/abbcode/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="cat bg3<!-- ENDIF --> valign="middle" colspan="2">
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

<!-- ENDIF -->

<!-- END linebreak -->

<!-- END abbc3_tags -->

<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

</td>
</tr>

<!-- IF .custom_tags -->
<tr align="{S_CONTENT_FLOW_BEGIN}">
<td <!-- IF S_ABBC3_BG -->style='background: url("{T_IMAGESET_PATH}/abbcode/images/bg/{S_ABBC3_BG}");'<!-- ELSE -->class="cat bg3<!-- ENDIF --> valign="middle" colspan="2">
<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->

<!-- BEGIN custom_tags -->
<input style="margin:4px 0 0 0;" type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_TIPLINE}"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline2()"<!-- ENDIF --> />
<!-- END custom_tags -->

<!-- IF S_ABBC3_TAB -->
<img src="{T_IMAGESET_PATH}/abbcode/images/dots.gif" alt="" class="btnbbcode3 dot" />
<!-- ENDIF -->
</td>
</tr>
<!-- ENDIF -->

<tr>
<td colspan="2">
<textarea readonly="readonly" id="helpbox" name="helpbox" rows="2" cols="76" class="helpline" >{L_STYLES_TIP}</textarea><!--<span id="helpbox" class="helpline" >{L_STYLES_TIP}</span>-->
</td>
</tr>

</table>

<!-- // MOD : ABBC3 (V1.0.8) - END -->[/code]



Can someone (Leviatan, have you got a little free time?) help me? What's wrong?

Best Regards

PD: ABBC is 1.0.8, not 1.0.9
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] Advanced BBcode box 3

Post by leviatan21 »

calproye wrote:Hi! I need some help with this mod. I defined a new BBCode a long time ago called "center" ("Centra texto/imagenes/tablas") and it works properly

Can someone (Leviatan, have you got a little free time?) help me? What's wrong?

Best Regards

PD: ABBC is 1.0.8, not 1.0.9
Hi calproye :
You have an error with the language file ( quita los acentos y cambialos por utf-8 )
All language files should use UTF-8 as their encoding and the files must not contain a BOM. ;)
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
calproye
Registered User
Posts: 108
Joined: Wed Oct 03, 2007 5:06 pm
Location: Madrid - ES
Contact:

Re: [DEV] Advanced BBcode box 3

Post by calproye »

leviatan21 wrote: Hi calproye :
You have an error with the language file ( quita los acentos y cambialos por utf-8 )
All language files should use UTF-8 as their encoding and the files must not contain a BOM. ;)
Hi! Leviatan. Thanks for your time. I've modified the files but the problem is still here :? (Si el tema de los acentos ñ y demas lo conocia, pero sigue sin funcionar: los iconos se ven, funciona el mensaje del mouse pero si puslo no hacen nada..ninguno ¿¿??)

Regards
User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [DEV] Advanced BBcode box 3

Post by leviatan21 »

calproye wrote:
leviatan21 wrote: Hi calproye :
You have an error with the language file ( quita los acentos y cambialos por utf-8 )
All language files should use UTF-8 as their encoding and the files must not contain a BOM. ;)
Hi! Leviatan. Thanks for your time. I've modified the files but the problem is still here :? (Si el tema de los acentos ñ y demas lo conocia, pero sigue sin funcionar: los iconos se ven, funciona el mensaje del mouse pero si puslo no hacen nada..ninguno ¿¿??)

Regards
Please : Send me a PM with your forum adress
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español
calproye
Registered User
Posts: 108
Joined: Wed Oct 03, 2007 5:06 pm
Location: Madrid - ES
Contact:

Re: [DEV] Advanced BBcode box 3

Post by calproye »

leviatan21 wrote: Please : Send me a PM with your forum adress

You have a PM ;)

Regards
008008
Registered User
Posts: 117
Joined: Tue Jul 10, 2007 8:44 am

Re: [DEV] Advanced BBcode box 3

Post by 008008 »

hi all

i have a problem when i wont update my phpbb3.0.1 :

Notice: Constant CLICKS_TABLE already defined in /home/client/web/www/Forum/includes/constants.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at /home/client/web/www/Forum/includes/constants.php:245) in /home/client/web/www/Forum/install/database_update.php on line 536


i have the version 1.0.7 ;)
Locked

Return to “[3.0.x] Abandoned MODs”