![]() |
Cel PHP in Custom BBCode
1 Attachment(s)
This addon allows for PHP-Code to be used in Custom BBCodes It offers a framework for the easy integration and sharing of custom BBCodes that are based on PHP processing of the data entered by the user. It could, for example, be used to develop BBCodes that use multiple options or to poll database information. It does allow for the Admin to use PHP in the Backend - it does, of course, not allow this to forum visitors. You need to know PHP to use this Addon to develop your own PHP based bbcodes, however it would be possible to share them as an extension to this addon. Installation: - install the product file - done. Using PHP in Custom BBCodes: Create your Custom BBCode as always, and just put your PHP into the Replacement box (where the HTML used to go). Just remember two things: For coders: include instead of eval If you'd rather store the PHP for your new BBCodes in the file system for ease of development, that's possible, too:
|
PHP BBCode Examples:
To test them, go to AdminCP->Custom BB Codes->Add new BB Code and fill in the form: --------------------------------------------------------------------
PHP Code:
PHP Code:
|
Please I don't understand what this Mod is doing since I am a beginner can you please give us a simple clarification?
Thank You |
If you're not familiar with PHP this addon probably is not for you. It allows you to use PHP code when processing BBCodes, so you are much more free when it comes to what you can do with BBCodes. You could do BBCodes with multiple options, for example, or poll your database for information. But you'd need to write the code for that yourself, this offers just the framework to run that code.
|
this is what i'm looking for. T
|
Then mark as installed ;)
|
Nice work! thank you
I need a little help please. I am trying to make bbcode with three options. I need the pop up form for the option to have three text areas for three inputs. It is ok with me if the contents of those areas got in one string after submitting them. I can divide them in the php file. is this possible? if not is there anyway to make a pop up form of my own? |
cellarius, this looks really useful! But could you kindly review your OP and possibly add more info, and clarify some potentially confusing language. Simplify your sentence construction so that someone who has english as a second language can understand 100%.
Same goes for your examples post. A more interesting third example would be great too! The magic is in the write up! Not just the code :-) |
If you needed to do a query with the value is it already sanitized?
|
Havn't checked that. Just give it a try.
|
All times are GMT. The time now is 09:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|