Customizing SMF > Tips and Tricks

[edit] Tag [/edit]

(1/4) > >>

kurotenshi:
I often use [edit] tag when I was edited to some post. Then my mind pop-up "Hey, let's made this a BBC!"
Ok, then I made it. And here it are, for you all, fancy [edit] tag ;D

Paste this in Sources/Subs.php after line 913

--- Code: ---// Edit tag
'~\[edit\](?:<br />)?~i' => isset($disabled['edit']) ? '<div>' : '<div style="font-size: x-small; font-weight: 600;">Editor says:</div><div style="border: 1px solid black; font-size: x-small; font-weight: bold; padding: 2px; background: pink;">',
--- End code ---

Then put this code in your Post.template.php after line 648


--- Code: ---'edit' => array('code' => 'edit', 'before' => '[edit]', 'after' => '[/edit]', 'description' => 'Post editing'),
--- End code ---

Ok, and then you can use [edit] [/edit] in your board.

Preview in action: link dead, removed by Owdy.

Sorry, pink is fine color :P

FaSan:
Great ! ;)

[Unknown]:
Background pink?

Anyway, looks fine to me :).

-[Unknown]

frost:
i like this solution!!


can it be made a feature in  the next issue of SMF? pllleeeeeaaaaasssseeeeeeeee?????  :D :D :D

kurotenshi:

--- Quote from: [Unknown] on March 20, 2005, 09:14:38 PM ---Background pink?

--- End quote ---

Yes!! Why not  ;D I just pick a color what isn't in common use... And pink is just that kind color. But anyone could change it, if want...

Navigation

[0] Message Index

[#] Next page

Go to full version