Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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);
    }


 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
Thanks I have this mod work now
 



 
diegomakSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
Thanks Zuker. You are the best
 



 
SerginiSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
Please, one example of this mod...

.:ZiveruX:.
 



 
ZiveruXSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An image for BBCode Spoiler when posting 
 
adds an icon when posting for quickly add spoiler bbcode
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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 
dNowSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
I dont' see spoiler icon. Help...
 



 
macSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
~~~ Andrea ~~~
User #379756 on Linux Counter
"If you can't apt-get something, it isn't useful or doesn't exist!!"
 
buldoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An image for BBCode Spoiler when posting 
 
No need to add this mod if you are using latest RC.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
my customizations are running out
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: An Image For BBCode Spoiler When Posting 
 
Zuker wrote: [View Post]
my customizations are running out
But they have been a great help and ideas for future releases.  0010
 




____________
www.variopinto.tk3.net Downloads
www.gepese.tk3.net Everything for your Garmin GPS in Spanish.

Sorry by my badly English
 
BEN-HURSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron