Script to change backgroundcolor code,quotes(PunBB)

Go down

Solved Script to change backgroundcolor code,quotes(PunBB)

Post by Mystery on August 4th 2008, 1:33 pm

Hello hi people.. Can somebody tell me the script in changing those background? In CSS? i have a hard time changing it in admin panel>Colors>Buttons, Code and Quote color . It doesn't change at all. So i'm thinking if there's another way to modify it like in css.. can somebody help me in this.. I'm using PunBB, its good, its just that i dont like the background color of the code and quoted message.. thank you all in advance! bounce


Last edited by Mystery on August 8th 2008, 5:28 pm; edited 1 time in total
Mystery
Mystery
Forumember

Male Posts : 44
Reputation : 0
Language : English

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Mystery on August 4th 2008, 3:40 pm

can somebody help me on this? Sad
Mystery
Mystery
Forumember

Male Posts : 44
Reputation : 0
Language : English

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Saurus on August 4th 2008, 7:40 pm

You want to change the BG color of the quoted text box? Please explain better if you want help.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Guest on August 4th 2008, 7:57 pm

Code:

/*Posting layouts*/
.postmain blockquote {
padding: 0.5em 1em;
background-color: #fff;
border: 1px solid #cccccc;
}
.postmain cite {
display: block;
background-color: #fff;
background-repeat: no-repeat;
padding: 0em 2em;
margin: 0 0 1em 0;
font-weight: bold;
font-style: normal;
}

You can change the colour of the background or even add an image by changing the second part (Colour code in bold)

.postmain cite {
display: block;
background-color: #fff;
background-repeat: no-repeat;
padding: 0em 2em;
margin: 0 0 1em 0;
font-weight: bold;
font-style: normal;
}


Regards






Craig
avatar
Guest
Guest


Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Mystery on August 8th 2008, 8:36 am

Hmm.. Placehold is that also applicable in PunBB? I never really modify my css before. And i'm quite scared if it messed up and cant restore back to the original.

About saurus: Yes, indeed. My question is about changing the background of quoted text box.
Like this one, mine have white background. This is what i wanted to change. But the AdminPanel>Display>Colors>Background quote and code, is not working on me. It doesn't change the background color of this.

hope you can help me on this.
Mystery
Mystery
Forumember

Male Posts : 44
Reputation : 0
Language : English

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Creazy8 on August 8th 2008, 9:45 am

hi i have a question, can i change and add image in to quote codes in phpbb2?

example:
Script to change backgroundcolor code,quotes(PunBB) Screen10

sory for offtop
avatar
Creazy8
Forumember

Male Posts : 184
Reputation : 0
Language : Poland, not good in english ;)

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by zakir321 on August 8th 2008, 2:07 pm

@Mystery: In general, if a CSS code messes something up on your board, you can simply remove it again. Your forum would appear as if you never added this piece of code. Wink

Add the following CSS to your Stylesheet (at the very bottom) to change the bg-color of your quotes:

Code:
.postmain blockquote{background-color: #ff0000;}

@Creazy: Add the following code to your CSS Stylesheet (Display >> Colors >> CSS) :
Code:

.quote{
 background: url(http://illiweb.com/fa/prosilver/quote.gif) no-repeat 5px 5px;
 padding-left: 25px;
}
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Mystery on August 8th 2008, 5:27 pm

[quote="Sunny_D"]@Mystery: In general, if a CSS code messes something up on your board, you can simply remove it again. Your forum would appear as if you never added this piece of code. Wink

Add the following CSS to your Stylesheet (at the very bottom) to change the bg-color of your quotes:

Code:
.postmain blockquote{background-color: #ff0000;}

Hmm.. Thanks for the response Mr. Sunny_D Very Happy Very Happy It really works!! Should i place all my CSS code at the bottom? Thanks!

CASE CLOSED=LOCKED
Mystery
Mystery
Forumember

Male Posts : 44
Reputation : 0
Language : English

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Creazy8 on August 8th 2008, 8:24 pm

thanks Sunny_D for helping Very Happy

its not working Sad image not show in quote on my forum Sad
avatar
Creazy8
Forumember

Male Posts : 184
Reputation : 0
Language : Poland, not good in english ;)

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Guest on August 8th 2008, 8:49 pm

did you try the coded i posted?

@Mystery, Yes it works in Punbb aswell

Sorry for not answering straight away

Regards






Craig
avatar
Guest
Guest


Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by zakir321 on August 8th 2008, 11:48 pm

Creazy, the code I provided does work for phpBB version 2. It adds the image to the left side of the quote box, just like here on the support forum. The only disadvantage is that also spoiler and hide boxes will have that image. This cannot be changed. But try to do the following:

- check if you have placed this custom code at the very bottom of your stylesheet and that you have clicked "submit" after you added the code

- check if your forum version is really phpBB v2. In your admin panel, click on the display-tab and you should then see your current forum version.

@Placehold: Sorry that I was repeating you, when I quickly looked at your reply, I only saw the ".cite" part what would have been not entirely correct. That's actually why I have posted the blockquote again. Razz
avatar
zakir321
New Member

Posts : 0
Reputation : 2
Language : english

Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Guest on August 8th 2008, 11:52 pm

lmao

Nah its alright dude Smile

regards





Craig
avatar
Guest
Guest


Back to top Go down

Solved Re: Script to change backgroundcolor code,quotes(PunBB)

Post by Nessa on August 9th 2008, 3:03 pm

Since this problem appears to be resolved, I will lock this thread now.

=> ( Members Problem Solved )

=> Locked

Nessa
Nessa
Nessa
Energetic

Female Posts : 6203
Reputation : 128
Language : English

Back to top Go down

Back to top


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