DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • May 20, 2013, 05:48:25 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 [2]   Go Down
  Print  
Author Topic: Simple BBCodes  (Read 2841 times)
0 Members and 1 Guest are viewing this topic.
Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #15 on: November 15, 2009, 07:24:18 AM »

Module Name: Simple BBCodes
Version: 0.11
Description: Allows users to input BBCodes into chat. Allowed BBCodes are admin-configurable.
Compatibility: Tested on 1.1.1, should be compatible with all versions 1.0.6+ at least.
File Submission: http://dragonprime.net/index.php?topic=10685.msg91923

BBCode functionality includes the following:
img - disabled by default
url - disabled by default
font
b
i
u
color
blink - disabled by default (not compatible with all browsers)
glow - disabled by default (not compatible with all browsers)

Usage:
Code:
[img]link[/img]
[font=fontname]text[/font]
[b]text[/b]
[i]text[/i]
[u]text[/u]
[color=fontcolor]text[/color]
[blink]text[/blink]
[glow=glowcolor]text[/glow]

Comments, feature suggestions, help with browser issues, etc welcome Smiley

Say whaaa..? No Strikethrough? I am just kidding Iori. Nice modle you have here. no more editting /lib/sanitize.php in order to get bold and italics in the village! =D
Logged
Xanto
Militia
**
Offline Offline

Posts: 11


View Profile
« Reply #16 on: November 15, 2009, 11:48:00 PM »

I agree nice module, should defiantly come in handy for some people.  Smiley
Logged

Administrator at The Hunger Game RPG & Moderator at Harry Potter Online RPG.
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #17 on: November 16, 2009, 04:28:41 AM »

Say whaaa..? No Strikethrough? I am just kidding Iori. Nice modle you have here. no more editting /lib/sanitize.php in order to get bold and italics in the village! =D

Version 0.12

- Added strikethrough as per request.
- Changed the way BBCodes interact with colour codes. Now, colour codes that are used outside of BBCode tags will not affect the text inside the tags (will still work as normal for everything non-BBCode related). Colour codes inside BBCode tags will still work as normal. This was done due to the fact that the colour code `0 (used before a BBCode start tag, along with an unclosed colour code inside the tag), could be used to break BBCodes functionality.

Updated file attached to the first topic on the File Submission thread.
Logged

Stephen Kise
Codemeister
****
Offline Offline

Posts: 372



View Profile WWW
« Reply #18 on: November 16, 2009, 07:45:33 AM »

SWEET! Thank you Iori!  I love strikethrough! =]
Logged
KaosKaizer
Mod God
*****
Offline Offline

Posts: 1000


Love bites, but so do I!


View Profile
« Reply #19 on: November 23, 2009, 01:43:23 PM »

Perhaps, if possible, could you put in <acronym> or <abbr>? (they do basicly the same thing, I think). I love the module, by the way Cheesy

:: EDIT ::
Also, for some reason, I can't get the strikethrough to work. Undecided
« Last Edit: November 23, 2009, 01:47:05 PM by kaizerDRAGON » Logged

My Mods
Like to read? "Like" my page. Smiley
For reasons I'd prefer not to explain, I will not be active until further notice. I will not make any posts and I will ignore all PMs.
Iori
Mod God
*****
Offline Offline

Posts: 832


View Profile WWW
« Reply #20 on: November 23, 2009, 04:30:05 PM »

Perhaps, if possible, could you put in <acronym> or <abbr>? (they do basicly the same thing, I think). I love the module, by the way Cheesy

:: EDIT ::
Also, for some reason, I can't get the strikethrough to work. Undecided

Sure, I can add abbr. However, I am not sure what the most logical syntax would be for it as a BBCode. shorttext would seem...odd.
That's apparently how it works everywhere else...guess I'll add it like that. New version will be uploaded tonight (when I'm on something other than a mac).

As to the strikethrough issue. What most likely happened is that your game cache has not updated after you installed a newer version of this module. The quirk with using get_all_module_settings() is that it loads all settings for the module from cache, so any new settings you add in will not take effect until the current cache for that module's settings has expired (or gets invalidated).

UPDATE: Version 0.13 uploaded. Can be found on the File Submission thread.
« Last Edit: November 24, 2009, 03:25:59 AM by Iori » Logged

Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
24 Guests, 1 User
Aeo
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search