The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    replace buttons images of posts

    avatar
    Guest
    Guest


    Solved replace buttons images of posts

    Post by Guest 8/3/2012, 20:46

    Hello,

    I have tried some codes to replace a icon with other, but dont work.

    For Examples , the image of button this --> replace buttons images of posts Text_bold replace with something other.
    I have tried javascript codes but ... nothing.
    avatar
    SimpleUI
    New Member


    Posts : 18
    Reputation : 2
    Language : German

    Solved Re: replace buttons images of posts

    Post by SimpleUI 8/3/2012, 23:39

    When you're using punBB as your profile says you could just replace it by changing the HTML template it is in.

    However, if you use phpBB3 or Invision you could do it using CSS.
    Code:
    img[src=" LINK OF IMAGE YOU WANT TO REPLACE "] {
      height: 0;
      width: 0;
      background-image: url( LINK TO IMAGE );
      padding: HEIGHTpx WIDTHpx 0 0;
    }
    Change the uppercased part to however you need it. For example:
    Code:
    img[src="http://2img.net/i/fa/wysiwyg/text_bold.png"] {
      height: 0;
      width: 0;
      background-image: url( http://img705.imageshack.us/img705/6648/ticks.png );
      padding: 16px 16px 0 0;
    }
    This would replace the bold-icon you used in your post by an image showing a tick.
    avatar
    Guest
    Guest


    Solved Re: replace buttons images of posts

    Post by Guest 9/3/2012, 00:29

    it doesnt work.

    I have punbb.
    avatar
    SimpleUI
    New Member


    Posts : 18
    Reputation : 2
    Language : German

    Solved Re: replace buttons images of posts

    Post by SimpleUI 9/3/2012, 01:07

    I don't know if it is the same as in phpBB2, but look if you can find the following:

    Administration Panel -> Display -> Templates -> Post & Private Messages -> posting_body
    Search: id="text_edit"
    If it doesn't find it just scroll down to a wall of button tags. There scroll a bit to the right and you should find the img tag in which you can replace the src link.
    Code:
    <img src="{PATH_IMG_FA}wysiwyg/text_bold.png" alt="{L_BBCODE_B}" />
    Code:
    <img src="http://img705.imageshack.us/img705/6648/ticks.png" alt="{L_BBCODE_B}" />
    avatar
    Guest
    Guest


    Solved Re: replace buttons images of posts

    Post by Guest 9/3/2012, 01:32

    thank you! Smile
    MrMario
    MrMario
    Helper
    Helper


    Male Posts : 22186
    Reputation : 1839
    Language : test

    Solved Re: replace buttons images of posts

    Post by MrMario 9/3/2012, 07:18

    Topic Solved & Locked

      Current date/time is 23/9/2024, 02:13