http://www.icyphoenix.com/viewtopic.php?f=40&t=6852
-----------------------------------
Dimo
Wed 13 Jan, 2010 00:22

BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[b]En español:

[spoiler]Hola familia Icy Phoenix:

No consigo hacer funcionar el BBCode de Pando en el Icy Phoenix v. 1.3.0.53

Quería decirte que tengo problemas para poner el BBCode de Pando al Icy Phoenix 1.3.0.53 y ya no se que hacer, te adjunto el post donde expongo mi problema...

[url=http://www.januweb.com/foro/botones...f32-vt4163.html]Sitio donde explico mi problema

Agradezco toda iluminación.

Gracias por vuestra atención y disculpad las molestias.

Dimo[/spoiler]

En Inglés:

[spoiler]Hello family Icy Phoenix:

I can not run the Pando BBCode in Icy Phoenix v. 1.3.0.53

I wanted to say that I have trouble putting Pando BBCode to Icy Phoenix 1.3.0.53 and no longer do you herewith the post where I discuss my problem ...

[url=http://www.januweb.com/foro/botones...f32-vt4163.html]Site where I explain my problem

I appreciate any enlightenment.

Thank you for your attention and apologize for the inconvenience.

Dimo[/spoiler][/b]


-----------------------------------
Mighty Gorgon
Sun 17 Jan, 2010 11:04

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
Did you try this?

[url=http://www.icyphoenix.com/viewtopic.php?f=4&t=6428]How to add Video BBCode to Icy Phoenix (by Lopalong)


-----------------------------------
KasLimon
Sun 17 Jan, 2010 11:37

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
MG, it's not a video BBCode :P 
It's more or less like torrent links...

Dimo, the link doesn't work... I read the topic in JW some time before he he but I don't have much time for supporting...
http://www.januweb.com/foro/botones-pando-para-icy-1-3-0-53-vf32-vt4163.html

I don't understand what doesn't work... If you could be more specific ;) 

Greets!


-----------------------------------
Mighty Gorgon
Sun 17 Jan, 2010 12:44

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
I thought it was a Video BBCode... I'm sorry! :oops:


-----------------------------------
Dimo
Sun 17 Jan, 2010 15:48

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[b]En español:

[spoiler]Hola KasLimon es cierto que el BBCode de Pando aparece en la lista de botones pero no se ejecuta el Pando como dice en el post 

http://www.icyphoenix.com/viewtopic.php?t=2602 

Probé introduciendo los parámetros que en este post nos decía su autor, a él le funciona pero a mí no. Yo tengo la última versión de Icy Phonenix.

Gracias por vuestra atención y disculpad las molestias

Espero respuesta vuestra lo más pronto posible

Un abrazo

Dimo[/spoiler]

En Inglés:

[spoiler]Hello KasLimon is true that Pando BBCode appears in the list of buttons but not running the Pando as it says in the post

http://www.icyphoenix.com/viewtopic.php?t=2602

I tried entering the parameters in this post the author told us, to him it works but not me. I have the latest version of Icy Phonenix.

Thank you for your attention and apologize for the inconvenience

I hope your response as soon as possible

Best regards

Dimo[/spoiler][/b]


-----------------------------------
KasLimon
Mon 18 Jan, 2010 14:04

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
Since the customization is placed in "Old Customizations" forum, this means the mod shouldn't work fine on latest Icy Phoenix versions.

In order to install the mod, you need to know that language/lang_XXX/bbcb_mg.js has been moved to templates/common/js/bbcb_mg.js and templates/mg_themes/bbcb_mg.tpl has been moved to templates/default/bbcb_mg.tpl.

Have you modified the files that way?

Greets!


-----------------------------------
Dimo
Mon 18 Jan, 2010 18:19

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[quote user="KasLimon" post="47201"]Since the customization is placed in "Old Customizations" forum, this means the mod shouldn't work fine on latest Icy Phoenix versions.

In order to install the mod, you need to know that language/lang_XXX/bbcb_mg.js has been moved to templates/common/js/bbcb_mg.js and templates/mg_themes/bbcb_mg.tpl has been moved to templates/default/bbcb_mg.tpl.

Have you modified the files that way?

Greets![/quote]

[b]No, I did well, I'll try and if not I'll give you my FTP details for you to do the tests.[/b]


-----------------------------------
KasLimon
Tue 19 Jan, 2010 09:13

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
It's not necessary, just let me test the mod on a local Icy Phoenix forum and I'll tell you what's wrong ;)


-----------------------------------
Dimo
Tue 19 Jan, 2010 09:37

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[b]En español:

[spoiler]El archivo con raiz en ...templates/mg_themes/bbcb_mg.tpl  no es igual al  ...templates/common/js/bbcb_mg.js  y tengo problemas para encontrar algunos de los parámetros que tengo que introducir en el documento, os adjunto la tabla con los parámetros a modificar:

Para ...templates/common/js/bbcb_mg.js

[code linenumbers=false]#
#----[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);
}

# 
[/code]

Para ...templates/mg_themes/bbcb_mg.tpl

?

[/spoiler]

En Inglés:

[spoiler]The root file in ...templates / mg_themes / bbcb_mg.tpl is not equal to ...templates / common / js / bbcb_mg.js and I have trouble finding some of the parameters I have to make to the document, I attached table with the parameters to modify:

For ...templates / common / js / bbcb_mg.js

[code linenumbers=false]#
#----[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);
}

# 
[/code]

For ...templates / mg_themes / bbcb_mg.tpl

? [/spoiler][/b]


-----------------------------------
KasLimon
Tue 19 Jan, 2010 10:55

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
Ok, undo all the changes you've maid to your forum (changes related with this mod), and do this:

[list=1][*]Download and upload the files located [url=http://www.icyphoenix.com/viewtopic.php?t=2602]here (official mod post)
[*]Do the following modifications[spoiler][code linenumbers=false]############################################################## 
## MOD Title: pando bbcode para ice phoenyx 
## MOD Author: robincracker http://www.mercado-negro.org.org
## Adapted to last Icy Phoenix Version by KasLimon
## MOD Description: pando bbcode
## MOD Version: 1.0.0 
## 
## Installation Level: Easy 
## Installation Time: 5 minutes 
## Files To Edit: includes/bbcode.php
##                templates/common/js/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, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, YOUTUBE, GOOGLEVIDEO

#
#----[IN-LINE FIND]----
#

GOOGLEVIDEO

#
#----[IN-LINE AFTER, ADD]----
#

, PANDO

#
#----[FIND]----
#
			if(($tag === 'flash') || ($tag === 'swf') || ($tag === 'flv') || ($tag === 'video') || ($tag === 'ram') || ($tag === 'quick') || ($tag === 'stream') || ($tag === 'emff') || ($tag === 'mp3') || ($tag === 'youtube') || ($tag === 'googlevideo'))

#
#----[IN-LINE FIND]----
#

($tag === 'youtube') ||

#
#----[IN-LINE AFTER, ADD]----
#

 ($tag === 'pando') ||

#
#----[FIND]----
#

					$html = '<object width="' . $width . '" height="' . $height . '"><param name="movie" value="http://www.youtube.com/v/' . $content . $color_append . '" /><embed src="http://www.youtube.com/v/' . $content . $color_append . '" type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . $color_append . '" target="_blank">Link</a><br />';

#
#----[AFTER ADD]----
#
				}
				elseif ($tag === 'pando')
                {
                    $html = '<link rel="stylesheet" type="text/css" href="'.IP_ROOT_PATH.'pando/pando.css" >
                        <script src="'.IP_ROOT_PATH.'pando/PandoAPI.js" type="text/javascript"></script>
                        <script src="'.IP_ROOT_PATH.'pando/pando_script_mn.js" type="text/javascript"></script>
                        <script>showPackage("' . $content . '");</script>';
#
#----[OPEN]----
#

templates/common/js/bbcb_mg.js

#
#----[FIND]----
#

var Td = 0;

#
#----[AFTER ADD]----
#

s_pando_insert = 'Por favor ingrese el IM link del pando';
s_pando_insert_tip = 'Pando IM';
s_pando_insert_error = 'No has ingresado el IM link';
s_pando_help = 'Ingrese el IM link: [pando]pandoIM link[/pando]';

#
#----[FIND]----
#

'[wave]','[/wave]',

#
#----[AFTER ADD]----
#

'[pando]','[/pando]',

#
#----[FIND]----
#

		Quote = 0;
	}
	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/default/bbcb_mg.tpl

#
#----[FIND]----
#

					<a href="javascript:BBCflash()"><img src="{BBCB_MG_IMG_PATH}flash{BBCB_MG_IMG_EXT}" name="flash" onmouseover="helpline('flash')" alt="L_BBCB_MG_FLSH}" title="{L_BBCB_MG_FLSH}" class="bbimages" /></a>

#
#----[AFTER ADD]----
#

                    <a href="javascript:BBCpando()"><img src="{BBCB_MG_IMG_PATH}pando{BBCB_MG_IMG_EXT}" name="pando" onmouseover="helpline('pando')" alt="pando" title="pando" class="bbimages" /></a>

#
#----[END]----
#[/code][/spoiler][/list]That's it ;)


-----------------------------------
Dimo
Tue 19 Jan, 2010 11:49

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[spoiler][quote user="KasLimon" post="47208"]Ok, undo all the changes you've maid to your forum (changes related with this mod), and do this:

[list=1][*]Download and upload the files located [url=http://www.icyphoenix.com/viewtopic.php?t=2602]here (official mod post)
[*]Do the following modifications[spoiler][code linenumbers=false]############################################################## 
## MOD Title: pando bbcode para ice phoenyx 
## MOD Author: robincracker http://www.mercado-negro.org.org
## Adapted to last Icy Phoenix Version by KasLimon
## MOD Description: pando bbcode
## MOD Version: 1.0.0 
## 
## Installation Level: Easy 
## Installation Time: 5 minutes 
## Files To Edit: includes/bbcode.php
##                templates/common/js/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, FLV, VIDEO, REAL, QUICK, STREAM, EMFF, YOUTUBE, GOOGLEVIDEO

#
#----[IN-LINE FIND]----
#

GOOGLEVIDEO

#
#----[IN-LINE AFTER, ADD]----
#

, PANDO

#
#----[FIND]----
#
			if(($tag === 'flash') || ($tag === 'swf') || ($tag === 'flv') || ($tag === 'video') || ($tag === 'ram') || ($tag === 'quick') || ($tag === 'stream') || ($tag === 'emff') || ($tag === 'mp3') || ($tag === 'youtube') || ($tag === 'googlevideo'))

#
#----[IN-LINE FIND]----
#

($tag === 'youtube') ||

#
#----[IN-LINE AFTER, ADD]----
#

 ($tag === 'pando') ||

#
#----[FIND]----
#

					$html = '<object width="' . $width . '" height="' . $height . '"><param name="movie" value="http://www.youtube.com/v/' . $content . $color_append . '" /><embed src="http://www.youtube.com/v/' . $content . $color_append . '" type="application/x-shockwave-flash" width="' . $width . '" height="' . $height . '"></embed></object><br /><a href="http://youtube.com/watch?v=' . $content . $color_append . '" target="_blank">Link</a><br />';

#
#----[AFTER ADD]----
#
				}
				elseif ($tag === 'pando')
                {
                    $html = '<link rel="stylesheet" type="text/css" href="'.IP_ROOT_PATH.'pando/pando.css" >
                        <script src="'.IP_ROOT_PATH.'pando/PandoAPI.js" type="text/javascript"></script>
                        <script src="'.IP_ROOT_PATH.'pando/pando_script_mn.js" type="text/javascript"></script>
                        <script>showPackage("' . $content . '");</script>';
#
#----[OPEN]----
#

templates/common/js/bbcb_mg.js

#
#----[FIND]----
#

var Td = 0;

#
#----[AFTER ADD]----
#

s_pando_insert = 'Por favor ingrese el IM link del pando';
s_pando_insert_tip = 'Pando IM';
s_pando_insert_error = 'No has ingresado el IM link';
s_pando_help = 'Ingrese el IM link: [pando]pandoIM link[/pando]';

#
#----[FIND]----
#

'[wave]','[/wave]',

#
#----[AFTER ADD]----
#

'[pando]','[/pando]',

#
#----[FIND]----
#

		Quote = 0;
	}
	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/default/bbcb_mg.tpl

#
#----[FIND]----
#

					<a href="javascript:BBCflash()"><img src="{BBCB_MG_IMG_PATH}flash{BBCB_MG_IMG_EXT}" name="flash" onmouseover="helpline('flash')" alt="L_BBCB_MG_FLSH}" title="{L_BBCB_MG_FLSH}" class="bbimages" /></a>

#
#----[AFTER ADD]----
#

                    <a href="javascript:BBCpando()"><img src="{BBCB_MG_IMG_PATH}pando{BBCB_MG_IMG_EXT}" name="pando" onmouseover="helpline('pando')" alt="pando" title="pando" class="bbimages" /></a>

#
#----[END]----
#[/code][/spoiler][/list]That's it ;)[/quote][/spoiler]

[b]Yes, sir you are the best. Works fine to see when I tell my mom, hehe (Si, señor, eres el mejor.)
Now, my problem, is that the pando box I can not to center in the posts. But that is a lesser evil. (Ahora, mi problema, es que no puedo centrar la cajita pando en los posts.) 

[img]http://www.icyphoenix.com/files/posted_images/7921/centrar.jpg[/img] 

[url=http://www.kaoshispano.com/foro/viewtopic.php?t=3&p=3#p3]mi web

Sincere thanks

Very very Kisses

Dimo[/b]

Pdta.: Are you not Spanish?


-----------------------------------
KasLimon
Tue 19 Jan, 2010 16:35

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
Yes, I'm from Madrid, but since this is an English forum, I prefer to speak in English :P To let others with the same problem as you understand what I'm saying.

I'm not sure if you can centre the pando block... Just try this:
[spoiler][b]Open [/b][i]includes/bbcode.php[/i]
[b]Find[/b][code linenumbers=false]                    $html = '<link rel="stylesheet" type="text/css" href="'.IP_ROOT_PATH.'pando/pando.css" >[/code][b]Replace with[/b][code linenumbers=false]                    $html = '<center><link rel="stylesheet" type="text/css" href="'.IP_ROOT_PATH.'pando/pando.css" >[/code][b]Find[/b][code linenumbers=false]                        <script>showPackage("' . $content . '");</script>';[/code][b]Replace with[/b][code linenumbers=false]                        <script>showPackage("' . $content . '");</script></center>';[/code][/spoiler]I'm almost sure it won't work... And I saw pando API files are encoded, so it's impossible for me to edit it...

Have you tried align properties??, I mean
[code linenumbers=false][align=center][/align][/code]

Greets!


-----------------------------------
Dimo
Tue 19 Jan, 2010 16:55

Re: BBCode De Pando Para Icy Phoenix V. 1.3.0.53
-----------------------------------
[b]Definitivaisamente eres the best developer

I love you KasLimon, I like a son your.

Dimo[/b]


