When I use the Code Display (), is there any way to change the name from Code: that shows in the post to something else?
I use phpbb2
Thanks
I use phpbb2
Thanks
Last edited by DustyBones on January 27th 2012, 8:12 pm; edited 1 time in total
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?
dl.codebox:before {
content: " New Name ";
background: #105289;
color: #fff;
}
dl.codebox dt {
display: none!important;
}
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.
DustyBones wrote:That didn't work. Nothing changed..
Thanks for trying..
Rideem3 wrote:Here's the CSS for phpBB2:
Admin Panel -> Display -> Colors -> CSS Stylesheet -> Paste:
Change "New Name:" to whatever you want.
- Code:
td.code:before {
content: "New Name:";
background: #105289;
color: #fff;
}
div.postbody table td span.genmed {
display: none;
}
Rideem3 wrote:I just tested it and it works what's the color of your code box?
.bodyline{
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px; /*For future*/
}
#pwd_good {
background:url('http://i1042.photobucket.com/albums/b430/RapsGraphics/strong.png');
}
#pwd_middle {
background:url('http://i1042.photobucket.com/albums/b430/RapsGraphics/medium.png');
}
#pwd_bad {
background:url('http://i1042.photobucket.com/albums/b430/RapsGraphics/weak.png');
}
a[href="/viewonline"] { margin-left:27%; }
a:link, a:active, a:visited {text-decoration:none !important;}
a:hover {text-decoration:none !important;}
a.mainmenu img {
-khtml-opacity : 0.7;
-moz-opacity : 0.7;
filter : alpha(opacity=100);
opacity : 1;
}
a.mainmenu:hover img {
-khtml-opacity : 1;
-moz-opacity : 1;
filter : alpha(opacity=75);
opacity :.75;
}
.posting img , .post-options img {
opacity: 1;
filter: alpha(opacity=100);
}
.posting img:hover , .post-options img:hover {
opacity: .75;
filter: alpha(opacity=75);
}
a:hover {
text-shadow: 0px 0px 8px #FF0000; height: 50px;
}
#i_post, #one, #i_reply, .i_msg_newpost {
filter:alpha(opacity=100); opacity:1;
}
#i_post:hover, #one:hover, #i_reply:hover, .i_msg_newpost:hover {
filter:alpha(opacity=75); opacity:.75;
}
.catLeft .genmed {color:white;}
body.chatbox {
background-image : url('http://i1042.photobucket.com/albums/b430/RapsGraphics/cabbkgrnd2.png');
background-repeat : no-repeat;
background-position : left 50px;
}
.chatbox_row_1 {
background-color: transparent;}
.chatbox_row_2 {
background-color: transparent;}
#chatbox_header a[href="/chatbox/index.forum"] {
background-image: url("http://i1042.photobucket.com/albums/b430/RapsGraphics/cbcat3.png");
background-position: 0px -10;
background-repeat: no-repeat;
color: transparent !important;
}