Custom Blockquote Style Issues.

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Nagios
Registered User
Posts: 6
Joined: Thu Mar 04, 2010 5:43 pm

Custom Blockquote Style Issues.

Post by Nagios »

I have created this custom block quote that changes background, font colors, border colors and the whole nine yards. The issue is when this custom code is used in the same post that has a normal quote the normal quote seems to be following the style of the block quote. I've parsed through the code and nothing obvious jumps out at me so I'm turning to professionals. :) I think it has something to do with the <style> section, since that's what controls the colors and layout, but everything I've tinkered with seems to either break it or not do anything at all. Thanks so much in advance!

Board Version: 3.0.7-PL1

BBCode usage:

Code: Select all

[blizzquote]{TEXT}[/blizzquote]
HTML Replacement:

Code: Select all

<style>
blockquote { 
    background: #000000;
    border-left-style: solid;
    border-left-width: 4px;
    border-left-color: #0099FF;
    border-right-style: solid;
    border-right-width: 4px;
    border-right-color: #0099FF;
    border-top-style: solid;
    border-top-width: 4px;
    border-top-color: #0099FF;
    border-bottom-style: solid;
    border-bottom-width: 4px;
    border-bottom-color: #0099FF;
    padding: 20px;
}
</style>

<blockquote class="uncited"><div><img src="http://lordsofalex.net/images/blizz/blizz_ico.gif" alt="Image" /><span style="color: #4080FF">Quote from: <b>Blizzard</b></span></div><br><span style="color: #4080FF">{TEXT}</span></blockquote>
Problem Image Sample: Top is quoted, the bottom is the custom bbcode.
Image
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52169
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Custom Blockquote Style Issues.

Post by Brf »

Your style block is overriding the style associated with blockquotes, which are used for the phpbb standard quotes too.

You should be using

Code: Select all

blockquote.uncited {
Nagios
Registered User
Posts: 6
Joined: Thu Mar 04, 2010 5:43 pm

Re: Custom Blockquote Style Issues.

Post by Nagios »

That worked like a charm! I can't express in words how to thank you enough. :D
User avatar
GravityDK
Registered User
Posts: 38
Joined: Mon Feb 22, 2010 7:11 am
Contact:

Re: Custom Blockquote Style Issues.

Post by GravityDK »

I also wanted this, thank you both.
Locked

Return to “[3.0.x] Support Forum”