https://www.icyphoenix.com/viewtopic.php?f=28&t=2602
-----------------------------------
robin cracker
Thu 09 Aug, 2007 20:16

Pando Bbcode For Icy Phoenix
-----------------------------------
[img]http://img413.imageshack.us/img413/3177/20080108104344xh1.gif[/img]
[img]http://img130.imageshack.us/img130/5320/20070812134133kv2.png[/img]





[size=14][color=red]V2.0[/color][/size]
-fix the problem when signature is enable





[code linenumbers=false]##############################################################  
## MOD Title: pando bbcode para ice phoenyx  
## MOD Author: robincracker http://www.mercado-negro.org.org  
## MOD Description: pando bbcode 
## MOD Version: 1.0.0  
##  
## Installation Level: Easy  
## Installation Time: 5 minutes  
## Files To Edit: includes/bbcode.php
##                language/lang_XXXX/bbcb_mg.js
##                templates/mg_themes/bbcb_mg.tpl
## Included Files:  
##                images/bbcb_mg/images/gif/pando.gif
##                images/bbcb_mg/images/gif/pando1.gif
##                pando/pando.cs
##                pando/pando_script_mn.js
##				  pando/pandoAPI.js	
##				  pando/cajamn.gif
##  
## License: http://opensource.org/licenses/GPL-license.php GNU General Public License v2  
##############################################################  
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  
############################################################## 
#
#----[COPY]----
#
images/bbcb_mg/images/gif/pando1.png to images/bbcb_mg/images/gif/pando1.png
images/bbcb_mg/images/gif/pando.png to images/bbcb_mg/images/gif/pando.png
pando/pandoAPI.js	 to pando/pandoAPI.js	
pando/pando_script_mn.js to pando/pando_script_mn.js
pando/cajamn.gif to pando/cajamn.gif
pando/pando.css	 to pando/pando.css	


#
#----[OPEN]----
#
includes/bbcode.php 

#
#----[FIND]----
#
			'youtube' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,
					),

#
#----[AFTER ADD]----
#

			'pando' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,
					),

#
#----[FIND]----
#

			// FLASH, SWF, VIDEO, REAL, QUICK, STREAM, EMFF, YOUTUBE, GOOGLEVIDEO

#
#----[AFTER ADD]----
#

, PANDO

#
#----[FIND]----
#
						if( ($tag === 'flash') || ($tag === 'swf') || ($tag === 'video') || ($tag === 'ram') || ($tag === 'quick') || ($tag === 'stream') || ($tag === 'emff') || ($tag === 'mp3') || ($tag === 'youtube'

#
#----[AFTER ADD]----
#
 || $tag === 'pando'

#
#----[FIND]----
#

				elseif ($tag === 'youtube')
				{
					$html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $content . '" /><embed src="http://www.youtube.com/v/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . '" target="_blank">Link</a><br />';
				}
#
#----[AFTER ADD]----
#CAMBIAR ,TU URL, POR LA URL DEL FORO
				elseif ($tag === 'pando')
				{
					$html = '<LINK REL=STYLESHEET TYPE="text/css" HREF="TUURL/pando/pando.css" >
						<script src="TUURL/pando/PandoAPI.js" type="text/javascript"></script>
						<script src="TUURL/pando/pando_script_mn.js" type="text/javascript"></script>
						<script>showPackage("' . $content . '");</script>';
				}
#
#----[OPEN]----
#

language/lang_XXXX/bbcb_mg.js

#
#----[FIND]----
#

s_ram_insert =

#
#----[AFTER ADD]----
#

s_pando_insert = 'Por favor ingrese el IM link del pando';
s_pando_insert_tip = 'pando IM'; 

#
#----[FIND]----
#
s_flash_h_error = 

#
#----[AFTER ADD]----
#

s_pando_insert_error = 'No haz ingresado el IM link';

#
#----[FIND]----
#

s_marqd_help = 

#
#----[AFTER ADD]----
#

s_pando_help = 'Ingrese el IM link: [pando]pandoIM link[/pando]';


#
#----[FIND]----
#

'[wave]','[/wave]',

#
#----[AFTER ADD]----
#

'[pando]','[/pando]',

#
#----[FIND]----
#

function BBCram()
{
	var FoundErrors = '';
	var enterURL = prompt(s_ram_insert ,s_url_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_file_insert_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}
	var ToAdd = "[ram]"+enterURL+"[/ram]";
	PostWrite(ToAdd);
}

#
#----[AFTER ADD]----
#

function BBCpando()
{
	var FoundErrors = '';
	var enterURL = prompt(s_pando_insert, s_pando_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_pando_insert_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}
	var ToAdd = "[pando]"+enterURL+"[/pando]";
	PostWrite(ToAdd);
}

#
#----[OPEN]----
#

templates/mg_themes/bbcb_mg.tpl

#
#----[FIND]----
#

							<a href="javascript:BBCflash()"><img border="0" src="{BBCB_MG_IMG_PATH}flash{BBCB_MG_IMG_EXT}" name="flash" type="image" onMouseOver="helpline('flash')" alt="L_BBCB_MG_FLSH}" title="{L_BBCB_MG_FLSH}" class="bbimages" /></a>

#
#----[AFTER ADD]----
#

							<a href="javascript:BBCpando()"><img border="0" src="{BBCB_MG_IMG_PATH}pando{BBCB_MG_IMG_EXT}" name="pando" type="image" onMouseOver="helpline('pando')" alt="pando" title="pando" class="bbimages" /></a>

#
#----[END]----
#[/code]


[hr]hello i searh in google but don  find any to add a custom bbcode in phoenix and button to appear in post like youtube  , anyone can tell me how to do this thanks

enjoy it
Support spanish and for othr cms
http://www.toppando.mercado-negro.org/soporte/showthread.php?tid=1&pid=1#pid1


-----------------------------------
Zuker
Thu 09 Aug, 2007 21:50

Re: How To Add A Custom Bbcode And Button
-----------------------------------
[b]robin cracker[/b],

witch bbcode u want to be inside posting as a button?


-----------------------------------
robin cracker
Fri 10 Aug, 2007 18:40

Re: How To Add A Custom Bbcode And Button
-----------------------------------
[quote user="Zuker" post="18468"][b]robin cracker[/b],

witch bbcode u want to be inside posting as a button?[/quote]
well is this code
[code linenumbers=false]<LINK REL=STYLESHEET TYPE="text/css" HREF="Turl/pando.css" >
                <script src="url/PandoAPI.js" type="text/javascript"></script>
                <script src="Turl/pando_script_mn.js" type="text/javascript"></script>
                <script>showPackage("$1");</script>[/code]
to show a box  like 
[img]http://img520.imageshack.us/img520/7103/20070808134216dz7.gif[/img]

the files pando api, pando script and pando.css is in the zip is amod to smf but work with other forums but i dont know how add a bbcode in phoenix


-----------------------------------
robin cracker
Fri 10 Aug, 2007 18:42

Re: How To Add A Custom Bbcode And Button
-----------------------------------
no em habia percatado que tenias la bandera de argentina, veras es que lo qu deseo es agregar un bbcode que trabaje usando lsos cript que adjunte arriba, pero no se que archivos debo modificar para agregar ese codigo y al usar la etiqueta muestre el resultado como se ve en la magen


-----------------------------------
Zuker
Fri 10 Aug, 2007 22:05

Re: How To Add A Custom Bbcode And Button
-----------------------------------
Try to play with bbcode.php, bbcb_mg.tpl and bbcode.js ;)


-----------------------------------
robin cracker
Sun 12 Aug, 2007 21:43

Re: How To Add A Custom Bbcode And Button
-----------------------------------
solve it thaks download the goear bbcode and modify to my bbcode,
[img align=left]http://img528.imageshack.us/img528/3654/20070812134044qd4.png[/img]
[img align=left]http://img130.imageshack.us/img130/5320/20070812134133kv2.png[/img]

attacht the pandobbcode


[code linenumbers=false]##############################################################  
## MOD Title: pando bbcode para ice phoenyx  
## MOD Author: robincracker http://www.mercado-negro.org.org  
## MOD Description: pando bbcode 
## MOD Version: 1.0.0  
##  
## Installation Level: Easy  
## Installation Time: 5 minutes  
## Files To Edit: includes/bbcode.php
##                language/lang_XXXX/bbcb_mg.js
##                templates/mg_themes/bbcb_mg.tpl
## Included Files:  
##                images/bbcb_mg/images/gif/pando.gif
##                images/bbcb_mg/images/gif/pando1.gif
##                pando/pando.cs
##                pando/pando_script_mn.js
##				  pando/pandoAPI.js	
##				  pando/cajamn.gif
##  
## License: http://opensource.org/licenses/GPL-license.php GNU General Public License v2  
##############################################################  
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  
############################################################## 
#
#----[COPY]----
#
images/bbcb_mg/images/gif/pando1.png to images/bbcb_mg/images/gif/pando1.png
images/bbcb_mg/images/gif/pando.png to images/bbcb_mg/images/gif/pando.png
pando/pandoAPI.js	 to pando/pandoAPI.js	
pando/pando_script_mn.js to pando/pando_script_mn.js
pando/cajamn.gif to pando/cajamn.gif
pando/pando.css	 to pando/pando.css	


#
#----[OPEN]----
#
includes/bbcode.php 

#
#----[FIND]----
#
			'youtube' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,
					),

#
#----[AFTER ADD]----
#

			'pando' => array(
					'nested' => true,
					'inurl' => true,
					'allow_empty' => false,
					),

#
#----[FIND]----
#

			// FLASH, SWF, VIDEO, REAL, QUICK, STREAM, EMFF, YOUTUBE, GOOGLEVIDEO

#
#----[AFTER ADD]----
#

, PANDO

#
#----[FIND]----
#
						if( ($tag === 'flash') || ($tag === 'swf') || ($tag === 'video') || ($tag === 'ram') || ($tag === 'quick') || ($tag === 'stream') || ($tag === 'emff') || ($tag === 'mp3') || ($tag === 'youtube'

#
#----[AFTER ADD]----
#
 || $tag === 'pando'

#
#----[FIND]----
#

				elseif ($tag === 'youtube')
				{
					$html = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $content . '" /><embed src="http://www.youtube.com/v/' . $content . '" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . '" target="_blank">Link</a><br />';
				}
#
#----[AFTER ADD]----
#CAMBIAR ,TU URL, POR LA URL DEL FORO
				elseif ($tag === 'pando')
				{
					$html = '<LINK REL=STYLESHEET TYPE="text/css" HREF="TUURL/pando/pando.css" >
						<script src="TUURL/pando/PandoAPI.js" type="text/javascript"></script>
						<script src="TUURL/pando/pando_script_mn.js" type="text/javascript"></script>
						<script>showPackage("' . $content . '");</script>';
				}
#
#----[OPEN]----
#

language/lang_XXXX/bbcb_mg.js

#
#----[FIND]----
#

s_ram_insert =

#
#----[AFTER ADD]----
#

s_pando_insert = 'Por favor ingrese el IM link del pando';
s_pando_insert_tip = 'pando IM'; 

#
#----[FIND]----
#
s_flash_h_error = 

#
#----[AFTER ADD]----
#

s_pando_insert_error = 'No haz ingresado el IM link';

#
#----[FIND]----
#

s_marqd_help = 

#
#----[AFTER ADD]----
#

s_pando_help = 'Ingrese el IM link: [pando]pandoIM link[/pando]';


#
#----[FIND]----
#

'[wave]','[/wave]',

#
#----[AFTER ADD]----
#

'[pando]','[/pando]',

#
#----[FIND]----
#

function BBCram()
{
	var FoundErrors = '';
	var enterURL = prompt(s_ram_insert ,s_url_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_file_insert_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}
	var ToAdd = "[ram]"+enterURL+"[/ram]";
	PostWrite(ToAdd);
}

#
#----[AFTER ADD]----
#

function BBCpando()
{
	var FoundErrors = '';
	var enterURL = prompt(s_pando_insert, s_pando_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_pando_insert_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}
	var ToAdd = "[pando]"+enterURL+"[/pando]";
	PostWrite(ToAdd);
}

#
#----[OPEN]----
#

templates/mg_themes/bbcb_mg.tpl

#
#----[FIND]----
#

							<a href="javascript:BBCflash()"><img border="0" src="{BBCB_MG_IMG_PATH}flash{BBCB_MG_IMG_EXT}" name="flash" type="image" onMouseOver="helpline('flash')" alt="L_BBCB_MG_FLSH}" title="{L_BBCB_MG_FLSH}" class="bbimages" /></a>

#
#----[AFTER ADD]----
#

							<a href="javascript:BBCpando()"><img border="0" src="{BBCB_MG_IMG_PATH}pando{BBCB_MG_IMG_EXT}" name="pando" type="image" onMouseOver="helpline('pando')" alt="pando" title="pando" class="bbimages" /></a>

#
#----[END]----
#[/code]


-----------------------------------
Zuker
Mon 13 Aug, 2007 01:15

Re: How To Add A Custom Bbcode And Button
-----------------------------------
great ;)

moved to customizations


-----------------------------------
leonidfg
Fri 17 Aug, 2007 05:07

Re: How To Add A Custom Bbcode And Button
-----------------------------------
Hi! 

This mod post by "robin cracker" also works to make a HIDE BBCode button?


-----------------------------------
Zuker
Fri 17 Aug, 2007 13:48

Re: Pando bbcode For Icy Phoenix
-----------------------------------
[quote user="leonidfg" post="18699"]Hi! 

This mod post by "robin cracker" also works to make a HIDE BBCode button?[/quote]

what do you mean by "works to make a hide bbcode"?


-----------------------------------
robin cracker
Fri 17 Aug, 2007 17:22

Re: How To Add A Custom Bbcode And Button
-----------------------------------
[quote user="leonidfg" post="18699"]Hi! 

This mod post by "robin cracker" also works to make a HIDE BBCode button?[/quote]
maybe this part 
#----[OPEN]----
#

templates/mg_themes/bbcb_mg.tpl

#
#----[FIND]----
#

                            <a href="javascript:BBCflash()"><img border="0" src="{BBCB_MG_IMG_PATH}flash{BBCB_MG_IMG_EXT}" name="flash" type="image" onMouseOver="helpline('flash')" alt="L_BBCB_MG_FLSH}" title="{L_BBCB_MG_FLSH}" class="bbimages" /></a>

#
#----[AFTER ADD]----
#

                            <a href="javascript:BBCpando()"><img border="0" src="{BBCB_MG_IMG_PATH}pando{BBCB_MG_IMG_EXT}" name="pando" type="image" onMouseOver="helpline('pando')" alt="pando" title="pando" class="bbimages" /></a>

#
#----[END]----
#

try  replace pando by hide


-----------------------------------
-ktm-
Tue 21 Aug, 2007 13:44

Re: Pando bbcode For Icy Phoenix
-----------------------------------
a little error 
#----[AFTER ADD]----
#
 || $tag === 'pando' 

is

#----[AFTER ADD]----
#
 || ($tag === 'pando' ) )


-----------------------------------
-ktm-
Tue 21 Aug, 2007 19:04

Re: Pando bbcode For Icy Phoenix
-----------------------------------
another problem
check http://ktmdesignz.com/forum/viewtopic.php?t=3768


-----------------------------------
robin cracker
Sun 26 Aug, 2007 08:08

Re: Pando Bbcode For Icy Phoenix
-----------------------------------
es correcto hay algunos detalls por corregir, desafortunadamente  ando orto de tiempo, revisare el script haber si hay algo que hay que cambiar


-----------------------------------
Zuker
Sun 16 Sep, 2007 21:11

Re: Pando bbcode For Icy Phoenix
-----------------------------------
[quote user="robin cracker" post="18952"]es correcto hay algunos detalls por corregir, desafortunadamente  ando orto de tiempo, revisare el script haber si hay algo que hay que cambiar[/quote]

check this topic

http://www.eddb.com.ar/viewtopic.php?p=31695#p31695 (second page)

it's fine there, right? i think i 've fixed it :D


-----------------------------------
robin cracker
Tue 18 Sep, 2007 19:45

Re: Pando Bbcode For Icy Phoenix
-----------------------------------
great . how do you do?  :mryellow:


-----------------------------------
Zuker
Wed 19 Sep, 2007 01:16

Re: Pando bbcode For Icy Phoenix
-----------------------------------
i change so many files (almost all of them :P) but i need to test it more.


-----------------------------------
robin cracker
Tue 08 Jan, 2008 17:49

Re: Pando Bbcode For Icy Phoenix
-----------------------------------
update pando bbcode 2.01  :mrgreen:


-----------------------------------
Dimo
Thu 07 Jan, 2010 16:56

Re: Pando Bbcode For Icy Phoenix
-----------------------------------
[b]No consigo hacerlo funcionar en el Icy Phoenix v. 1.3.0.53 

Agradezco toda iluminación

Un abrazo

Dimo[/b]


-----------------------------------
Dimo
Wed 13 Jan, 2010 00:14

Re: Pando Bbcode For Icy Phoenix
-----------------------------------
[quote user="Dimo" post="47021"][b]No consigo hacerlo funcionar en el Icy Phoenix v. 1.3.0.53 

Agradezco toda iluminación

Un abrazo

Dimo[/b][/quote]

Traduction:

I can not get to work on the Icy Phoenix v. 1.3.0.53

I thank all lighting

Un abrazo

Dimo


