Announcement

Collapse
No announcement yet.

Copy quote from one thread to another, shows up different color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wayne Luke
    replied
    Originally posted by lvillelandshark View Post
    Any suggestions for a workaround or fix?
    If we had one, we would give it. As your examples in this very thread don't illustrate the problem in the default style, it is most likely due to your custom style. This would be much harder to replicate and provide a fix for it. I suggest making sure that all of your *_color stylevars have a contrast to the *_background stylevars in your custom style. Also look at your additional.css if you overwrite any of the default CSS there.

    Leave a comment:


  • fxlr8
    replied
    Bump for a fix, same thing happening here.

    Leave a comment:


  • lvillelandshark
    replied
    Bump

    Leave a comment:


  • lvillelandshark
    replied
    Any suggestions for a workaround or fix?

    Leave a comment:


  • lvillelandshark
    replied
    Ok, so as a test, I commented out the code from post #12 above, and when pasting in the copied quote from another thread, and hitting submit, I get a color tag wrapped around my text. I can remove it, and it shows up correctly, but this won't let it parse a color selection in BBCode.

    So something in the editor is inserting the color=#222222 in the code.

    Code:
     [ COLOR=#222222 ] [ / color]

    Leave a comment:


  • lvillelandshark
    replied
    Ok, I turned off BBcodes in that forum for a test, and it inserts the
    Code:
    [FONT=monospace][B]<font color="#222222">[/B][/FONT]
    if you copy a quote from another thread, and then paste it in that forum and hit submit. It shows the code at the beginning, so the editor/bbcode parser is processing the copy and inserting it, but only when copied from another forum.

    This happens in ANY style I try, and is even happening here. This is a bug from the looks of it. Can anyone help me with a work around for the time being?

    Leave a comment:


  • lvillelandshark
    replied
    Ok, scanning through even more files, class_bbcode.php contains the following font color reference:

    Code:
    		if (($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_COLOR) OR $force_all)		{
    			// [COLOR=XXX]
    			$tag_list['option']['color'] = array(
    				'html'         => '<font color="%2$s">%1$s</font>',
    				'option_regex' => '#^\#?\w+$#',
    				'strip_empty'  => true
    			);
    		}
    Besides that file, vbulletin-adminhelp.xml, vbulletin-language.xml, and vbulletin-style.xml all contain reference to 'font color', but they are all specific, green and red references.

    Leave a comment:


  • lvillelandshark
    replied
    Ok, digging a bit more, it's something in the code, and not the style, as it's happening here on this forum as well. If you quote from in the thread you don't get the additional code of the font color. I have changed my style back to the default style (we don't make it available to our users), and it still shows up there. If you view the source of the code on this page on vBulletin's forum, it does the same thing when copying a quote from another thread and pasting it here. It inserts the "Font Color='#222222' before the bbcode_container.

    I have searched all my templates:

    Code:
    <div class="postbody"><div class="postrow">
    <div class="content">
    <div id="post_message_2210455">
    <blockquote class="postcontent restore ">Here is a test of it:<br /><br />
    [B]<font color="#222222">[/B]<div class="bbcode_container">
    	<div class="bbcode_quote">
    
    
    		<div class="quote_container">
    
    
    			<div class="bbcode_quote_container"></div>
    
    
    				<div class="bbcode_postedby">
    
    
    					<img src="images/misc/quote_icon.png" alt="Quote" /> Originally Posted by <strong>ZelleZ</strong>
    
    
    					<a href="showthread.php?p=2208640#post2208640" rel="nofollow"><img class="inlineimg" src="images/buttons/viewpost-right.png" alt="View Post" /></a></div>
    
    
    <div class="message">How do I edit the top left &quot;Forum&quot; tab in vBulletin 4 to say something else? It's the tab next to the &quot;What's New&quot; tab.<br /><br />Also, how do I add additional tabs there?<br />
    <br />Thanks!</div></div></div></div> That is quoted from another thread.</font></blockquote>
    The only reference to "font color" in templates is the help_bbcodes here:

    Code:
    	<vb:if condition="$show['bbcodecolor']">		<div class="block bbcodeblock">
    			<h2 class="blockhead">{vb:rawphrase color}<a name="color"></a></h2>
    			<div class="blockbody">
    				<h3 class="blocksubhead">{vb:rawphrase color_tag_allows}</h3>
    				<ul class="codeblock">
    					<li class="blockrow floatcontainer">
    						<div class="desc">[color=<span class="highlight">{vb:rawphrase option}</span>]<span class="highlight">{vb:rawphrase value}</span>[/color]</div>
    						<div class="title">{vb:rawphrase usage}</div>
    					</li>
    					<li class="blockrow floatcontainer">
    						<div class="desc">[color=blue]{vb:rawphrase this_text_is_blue}[/color]</div>
    						<div class="title">{vb:rawphrase example_usage}</div>
    					</li>
    					<li class="blockrow floatcontainer">
    						<div class="desc"><font color="blue">{vb:rawphrase this_text_is_blue}</font></div>
    						<div class="title">{vb:rawphrase example_output}</div>
    					</li>
    				</ul>
    			</div>
    		</div>
    	</vb:if>
    After that I searched for the 222222 code, and only two template files contained the code, specifically, member-ie.css and vbulletin-formcontrols.css. This is the same in all of my styles.

    Leave a comment:


  • Mark.B
    replied
    Originally posted by lvillelandshark View Post
    Still does it with that editor too:

    http://www.louisville-sportbikes.com...l=1#post434099
    Looking at your source code, something is inserting the following in the wrongly coloured quotes:

    Code:
    <font color="#222222">
    I would do a search in your templates for "font color", because that's a deprecated tag and is not part of any default vB code.

    Though the fact it's only showing up in manually pasted quotes still points to something being done by the editor, somehow.

    Leave a comment:


  • lvillelandshark
    replied
    Originally posted by Mark.B View Post
    I've a feeling this is going to be something to do with the new editor misinterpreting the colours for the WYSIWYG when you post the text in.

    Does the same thing happen if you change to the ditor to the plain text version by pressing the "A/A" button top left?
    Still does it with that editor too:

    http://www.louisville-sportbikes.com...l=1#post434099

    Leave a comment:


  • Mark.B
    replied
    I've a feeling this is going to be something to do with the new editor misinterpreting the colours for the WYSIWYG when you post the text in.

    Does the same thing happen if you change to the ditor to the plain text version by pressing the "A/A" button top left?

    Leave a comment:


  • lvillelandshark
    replied
    ...

    Leave a comment:


  • lvillelandshark
    replied
    Originally posted by Trevor Hannant View Post
    Link to see this? Does this happen if you try it on this forum?
    testing from this thread.
    Last edited by lvillelandshark; Mon 19 Sep '11, 12:07pm.

    Leave a comment:


  • lvillelandshark
    replied
    The post right after it is quoted in the same thread, but the one linked it quoted from a different thread. So it's two different colors and the only thing I did was copy the quote from the one thread and paste it in the other.

    Leave a comment:


  • lvillelandshark
    replied
    Here it is in the forum:

    http://www.louisville-sportbikes.com...l=1#post434088

    Leave a comment:

Related Topics

Collapse

Working...
X