Home
Man
Search
Today's Posts
Register

Discuss whatever is on your mind. New members can introduce themselves. Talk or comment about any topic that's on your mind..

Changes to BBCODE for CODE and QUOTE

Tags
bbcode, bbcode_code, bbcode_quote, css, discussions

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-17-2018
Changes to BBCODE for CODE and QUOTE

Hey,

Scrollbars still do not work in code tags (works on mobile because the mobile site does not use any table tags, only div tags), but hopefully that will change when I convert the bits for post and threads to div tags or update to Bootstrap CSS for tables.

In the meantime, I have update the CSS for each:

BBCODE_QUOTE

Code:
<!--bbcode_quote_begin-->
<style>
.bbcode_quote{
 
   margin:2px;
   padding:15px;
   border:1px solid;
   margin-right:10px;
   margin-bottom:10px;
   margin-top:20px
   overflow:auto;
   padding:10px;
   border-style:solid;
   border-color: rgba(0, 0, 0, .2);
   background-color:  rgba(0, 255, 0, .05);
   width=97%;
}
</style>

<div style="overflow:auto;">
<div class="smallfont" style="margin-bottom:8px;margin-left:4px;">$vbphrase[quote]:</div>

<div  class="bbcode_quote">
    <if condition="$show['username']">
      <div style="margin-bottom:20px;">
        <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
        <if condition="$postid">
        <a href="showthread.php?$session[sessionurl]p=$postid#post$postid" 
        rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" 
        alt="$vbphrase[view_post]" /></a>
        </if>
      </div>
    <div style="font-style:italic">$message</div>
    <else />
    $message
    </if>
</div>
</div>
<!--bbcode_quote_end-->

BBCODE_CODE

Code:
<style>

pre {
   
   margin:2px;
   padding:15px;
   border:1px solid;
   margin-right:10px;
   border-style:solid;
   border-color: rgba(0, 0, 0, .2);
   background-color:  rgba(0, 255, 0, .05);

   width=97%;
}
</style>

<div style="overflow:auto";>
<div  class="smallfont" style="margin-bottom:5px;margin-left:3px;">$vbphrase[code]:</div>

<pre  >$code</pre><br />
</div>

Let me know if you want to try any other background colors, from our current green with a lot of opacity:

Code:
background-color:  rgba(0, 255, 0, .05);

Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Replacing all but the first and last double quote in a line with a single quote with awk Michael Stora Shell Programming and Scripting 5 05-23-2015 04:29 AM
Replacing Double Quote in Double Quote incsv file Shalini Badal Shell Programming and Scripting 2 02-13-2015 07:58 AM
Testing BBCODE URL for DragonByte Neo Post Here to Contact Site Administrators and Moderators 1 12-24-2013 07:00 AM
To quote or not g.j.huebschman UNIX for Dummies Questions & Answers 5 08-16-2013 05:37 PM
getting value between double quote BeefStu Shell Programming and Scripting 4 09-28-2011 04:16 PM
replacing a quote in some lines with multiple quote fields wradwan Shell Programming and Scripting 3 06-02-2010 07:53 AM
Regex in grep to match all lines ending with a double quote (") OR a single quote (') NanJ Shell Programming and Scripting 6 08-26-2009 10:28 AM
double-quote inside double-quote indraf Shell Programming and Scripting 3 10-20-2008 06:53 AM
Capturing Data between first quote and next quote scorp_rahul23 Shell Programming and Scripting 4 09-26-2008 09:42 AM
Don't Quote Me On This... Janus Shell Programming and Scripting 3 11-01-2006 11:59 PM


All times are GMT -4. The time now is 12:14 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password