NBBC Callback Tags + CI |
[eluser]nagata[/eluser]
Ok guys so here is my problem, I got my forum, I need bbcode's for it. I found a good system for BBcodes called "NBBC" feel free to google it, So my problem is that there are Callback Tags, They give ability to do function's. Sadly when I tried to combine my CI code and this NBBC system It just broke the code in half way... So any help guys? Ps. Also I am sorry I am asking so many questions and so often I am just learning
[eluser]Raeony[/eluser]
Someone else found out how to use NBBC with CodeIgniter : http://codeigniter.com/wiki/NBBC_Library_Wrapper/ If you can't get it to work, there are some BBCode helpers out there : http://codeigniter.com/wiki/Another_BBCode_Helper/ http://codeigniter.com/wiki/BBCode_Helper/ Good luck
[eluser]nagata[/eluser]
The problem is that Callback's must have the function's in global namespace... Library's have a class... CI seem to work only in its library class... any way to make CI function outside of namespace?
[eluser]nagata[/eluser]
been five hours now, none wants to tell me how to add CI functional into global namespace...
[eluser]nagata[/eluser]
Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); there is a test variable in MC function, its just there to see if It would work or not, what I basicly need is ability to interct with the rest of the CI outside from a function like that MC func... any help? ps. going sleep now, hope for some help tomorow...
[eluser]nagata[/eluser]
So yeah I figured it out on my own, as always -.-... Thanks for nothing.
[eluser]jmadsen[/eluser]
[quote author="nagata" date="1341554597"]So yeah I figured it out on my own, as always -.-... Thanks for nothing.[/quote] Since you always figure it out on your own anyway, why didn't you just work a little harder till you got it this time, instead of ruining your reputation on this forum by acting like a complete jerk? No one here owes you anything. We offer help for FREE when we have the time and some idea of what the problem might be.
[eluser]nagata[/eluser]
Yeah sorry, its just I waited for a whole day hoping for some solution, and none helped.... Also I solved the problem by calling my Library called "Mybbcode" right from the function, like this Mybbcode::Test( $params); Is someone was wondering... |
Welcome Guest, Not a member yet? Register Sign In |