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.

Change Code: to something else

3 posters

Go down

Solved Change Code: to something else

Post by DustyBones January 25th 2012, 5:08 pm

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 28th 2012, 2:12 am; edited 1 time in total
DustyBones
DustyBones
Active Poster

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

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Change Code: to something else

Post by DustyBones January 27th 2012, 5:34 am

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
DustyBones
DustyBones
Active Poster

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

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Change Code: to something else

Post by LGforum January 27th 2012, 1:56 pm

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.
LGforum
LGforum
Hyperactive

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

Back to top Go down

Solved Re: Change Code: to something else

Post by DustyBones January 27th 2012, 7: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..
DustyBones
DustyBones
Active Poster

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

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Change Code: to something else

Post by xiaomah01 January 27th 2012, 7:22 pm

i also want to know how can change the name for Code and quote
xiaomah01
xiaomah01
Forumember

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

http://johor.forumn.org/

Back to top Go down

Solved Re: Change Code: to something else

Post by LGforum January 27th 2012, 8: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.
LGforum
LGforum
Hyperactive

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

Back to top Go down

Solved Re: Change Code: to something else

Post by DustyBones January 27th 2012, 8: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

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Change Code: to something else

Post by DustyBones January 28th 2012, 2:03 am

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

http://raps-graphics.forumotion.com/

Back to top Go down

Solved Re: Change Code: to something else

Post by DustyBones January 28th 2012, 2:11 am

Working.. thanks a million!
Closed
DustyBones
DustyBones
Active Poster

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

http://raps-graphics.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum