http://www.icyphoenix.com/viewtopic.php?f=35&t=3670
-----------------------------------
Danilo
Sat 23 Feb, 2008 00:04

How Can Make One BBcode??
-----------------------------------
hello everybody I have a question xD 

How can make my BBcode xD 
I want create one BBcode to download external xD for example rapidshare, zshare or other and replace the URL(www.rapidshare.com/xxxxxx.zip) to one image, example

[align=center][IMG]http://i25.photobucket.com/albums/c78/dranser009/dwload.png[/IMG]
[IMG]http://i25.photobucket.com/albums/c78/dranser009/down.png[/IMG][/align]


This image whit link to URL external

1. press to icon to bbcode xD

[align=center][IMG]http://i25.photobucket.com/albums/c78/dranser009/lorry_link.png[/IMG][/align]

2. show URL box to URL external

[align=center][IMG]http://i25.photobucket.com/albums/c78/dranser009/capture1.png[/IMG][/align]

and show the image to the link This way

[align=center][url=http://www.icyphoenix.com]
[IMG]http://i25.photobucket.com/albums/c78/dranser009/down.png[/IMG][/align]

Please!!!! xD  :roll: 

And thanks

Pd. This images is for that my english not is good xD Thanks


-----------------------------------
JHOSMAN
Sat 23 Feb, 2008 01:44

Re: How Can Make One BBcode¿?
-----------------------------------
The creation of this mod is interesant :P =D 

Please Make this MOD is very nice of sites of Download that KoKForos =D :lol:

Edit: This a example or image that download

[img]http://i188.photobucket.com/albums/z311/creesteean/kokforos-download1.png[/img]

Other sugerence, it's posible selection the mirror, for example Rapidshare, Megaupload, Gigasize, etc...  :wink:


-----------------------------------
KasLimon
Sun 24 Feb, 2008 11:09

Re: How Can Make One BBcode¿?
-----------------------------------
I'll do something for you ;) 

Greets!


-----------------------------------
KasLimon
Sun 24 Feb, 2008 13:24

Re: How Can Make One BBcode¿?
-----------------------------------
[b][u]Installation instructions[/u][/b]
[list=1][*]Upload [img]http://www.icyphoenix.com/files/thumbs/mid_6bc4a2494f9ab34b93dc6033328027ea_lorry_link.png[/img] to images/bbcb_mg/images/gif/download[b].gif[/b]
Upload [img]http://www.icyphoenix.com/files/thumbs/mid_054178cae78867d059bca45112443a4f_down.png[/img] to images/download[b].png[/b]
[*]Apply code changes:[code linenumbers=false]
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
			'codeblock' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ AFTER, ADD ]------------------------------------------
#
			'download' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ FIND ]------------------------------------------
#
		// OPACITY
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		// DOWNLOAD
		if($tag === 'download')
		{
			if(empty($content) || $this->is_sig)
			{
				return $error;
			}
			if (isset($item['params']['target']))
			{
				$target = $item['params']['target'];
			}
			else
			{
				$target = '_blank';
			}
			
				$html = '<a href="' . $content . '" target="' . $target . '"><img src="' . $phpbb_root_path . 'images/download.png" alt="' . $lang['Download'] . '" title="' . $lang['Download'] . '" border="0" /></a>';
			
			return array(
				'valid' => true,
				'html' => $html
			);
		}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/bbcb_mg.js
#
#-----[ FIND ]------------------------------------------
#
s_posticyimage = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_insert = 'Please write file URL';
#
#-----[ FIND ]------------------------------------------
#
s_smiley_creator = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_help = 'Download: [download]URL[/download] Insert a link to a file';
#
#-----[ FIND ]------------------------------------------
#
'[emff]','[/emff]'
#
#-----[ REPLACE WITH ]------------------------------------------
#
'[emff]','[/emff]',
'[download]','[/download]'
#
#-----[ FIND ]------------------------------------------
#
		var ToAdd = "[url=" + enterURL + "]" + enterTITLE + "";
	}
	PostWrite(ToAdd);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
function BBCdownload()
{
	var FoundErrors = '';
	var enterURL = prompt(s_download_insert, s_url_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_url_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}

	var ToAdd = "[download]" + enterURL + "[/download]";
	PostWrite(ToAdd);
}
#
#-----[ OPEN ]------------------------------------------
#
templates/mg_themes/bbcb_mg.tpl
#
#-----[ FIND ]------------------------------------------
#
					<a href="javascript:BBCurl()" accesskey="w"><img src="{BBCB_MG_IMG_PATH}url{BBCB_MG_IMG_EXT}" name="url" onMouseOver="helpline('url')" alt="{L_BBCB_MG_URL}" title="{L_BBCB_MG_URL}" class="bbimages" /></a>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					<a href="javascript:BBCdownload()" accesskey="d"><img src="{BBCB_MG_IMG_PATH}download{BBCB_MG_IMG_EXT}" name="download" onMouseOver="helpline('download')" alt="{L_BBCB_MG_DOWNLOAD}" title="{L_BBCB_MG_DOWNLOAD}" class="bbimages" /></a>[/code]
[*]Re-Apply this to all styles and languages you have installed.[/list]

Greets!


-----------------------------------
JHOSMAN
Sun 24 Feb, 2008 16:50

Re: How Can Make One BBcode¿?
-----------------------------------
[quote user="KasLimon" post="24815"][b][u]Installation instructions[/u][/b]
[list=1][*]Upload [img]http://www.icyphoenix.com/files/thumbs/mid_6bc4a2494f9ab34b93dc6033328027ea_lorry_link.png[/img] to images/bbcb_mg/images/gif/download[b].gif[/b]
Upload [img]http://www.icyphoenix.com/files/thumbs/mid_054178cae78867d059bca45112443a4f_down.png[/img] to images/download[b].png[/b]
[*]Apply code changes:[code linenumbers=false]
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
			'codeblock' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ AFTER, ADD ]------------------------------------------
#
			'download' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ FIND ]------------------------------------------
#
		// OPACITY
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		// DOWNLOAD
		if($tag === 'download')
		{
			if(empty($content) || $this->is_sig)
			{
				return $error;
			}
			if (isset($item['params']['target']))
			{
				$target = $item['params']['target'];
			}
			else
			{
				$target = '_blank';
			}
			
				$html = '<a href="' . $content . '" target="' . $target . '"><img src="' . $phpbb_root_path . 'images/download.png" alt="' . $lang['Download'] . '" title="' . $lang['Download'] . '" border="0" /></a>';
			
			return array(
				'valid' => true,
				'html' => $html
			);
		}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/bbcb_mg.js
#
#-----[ FIND ]------------------------------------------
#
s_posticyimage = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_insert = 'Please write file URL';
#
#-----[ FIND ]------------------------------------------
#
s_smiley_creator = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_help = 'Download: [download]URL[/download] Insert a link to a file';
#
#-----[ FIND ]------------------------------------------
#
'[emff]','[/emff]'
#
#-----[ REPLACE WITH ]------------------------------------------
#
'[emff]','[/emff]',
'[download]','[/download]'
#
#-----[ FIND ]------------------------------------------
#
		var ToAdd = "[url=" + enterURL + "]" + enterTITLE + "";
	}
	PostWrite(ToAdd);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
function BBCdownload()
{
	var FoundErrors = '';
	var enterURL = prompt(s_download_insert, s_url_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_url_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}

	var ToAdd = "[download]" + enterURL + "[/download]";
	PostWrite(ToAdd);
}
#
#-----[ OPEN ]------------------------------------------
#
templates/mg_themes/bbcb_mg.tpl
#
#-----[ FIND ]------------------------------------------
#
					<a href="javascript:BBCurl()" accesskey="w"><img src="{BBCB_MG_IMG_PATH}url{BBCB_MG_IMG_EXT}" name="url" onMouseOver="helpline('url')" alt="{L_BBCB_MG_URL}" title="{L_BBCB_MG_URL}" class="bbimages" /></a>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					<a href="javascript:BBCdownload()" accesskey="d"><img src="{BBCB_MG_IMG_PATH}download{BBCB_MG_IMG_EXT}" name="download" onMouseOver="helpline('download')" alt="{L_BBCB_MG_DOWNLOAD}" title="{L_BBCB_MG_DOWNLOAD}" class="bbimages" /></a>[/code]
[*]Re-Apply this to all styles and languages you have installed.[/list]

Greets![/quote]


This modificatios is apply to BBcode "Hide"

Thanks for the MOD it's very nice  :mrblue:


-----------------------------------
Danilo
Sun 24 Feb, 2008 17:38

Re: How Can Make One BBcode¿?
-----------------------------------
TTHANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS THANKS 

xD is very very nice thanks  :oops:  :mryellow:


-----------------------------------
xmenfile
Sun 24 Feb, 2008 17:42

Re: How Can Make One BBcode¿?
-----------------------------------
[quote user="JHOSMAN" post="24829"][quote user="KasLimon" post="24815"][b][u]Installation instructions[/u][/b]
[list=1][*]Upload [img]http://www.icyphoenix.com/files/thumbs/mid_6bc4a2494f9ab34b93dc6033328027ea_lorry_link.png[/img] to images/bbcb_mg/images/gif/download[b].gif[/b]
Upload [img]http://www.icyphoenix.com/files/thumbs/mid_054178cae78867d059bca45112443a4f_down.png[/img] to images/download[b].png[/b]
[*]Apply code changes:[code linenumbers=false]
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
			'codeblock' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ AFTER, ADD ]------------------------------------------
#
			'download' => array(
					'nested' => false,
					'inurl' => false,
					),
#
#-----[ FIND ]------------------------------------------
#
		// OPACITY
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		// DOWNLOAD
		if($tag === 'download')
		{
			if(empty($content) || $this->is_sig)
			{
				return $error;
			}
			if (isset($item['params']['target']))
			{
				$target = $item['params']['target'];
			}
			else
			{
				$target = '_blank';
			}
			
				$html = '<a href="' . $content . '" target="' . $target . '"><img src="' . $phpbb_root_path . 'images/download.png" alt="' . $lang['Download'] . '" title="' . $lang['Download'] . '" border="0" /></a>';
			
			return array(
				'valid' => true,
				'html' => $html
			);
		}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/bbcb_mg.js
#
#-----[ FIND ]------------------------------------------
#
s_posticyimage = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_insert = 'Please write file URL';
#
#-----[ FIND ]------------------------------------------
#
s_smiley_creator = '
#
#-----[ AFTER, ADD ]------------------------------------------
#
s_download_help = 'Download: [download]URL[/download] Insert a link to a file';
#
#-----[ FIND ]------------------------------------------
#
'[emff]','[/emff]'
#
#-----[ REPLACE WITH ]------------------------------------------
#
'[emff]','[/emff]',
'[download]','[/download]'
#
#-----[ FIND ]------------------------------------------
#
		var ToAdd = "[url=" + enterURL + "]" + enterTITLE + "";
	}
	PostWrite(ToAdd);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
function BBCdownload()
{
	var FoundErrors = '';
	var enterURL = prompt(s_download_insert, s_url_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_url_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}

	var ToAdd = "[download]" + enterURL + "[/download]";
	PostWrite(ToAdd);
}
#
#-----[ OPEN ]------------------------------------------
#
templates/mg_themes/bbcb_mg.tpl
#
#-----[ FIND ]------------------------------------------
#
					<a href="javascript:BBCurl()" accesskey="w"><img src="{BBCB_MG_IMG_PATH}url{BBCB_MG_IMG_EXT}" name="url" onMouseOver="helpline('url')" alt="{L_BBCB_MG_URL}" title="{L_BBCB_MG_URL}" class="bbimages" /></a>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					<a href="javascript:BBCdownload()" accesskey="d"><img src="{BBCB_MG_IMG_PATH}download{BBCB_MG_IMG_EXT}" name="download" onMouseOver="helpline('download')" alt="{L_BBCB_MG_DOWNLOAD}" title="{L_BBCB_MG_DOWNLOAD}" class="bbimages" /></a>[/code]
[*]Re-Apply this to all styles and languages you have installed.[/list]

Greets![/quote]


This modificatios is apply to BBcode "Hide"

Thanks for the MOD it's very nice  :mrblue:[/quote]

can you share it when you 're done. :mryellow:


-----------------------------------
JHOSMAN
Sun 24 Feb, 2008 18:05

Re: How Can Make One BBcode¿?
-----------------------------------
[b]The mod run in BBcode "hide" chek
 :arrow: 

[img]http://img408.imageshack.us/img408/5955/downloadcx3.png[/img]

That i have a problem  :lcop: 

At time on clic in [img]http://www.kokforos.com/foro/images/bbcb_mg/images/gif/download.gif[/img]

At this error:

 :arrow: [code]http://www.kokforos.com/foro/javascriptBBCdownload()[/code]
The window found  :roll: [/b]


-----------------------------------
Mighty Gorgon
Sun 24 Feb, 2008 21:18

Re: How Can Make One BBcode¿?
-----------------------------------
Great shoot Kas... thanks. :mri:

Can you create a new topic in Customizations forum with this modifcation please? :mri:


-----------------------------------
KasLimon
Sun 24 Feb, 2008 21:42

Re: How Can Make One BBcode¿?
-----------------------------------
[quote user="JHOSMAN" post="24832"][b]That i have a problem  :lcop: 

At time on clic in [img]http://www.kokforos.com/foro/images/bbcb_mg/images/gif/download.gif[/img]

At this error:

 :arrow: [code]http://www.kokforos.com/foro/javascriptBBCdownload()[/code]
The window found  :roll: [/b][/quote]Sorry, I don't understand what are you trying to say :oops: 

[quote user="Mighty Gorgon" post="24858"]Can you create a new topic in Customizations forum with this modifcation please? :mri:[/quote]Sure :mryellow:


-----------------------------------
JHOSMAN
Mon 25 Feb, 2008 02:27

Re: How Can Make One BBcode¿?
-----------------------------------
[quote user="KasLimon" post="24865"][quote user="JHOSMAN" post="24832"][b]That i have a problem  :lcop: 

At time on clic in [img]http://www.kokforos.com/foro/images/bbcb_mg/images/gif/download.gif[/img]

At this error:

 :arrow: [code]http://www.kokforos.com/foro/javascriptBBCdownload()[/code]
The window found  :roll: [/b][/quote]Sorry, I don't understand what are you trying to say :oops: 
[/quote]

[b]Check this =>

[URL=http://img244.imageshack.us/my.php?image=dibujohp3.png][IMG]http://img244.imageshack.us/img244/1196/dibujohp3.th.png[/IMG]

Go to rhis page:

[code]http://www.kokforos.com/foro/javascriptBBCdownload()[/code][/b]


-----------------------------------
ThE KuKa
Mon 25 Feb, 2008 18:41

Re: How Can Make One BBcode¿?
-----------------------------------
Hi,

Use [url=http://www.icyphoenix.com/viewtopic.php?f=21&t=3682][b]This topic please[/b]

[b]JHOSMAN[/b] and [b]xmenfile[/b], not quote what has been said repeatedly please.

[b]Topic Closed[/b]


