Current time: 04-24-2014, 06:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3 nice MyCodes
09-21-2009, 06:57 AM (This post was last modified: 09-21-2009 07:01 AM by Orbital Shark.)
Post: #1
3 nice MyCodes
Hi all, I thought i'd share some MyCodes that i've put together.

They are 'Advanced Quote', 'Warning' and 'Info.

Advanced Quote
Add a new MyCode with the following attributes....
Title
Code:
Advanced Quote
Short Description
Code:
Advanced/New Quote box
Regular Expression
Code:
\[quote1](.*?)\[/quote1\]
Replacement
Code:
<fieldset class="quote1"><legend><strong>Quote</strong></legend><br/><strong>Quote</strong>: $1<br /><br /></fieldset>

Now edit the global CSS for your theme and add at the bottom
Code:
.quote1 {
    background: #FFE9AC url(images/DarkOrange/quotes.png) center left no-repeat;
    width: 80%;
    color: #465584;
    background-color: #FFE9AC;
    border-left: 0px solid #FFCB3D;
    border-right: 3px solid #FFCB3D;
    border-top: 0px dotted #000;
    border-bottom: 6px solid #FFCB3D;
    padding: 4px;
    padding-left: 50px;
    margin: 0px auto 8px auto;
}

   
Use the following PNG file & your MyCode will look like this
[Image: Quote1.png]

Info
Add a new MyCode with the following attributes....
Title
Code:
Info
Short Description
Code:
Information box
Regular Expression
Code:
\[info\](.*?)\[/info\]
Replacement
Code:
<fieldset class="info"><legend><strong>Info</strong></legend><br/><strong>Message</strong>: $1<br /><br /></fieldset>

Now edit the global CSS for your theme and add at the bottom
Code:
.info {
    background: #BBE0CE url(images/darkorange/info.png) center left no-repeat;
    width: 80%;
    color: #465584;
    background-color: #BBE0CE;
    border-left: 0px solid #1E00FF;
    border-right: 3px solid #1E00FF;
    border-top: 0px solid #1E00FF;
    border-bottom: 6px solid #1E00FF;
    padding: 4px;
    padding-left: 55px;
    margin: 0px auto 8px auto;
}

   
Use the following PNG file & your MyCode will look like this
[Image: Info.png]

Warn
Add a new MyCode with the following attributes....
Title
Code:
Warn
Short Description
Code:
Warning box
Regular Expression
Code:
\[warn\](.*?)\[/warn\]
Replacement
Code:
<fieldset class="warn"><legend><strong>Warning</strong></legend><br/><strong>Message</strong>: $1<br /><br /></fieldset>

Now edit the global CSS for your theme and add at the bottom
Code:
.warn {
    background: #FFDDDD url(images/DarkOrange/warn.png) center left no-repeat;
    width: 80%;
    color: #465584;
    background-color: #FFDDDD;
    border-left: 0px solid #FF0000;
    border-right: 3px solid #FF0000;
    border-top: 0px solid #FF0000;
    border-bottom: 6px solid #FF0000;
    padding: 4px;
    padding-left: 50px;
    margin: 0px auto 8px auto;
}

   
Use the following PNG file & your MyCode will look like this
[Image: Warning.png]

Note: All PNG files are transparent so you can change the colour of the boxes as you see fit. Don't forget the change the images/DarkOrange/......PNG to the location where you choose to put your images.

Happy MyCoding Big Grin
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 12:32 PM
Post: #2
RE: 3 nice MyCodes
Nice.

Ćaskanja
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 01:38 PM
Post: #3
RE: 3 nice MyCodes
Yeah Really Nice Smile

vBulletin/Wordpress/Magento/MyBB
Developer and Designer
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 01:40 PM
Post: #4
RE: 3 nice MyCodes
Thanks Big Grin
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 05:54 PM (This post was last modified: 09-21-2009 05:56 PM by aledTH.)
Post: #5
RE: 3 nice MyCodes
This is great; my members are enjoying this a lot!
Thanks!

EDIT:
1. I want to replace the normal quote box with this; how would I do it?
2. I want to add the Info & Warning box to the formatting bar (the place where Bold is); how would I add them?
Find all posts by this user
Quote this message in a reply
09-21-2009, 06:01 PM
Post: #6
RE: 3 nice MyCodes
(09-21-2009 05:54 PM)aledTH Wrote:  This is great; my members are enjoying this a lot!
Thanks!

EDIT:
1. I want to replace the normal quote box with this; how would I do it?
2. I want to add the Info & Warning box to the formatting bar (the place where Bold is); how would I add them?

Hi, you're very welcome Smile

I've been looking for how to edit the original 'quote' MyCode, it must be embedded in a file somewhere, i don't know yet Sad

I'm looking into how to add onto the edit bar and wil post back any results i find.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 06:01 PM
Post: #7
RE: 3 nice MyCodes
Original quote=Blockquote in the CSS
Find all posts by this user
Quote this message in a reply
09-21-2009, 06:10 PM
Post: #8
RE: 3 nice MyCodes
Thanks but there's no Blockquote in the CSS, only '.quote_head' and '.quote_body'.

I'm looking at changing those, but not just yet Toungue
Visit this user's website Find all posts by this user
Quote this message in a reply
09-21-2009, 06:13 PM
Post: #9
RE: 3 nice MyCodes
No, I mean the normal quotes is blockquotes

Code:
}

blockquote {
    border: 1px solid #ccc;
    margin: 0;
    background: #fff;
    padding: 4px;
}

blockquote cite {
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    font-style: normal;
    display: block;
    margin: 4px 0;
}

blockquote cite span {
    float: right;
    font-weight: normal;
}


blockquote cite span.highlight {
    float: none;
    font-weight: bold;
    padding-bottom: 0;
}
Find all posts by this user
Quote this message in a reply
09-21-2009, 06:42 PM
Post: #10
RE: 3 nice MyCodes
nice=] but I like better that ones from MyBB code pack

Minimalistic Theme | Blue Theme
Auto Live Images Plugin - live statistics on your forum - user avatar, userbar, board signature.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication