Quote Howto

Since some people want to know this is how I added IBF's 2.0 quotes to IBF 1.3

First you must save this image and upload it to your skins image folder "style_images/1/".

Next you must add the following lines to your stylesheet which is in the AdminCP

.quotemain { background-color: #FAFCFE; border-bottom: 1px dotted #000; border-left: 4px solid #8394B2; border-right: 1px dotted #000; color: #465584; margin: 0px auto 8px auto; padding: 4px; }
.quotetop { background-color: #E4EAF2; background-image: url(style_images/luna/css_img_quote.gif); background-position: right; background-repeat: no-repeat; border-left: 4px solid #8394B2; border-right: 1px dotted #000; border-top: 1px dotted #000; color: #000; font-size: 10px; font-weight: bold; margin: 8px auto 0px auto; padding: 3px; }

Now you must edit a file. (CAUTION! I am not responsible if you mess up your forums by doing this, so make a BACKUP!)

open up the file post_parser.php which is in "sources/lib/" in notepad or some other text editor.

Find: which is at line 715

  return array( 'START' => "</div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>{$possible_use[$in[STYLE]][1]}</b> {$in[EXTRA]}</td></tr><tr><td id='{$possible_use[ $in[STYLE] ][0]}'>",
         'END'   => "</td></tr></table><div {$in[TYPE]}='{$in[CSS]}'>"

Replace with:

  return array( 'START' => "<div class='quotetop'>{$possible_use[$in[STYLE]][1]} {$in[EXTRA]}</div><div class='quotemain'>",
         'END'   => "</div>"

Save and then upload it to your site and WALA! New quote boxes.

Now the quote boxes will only be shown on new posts from the time you added this mod. If you want to replace all the old ones you must do some magic in the MySQL DB, might add a HOWTO on that later.

Anyway Enjoy :)

Tim

#82869

ah already "emulating" 2.0 on a 1.3 bored are we Timan? LOL (Y)

will you be doing more? :wub:

#82997