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
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 January 25th 2012, 11:08 am

    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 January 27th 2012, 8:12 pm; 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 January 26th 2012, 11:34 pm

    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 January 27th 2012, 7:56 am

    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 January 27th 2012, 1:12 pm

    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 January 27th 2012, 1:22 pm

    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 January 27th 2012, 2:16 pm

    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 January 27th 2012, 2:40 pm

    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 January 27th 2012, 8:03 pm

    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 January 27th 2012, 8:11 pm

    Working.. thanks a million!
    Closed

      Current date/time is November 11th 2024, 3:13 pm