If you can't do it with just HTML, then you will need a MOD, not just a custom bbcode.ze_raph wrote:Is there a way to add a unique identifier in a bbcode html replacement? I was thinking about inserting thread ID or maybe even better author ID, just to make sure someone doesn't post the exact same bbcode.
It might help if I really explain what I'm trying to do, in fact I'm trying to modify this Star Rating BBCode so people can post multiple ratings in the same post/page (with the code provided in the link collisions occur when there are more than one instance of the rating system in one page). It's not such a problem to modify the code there to put an ID (a specific path) to your ratings so they don't collide, however if someone then use the same exact path in another thread, ratings apply to both instances.
Here's my html replacementWhat I'd like to have is something unique, not in control of the user between the "/fof/" and the {IDENTIFIER}Code: Select all
<div class="js-kit-rating" title="" starColor="Golden" path="/fof/{IDENTIFIER}" permalink=""></div><script src="http://js-kit.com/for/fretsonfire.net/ratings.js"></script>
Thanks.