An image for BBCode Spoiler when posting


Subject: An image for BBCode Spoiler when posting
  • Copy this images in: imagesbbcb_mgimagesgif

    spoilmi8 spoiler.gif - spoil1hc4 spoiler1.gif

  • OPEN templatesmg_themesbbcb_mg.tpl

    FIND:

    Code: [Download] [Hide]
    1. <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:

    Code: [Download] [Hide]
    1. <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:

    Code: [Download] [Hide]
    1. s_smiley_creator = 


    AFTER ADD:

    Code: [Download] [Hide]
    1. s_spoiler_help = 'Hide a large message inside a topic[spoiler]Message[/spoiler]'; 


    FIND:

    Code: [Download] [Hide]
    1. var Code = 0; 


    AFTER ADD:

    Code: [Download] [Hide]
    1. var Spoilerbbes = 0; 


    FIND:

    Code: [Download] [Hide]
    1. '[code]','[/code]', 


    BEFORE ADD:

    Code: [Download] [Hide]
    1. '[spoiler]','[/spoiler]', 


    FIND:
    Code: [Download] [Hide]
    1. function BBCcode() 


    BEFORE ADD:

    Code: [Download] [Hide] [Select]
    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);
    }


Subject: Re: An Image For BBCode Spoiler When Posting
Thanks I have this mod work now :)

Profile PM  
Subject: Re: An Image For BBCode Spoiler When Posting
Thanks Zuker. You are the best ;)

Profile PM  
Subject: Re: An Image For BBCode Spoiler When Posting
Please, one example of this mod...

.: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
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:
Code: [Download] [Hide] [Select]
BBCspoilerbbes is not defined
javascript:BBCspoilerbbes() (line 1)
and
Code: [Download] [Hide] [Select]
s_spoiler_help is not defined
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? smile

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
I dont' see spoiler icon. Help...

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.

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
my customizations are running out :P

Subject: Re: An Image For BBCode Spoiler When Posting
Zuker wrote: [View Post]
my customizations are running out :P
But they have been a great help and ideas for future releases. 0010

Inactive User
Subject: Re: An Image For BBCode Spoiler When Posting
mac wrote: [View Post]
I dont' see spoiler icon. Help...


I found that one needs to clear the template cache. :)


Page 1 of 1


  
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

   

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