|
Page 1 of 1
|
Danilo 
Joined: April 2007
Posts: 74
Location:  Lost Maya City
|
 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
This image whit link to URL external
1. press to icon to bbcode xD
2. show URL box to URL external
and show the image to the link This way
Please!!!! xD
And thanks
Pd. This images is for that my english not is good xD Thanks
____________ www.dBoror.com [Danilo]
|
#1 Sat 23 Feb, 2008 00:04 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
JHOSMAN 
Joined: March 2007
Posts: 205
Location:  Bogot
|
 Re: How Can Make One BBcode¿?
The creation of this mod is interesant  =D
Please Make this MOD is very nice of sites of Download that KoKForos =D
Edit: This a example or image that download
Other sugerence, it's posible selection the mirror, for example Rapidshare, Megaupload, Gigasize, etc...
____________ ? JHOSMAN - Webmaster
|
#2 Sat 23 Feb, 2008 01:44 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: How Can Make One BBcode¿?
I'll do something for you
Greets!
____________ Gabriel Anca
|
#3 Sun 24 Feb, 2008 11:09 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: How Can Make One BBcode¿?
Installation instructions
- Upload
to images/bbcb_mg/images/gif/download.gif
Upload to images/download.png
- Apply code changes:
#
#-----[ 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 + "[/url]";
}
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>
- Re-Apply this to all styles and languages you have installed.
Greets!
____________ Gabriel Anca
|
#4 Sun 24 Feb, 2008 13:24 |
|
JHOSMAN 
Joined: March 2007
Posts: 205
Location:  Bogot
|
 Re: How Can Make One BBcode¿?
Installation instructions
- Upload
to images/bbcb_mg/images/gif/download.gif
Upload to images/download.png
- Apply code changes:
#
#-----[ 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 + "[/url]";
}
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>
- Re-Apply this to all styles and languages you have installed.
Greets!
This modificatios is apply to BBcode "Hide"
Thanks for the MOD it's very nice
____________ ? JHOSMAN - Webmaster
|
#5 Sun 24 Feb, 2008 16:50 |
|
Danilo 
Joined: April 2007
Posts: 74
Location:  Lost Maya City
|
 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
____________ www.dBoror.com [Danilo]
|
#6 Sun 24 Feb, 2008 17:38 |
|
xmenfile 
Joined: September 2007
Posts: 482
Location:  Right in front of my computer
|
 Re: How Can Make One BBcode¿?
Installation instructions
- Upload
to images/bbcb_mg/images/gif/download.gif
Upload to images/download.png
- Apply code changes:
#
#-----[ 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 + "[/url]";
}
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>
- Re-Apply this to all styles and languages you have installed.
Greets!
This modificatios is apply to BBcode "Hide"
Thanks for the MOD it's very nice 
can you share it when you 're done.
|
#7 Sun 24 Feb, 2008 17:42 |
|
JHOSMAN 
Joined: March 2007
Posts: 205
Location:  Bogot
|
 Re: How Can Make One BBcode¿?
The mod run in BBcode "hide" chek
That i have a problem
At time on clic in
At this error:
- http://www.kokforos.com/foro/javascriptBBCdownload()
The window found
____________ ? JHOSMAN - Webmaster
|
#8 Sun 24 Feb, 2008 18:05 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: How Can Make One BBcode¿?
Great shoot Kas... thanks.
Can you create a new topic in Customizations forum with this modifcation please?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#9 Sun 24 Feb, 2008 21:18 |
|
KasLimon 
Joined: November 2006
Posts: 494
Location:  Madrid (Spain)
|
 Re: How Can Make One BBcode¿?
____________ Gabriel Anca
|
#10 Sun 24 Feb, 2008 21:42 |
|
JHOSMAN 
Joined: March 2007
Posts: 205
Location:  Bogot
|
 Re: How Can Make One BBcode¿?
Check this =>
Go to rhis page:
- http://www.kokforos.com/foro/javascriptBBCdownload()
____________ ? JHOSMAN - Webmaster
|
#11 Mon 25 Feb, 2008 02:27 |
|
ThE KuKa 
Joined: August 2006
Posts: 489
Location:  Sabadell
|
 Re: How Can Make One BBcode¿?
Hi,
Use This topic please
JHOSMAN and xmenfile, not quote what has been said repeatedly please.
Topic Closed
|
#12 Mon 25 Feb, 2008 18:41 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|