Stylish BBCode Buttons for Comments Form

Download plugins, language packs and stuff.

Stylish BBCode Buttons for Comments Form

Postby DarkSlim » Tue Nov 10, 2009 6:14 pm

I didn't really like the bbcodes under the comments form as they are so
I made nice buttons to replace them and a code instead {bbcodes}

1. Download the attached .rar file containing the buttons images, place them
in your CNR/skins/images folder or wherever you would like.

2. Edit your template, in the comments form add wherever you want
(preferably under the smilies) the following code:

Code: Select all
<noindex>
<a href="javascript:insertext('[q]',%20'[/q]',%20'short')"><img src="path/to/images/bbcq.jpg" border="0" alt=""></a>
<a href="javascript:insertext('[del]',%20'[/del]',%20'short')"><img src="path/to/images/bbcdel.jpg" border="0" alt=""></a>
<a href="javascript:insertext('[u]',%20'[/u]',%20'short')"><img src="path/to/images/bbcunder.jpg" border="0" alt=""></a>
<a href="javascript:insertext('[i]',%20'[/i]',%20'short')"><img src="path/to/images/bbcitalic.jpg" border="0" alt=""></a>
<a href="javascript:insertext('[b]',%20'[/b]',%20'short')"><img src="path/to/images/bbcbold.jpg" border="0" alt=""></a>
</noindex>


* Just replace the "path/to/images/" with your real path to the images. :)

* To add a new button, add it in the quick tags, creat another image (I can help with this)
and add another one line of code in the template as shown.

That's it, clear your cache and check it out, you can always edit the images or replace them with your own. ;)

DarkSlim
Attachments
bbcodes.rar
BBcodes button images!
(3.42 KiB) Downloaded 124 times
Last edited by DarkSlim on Tue Nov 10, 2009 6:52 pm, edited 1 time in total.
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Torstein » Tue Nov 10, 2009 6:33 pm

What does <noindex> and </noindex> do?
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm

Postby DarkSlim » Tue Nov 10, 2009 6:57 pm

As a matter of fact I had no idea, but it was used in connection with the smilies
and the bbcodes so I left it there, I've searched about it a bit, and it seems that
it's working like the "noindex" meta tag or so, it's for search engines not to index
a specific part of your page, like the smilies and the bbcodes I guess, no clue why
I woldn't want it to be indexed really (maybe for image searching bots or so?)
plus, it seems that the <noindex> tag is really not a regular html tag, but a tag
supported by russian search engines (maybe other? no idea) so it was left there
from the first CNR versions, I guess. :)

In conclusion, it does no harm, but you can take it off if you want. ^^
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby eberswine » Wed Nov 11, 2009 11:06 pm

Check out these custom buttons!

I try and make it more simple for regular users when updating articles and news and such!

It isn't super pretty, but it works well for users!


Image
Last edited by eberswine on Thu Nov 12, 2009 12:38 am, edited 1 time in total.
User avatar
eberswine
 
Posts: 289
Joined: Thu Apr 26, 2007 7:23 pm

Postby D72 » Wed Nov 11, 2009 11:29 pm

eberswine wrote:Check out these custom buttons!...


your image is not showing
User avatar
D72
 
Posts: 336
Joined: Thu Feb 22, 2007 12:05 am
Location: NL


Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron