Jump to content

Dynamic Custom BBCode


Guest Luke

Recommended Posts

Instead of using "html replacement" provide a PHP plugin file. That way you can do custom dynamic things on-the-fly.

I did this myself on my forums, but because of time it takes to upgrade a forum with modifications I removed it (and all modifications on the site).

One of the "custom bbcodes" using the "dynamic bbcode" function was the "random" tag. It allowed members to specify different content every time the page refreshed. This was extremely popular in signatures. After I removed it I got a lot of complaints...

Example of use:

[random][img=http://www.mysite.com/image1.jpg[/img][?][img]http://www.mysite.com/image2.jpg[/img][?][img]http://www.mysite.com/image3.jpg]



With this example it would only display one of these images, different every refresh.

With "dynamic custom bbcode" you can also do things like code highlighting, etc...

I really wish "dynamic bbcode" was a feature...

Link to comment
Share on other sites

Actually it does. The thread that I linked to is requesting the ability to process BBcode by predefined php scripting, similar to how new settings are allowed to execute php code to process them. Allowing such php expansion to the existing bbcode system covers this request among many others. :)

Link to comment
Share on other sites

I have found this feature very useful in the past. The thread actually does pertain to this topic, just on a more broad scale. I am supporting this topic in hopes that this feature will come out (soon) in the future, and I hope to use it on my boards.
Link to comment
Share on other sites

You can't use BBCode in avatars though ;)



But yes it would be nice to have an option to where certain BBCodes can be used :).



BBCode in avatars....

You've hit something on the head there. Might not be a bad thing, who said avatars HAVE to be images.?
Link to comment
Share on other sites

I've added quite a few modifications using javascript (because of course, PHP requires hacking the coding... too much hassle/work/chance-of-error) and random images can be done via Javascript... and as far as I know, you should be able to put Javascript into the custom BB-tags area.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...