Change Code: to something else Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Change Code: to something else

    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Change Code: to something else

    Post by DustyBones Wed Jan 25 2012, 18:08

    When I use the Code Display (Change Code: to something else 01-25-20128-01-24AM), is there any way to change the name from Code: that shows in the post to something else?
    I use phpbb2
    Thanks


    Last edited by DustyBones on Sat Jan 28 2012, 03:12; edited 1 time in total
    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Re: Change Code: to something else

    Post by DustyBones Fri Jan 27 2012, 06:34

    Rideem3 wrote:What would you like to change? The text that gets inputted into the text field or the title of it when you hover over it?

    Like this:
    Change Code: to something else 01-26-20128-26-54PM

    The text when you hover over the button would be nice too if possible.

    Thanks,
    Smile
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Change Code: to something else

    Post by LGforum Fri Jan 27 2012, 14:56

    Rather than use javascript for this, you can use CSS:

    Code:

    dl.codebox:before {
        content: " New Name ";
        background: #105289;
        color: #fff;
    }
    dl.codebox dt {
        display: none!important;
    }

    I added some styling just to show you that it can be styled to your liking. Feel free to what you want with it though.
    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Re: Change Code: to something else

    Post by DustyBones Fri Jan 27 2012, 20:12

    LGforum wrote:Rather than use javascript for this, you can use CSS:

    Code:

    dl.codebox:before {
        content: " New Name ";
        background: #105289;
        color: #fff;
    }
    dl.codebox dt {
        display: none!important;
    }

    I added some styling just to show you that it can be styled to your liking. Feel free to what you want with it though.

    That didn't work. Nothing changed.. Sad
    Thanks for trying..
    xiaomah01
    xiaomah01
    Forumember


    Male Posts : 206
    Reputation : 7
    Language : English|Chinese|malay
    Location : malaysia

    Solved Re: Change Code: to something else

    Post by xiaomah01 Fri Jan 27 2012, 20:22

    i also want to know how can change the name for Code and quote
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Change Code: to something else

    Post by LGforum Fri Jan 27 2012, 21:16

    DustyBones wrote:That didn't work. Nothing changed.. Sad
    Thanks for trying..

    Apologies, it was phpbb3. And I don't plan on looking at phpbb2.

    Rideem, i recommend looking at that CSS method I displayed for phpbb3, and converting it to the phpbb2 equivalent. The CSS :after selector can be handy for this exact purpose.
    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Re: Change Code: to something else

    Post by DustyBones Fri Jan 27 2012, 21:40

    Rideem3 wrote:Here's the CSS for phpBB2:
    Admin Panel -> Display -> Colors -> CSS Stylesheet -> Paste:

    Code:
        td.code:before {
        content: "New Name:";
        background: #105289;
        color: #fff;
    }

    div.postbody table td span.genmed {
    display: none;
    }
    Change "New Name:" to whatever you want. Wink

    That didn't work either. It removed Code: from the post display but left it blank.
    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Re: Change Code: to something else

    Post by DustyBones Sat Jan 28 2012, 03:03

    Rideem3 wrote:I just tested it and it works what's the color of your code box?

    This one?
    Change Code: to something else 01-27-20124-56-08PM

    or this one:
    Change Code: to something else 01-26-20128-26-54PM

    And here is all the code in my CSS if you think something might be conflicting

    Spoiler:



    DustyBones
    DustyBones
    Active Poster


    Male Posts : 1234
    Reputation : 528
    Language : English
    Location : Washington, USA

    Solved Re: Change Code: to something else

    Post by DustyBones Sat Jan 28 2012, 03:11

    Working.. thanks a million!
    Closed