NBBC Callback Tags + CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: NBBC Callback Tags + CI (/showthread.php?tid=52981) |
NBBC Callback Tags + CI - El Forum - 07-05-2012 [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 NBBC Callback Tags + CI - El Forum - 07-05-2012 [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 NBBC Callback Tags + CI - El Forum - 07-05-2012 [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? NBBC Callback Tags + CI - El Forum - 07-05-2012 [eluser]nagata[/eluser] been five hours now, none wants to tell me how to add CI functional into global namespace... NBBC Callback Tags + CI - El Forum - 07-05-2012 [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... NBBC Callback Tags + CI - El Forum - 07-05-2012 [eluser]nagata[/eluser] So yeah I figured it out on my own, as always -.-... Thanks for nothing. NBBC Callback Tags + CI - El Forum - 07-05-2012 [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. NBBC Callback Tags + CI - El Forum - 07-05-2012 [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... |