how to make your own bbcodes?
Posted: Tue Feb 28, 2012 1:50 am
Hello everyone wanted to ask if anyone got any experience with bbcodes. Where exactly do you download the source? And besides that how can you make like your own bbcode: for example like if you're sending a message to another player in the game and in your message you put [player] arigato23 [/player]
And when the other player recieves that message their html would be <a href="('arigato's profile.php')">arigato23</a>
yeah I know I would have to query if the player exists and all that, but how to know when it's surrounded by the [player][/player] ...
Oh also how like what would be the javascript(if that's the one) to do when you highlight a section of a text and then press the B button for example and then it puts the [ b][/b] around that highlighted text.
regards to everyone!
And when the other player recieves that message their html would be <a href="('arigato's profile.php')">arigato23</a>
yeah I know I would have to query if the player exists and all that, but how to know when it's surrounded by the [player][/player] ...
Oh also how like what would be the javascript(if that's the one) to do when you highlight a section of a text and then press the B button for example and then it puts the [ b][/b] around that highlighted text.
regards to everyone!