summary: how can i parse the post text like vbulletin does outside of the forums?
we have a programming community that has grown over the last year. we allow our users to post tutorials and recently integrated the tutorials into vbulletin to make it easier for users to create them.
i only want users to submit tutorials in the forums .. and i am coding a 'tutorial viewer' from scratch. i need the tutorials section of the site to be its own and have its own look. also, i don't want the forums pruning the tutorials.
with my tutorial viewer, it is just retrieving data from the vbulletin db where there is a common parentid.
the problem i am running up against is the ability to parse the posts like vb does. the authors are creating the tutorials in vb with all the features such as and [c olor=somecolor] .
so here is my question: i see the bbcodeparse() function in the functions.php, .. and first off i'd like to know if it is ok to use that to further integrate my site into vbulletin?
wether or not it is ok, i admit i've tried with no luck.
secondly, if it is ok, can someone give me a hint how i can parse it?
$post=bbcodeparse($post) does not seem to do much. it probably has something to do with the db connection and i'm trying to run the function outside of the /forum directory.
if anyone can help or give me suggestions, i would greatly appreciate it. if i'm breaking rules here, let me know.
thanks
we have a programming community that has grown over the last year. we allow our users to post tutorials and recently integrated the tutorials into vbulletin to make it easier for users to create them.
i only want users to submit tutorials in the forums .. and i am coding a 'tutorial viewer' from scratch. i need the tutorials section of the site to be its own and have its own look. also, i don't want the forums pruning the tutorials.
with my tutorial viewer, it is just retrieving data from the vbulletin db where there is a common parentid.
the problem i am running up against is the ability to parse the posts like vb does. the authors are creating the tutorials in vb with all the features such as and [c olor=somecolor] .
so here is my question: i see the bbcodeparse() function in the functions.php, .. and first off i'd like to know if it is ok to use that to further integrate my site into vbulletin?
wether or not it is ok, i admit i've tried with no luck.
secondly, if it is ok, can someone give me a hint how i can parse it?
$post=bbcodeparse($post) does not seem to do much. it probably has something to do with the db connection and i'm trying to run the function outside of the /forum directory.
if anyone can help or give me suggestions, i would greatly appreciate it. if i'm breaking rules here, let me know.
thanks
Comment