Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Addon] Smileys in News-Comments

Newbie Spellweaver
Joined
Jan 10, 2017
Messages
76
Reaction score
32
Hello,
Ive made a small addon for BrainCMS that adds smileys support to the news-comments.
Feedback is welcome.

Screen:

Setup
1) Download the zip and replace the files
2) In system/brain-config.php add this code at the bottom of the file (above ?>)

Code:
[LIST=1]
[*][COLOR=darkgoldenrod]/**[/COLOR]
[*][COLOR=darkgoldenrod] * Smiley Addon[/COLOR]
[*][COLOR=darkgoldenrod] */[/COLOR]
[*][COLOR=blue]$config[/COLOR][COLOR=green][[/COLOR][COLOR=red]'smileys'[/COLOR][COLOR=green]] = [[/COLOR]
[*][COLOR=darkgoldenrod]/**[/COLOR]
[*][COLOR=darkgoldenrod]     * Enable / disable the smileys[/COLOR]
[*][COLOR=darkgoldenrod]     */[/COLOR]
[*][COLOR=red]'enabled' [/COLOR][COLOR=green]=> [/COLOR][COLOR=blue]true[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=darkgoldenrod]/**[/COLOR]
[*][COLOR=darkgoldenrod]     * Directory where the smileys are stored.[/COLOR]
[*][COLOR=darkgoldenrod]     */[/COLOR]
[*][COLOR=red]'directory' [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'/templates/brain/style/images/smileys'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=darkgoldenrod]/**[/COLOR]
[*][COLOR=darkgoldenrod]     * Add your own replacements[/COLOR]
[*][COLOR=darkgoldenrod]     */[/COLOR]
[*][COLOR=red]'replacements' [/COLOR][COLOR=green]=> [[/COLOR]
[*][COLOR=red]':)'     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'smiling.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]':('     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'sad.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]';)'     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'wink.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]':P'     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'tongue-out-1.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]':D'     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'happy-1.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]':\'('   [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'unhappy.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]'>:(' [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'angry.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=red]':*'     [/COLOR][COLOR=green]=> [/COLOR][COLOR=red]'kissing.svg'[/COLOR][COLOR=green],[/COLOR]
[*][COLOR=green]    ],[/COLOR]
[*][COLOR=green]];[/COLOR]
[/LIST]

If done correctly, you now have smileys in the next comment someone posts.
Sorry for my english, im swiss
 

Attachments

You must be registered for see attachments list
Last edited:
Back
Top