- Copy this images in: imagesbbcb_mgimagesgif
spoiler.gif -
spoiler1.gif
- OPEN templatesmg_themesbbcb_mg.tpl
FIND:
- <a href="javascript:BBCcode()" accesskey="c"><img border="0" src="{BBCB_MG_IMG_PATH}code{BBCB_MG_IMG_EXT}" name="code" onMouseOver="helpline('code')" alt="{L_BBCB_MG_CODE}" title="{L_BBCB_MG_CODE}" class="bbimages" /></a>
BEFORE ADD:
- <a href="javascript:BBCspoilerbbes()" ><img border="0" src="{BBCB_MG_IMG_PATH}spoiler{BBCB_MG_IMG_EXT}" name="spoiler" type="image" onMouseOver="helpline('spoiler')" alt="Spoiler" title="Spoiler" class="bbimages" /></a>
- OPEN languagelang_englishbbcb_mg.js
FIND:
AFTER ADD:
- s_spoiler_help = 'Hide a large message inside a topic[spoiler]Message[/spoiler]';
FIND:
AFTER ADD:
FIND:
BEFORE ADD:
FIND:
BEFORE ADD:
function BBCspoilerbbes()
{
var txtarea = document.post.message;
if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text;
if (theSelection != '')
{
document.selection.createRange().text = "[spoiler]" + theSelection + "[/spoiler]";
document.post.message.focus();
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
//mozWrap(txtarea, "[spoiler]", "[/spoiler]");
mozInsert(txtarea, "[spoiler]", "[/spoiler]");
return;
}
if (Spoilerbbes == 0)
{
ToAdd = "[spoiler]";
document.post.spoiler.src = bbcb_mg_img_path + "spoiler1.gif";
Spoilerbbes = 1;
}
else
{
ToAdd = "[/spoiler]";
document.post.spoiler.src = bbcb_mg_img_path + "spoiler.gif";
Spoilerbbes = 0;
}
PostWrite(ToAdd);
}
An image for BBCode Spoiler when posting
Subject: An image for BBCode Spoiler when posting
Subject: Re: An Image For BBCode Spoiler When Posting
Please, one example of this mod...
.:ZiveruX:.
.:ZiveruX:.
Subject: Re: An image for BBCode Spoiler when posting
adds an icon when posting for quickly add spoiler bbcode
Subject: Re: An Image For BBCode Spoiler When Posting
Last edited by dNow on Mon 10 Dec, 2007 21:42; edited 1 time in total
Hi Zuker!
I tried to install this MOD on my Icy v. 1.1.0.15c. The image is displayed correctly but it doesn't work.
Here's the error i get using Firebug:
and
I tried to repeat the procedure three times...nothing.
Can you help me out please?
Thanks
I tried to install this MOD on my Icy v. 1.1.0.15c. The image is displayed correctly but it doesn't work.
Here's the error i get using Firebug:
and
s_spoiler_help is not defined
document.post.helpbox.value = eval("s_" + help + "_help"); bbcb_mg.js (line 216)
document.post.helpbox.value = eval("s_" + help + "_help"); bbcb_mg.js (line 216)
I tried to repeat the procedure three times...nothing.
Can you help me out please?

Thanks
Last edited by dNow on Mon 10 Dec, 2007 21:42; edited 1 time in total
Subject: Re: An Image For BBCode Spoiler When Posting
Did you put the images in the correct folder?
Try to reapply the mod step by step.
Try to reapply the mod step by step.
Subject: Re: An image for BBCode Spoiler when posting
No need to add this mod if you are using latest RC. :mricy:
Subject: Re: An Image For BBCode Spoiler When Posting
But they have been a great help and ideas for future releases.Zuker wrote: [View Post]

Subject: Re: An Image For BBCode Spoiler When Posting
I found that one needs to clear the template cache. :)
mac wrote: [View Post]
I found that one needs to clear the template cache. :)
Page 1 of 1
You cannot post new topicsYou 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
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 1.1686s (PHP: 14% SQL: 86%)
SQL queries: 31 - Debug Off - GZIP Enabled