The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Parse BBCode (in 3.5)
![]() If you want to parse BBCodes somewhere in your hacks/scripts (assuming that global.php is already required): PHP Code:
All parameters except $text can be omitted and will use the defaults then. |
#32
|
|||
|
|||
![]()
Someone, anyone, PLEASE help ....
|
#33
|
||||
|
||||
![]() Quote:
|
#34
|
|||
|
|||
![]()
just a quick one... got this working great for including posts on my front page, but it is trying to find the smilies in /images/smilies, when infact they're in /community/images/smilies....
is there a quick fix around this built into the vbcodeparser class? or should I just use str_replace on the outputted string? cheers! |
#35
|
|||
|
|||
![]()
Anyone know any way to parse $thread[preview] - I can't figure out where or how to do it for the life of me. It's in functions_forumdisplay.php ..
Found it. Much easier then I thought. |
#36
|
|||
|
|||
![]() Quote:
Code:
$parsed_text = str_replace("images/smilies","community/images/smilies",$parsed_text); |
#37
|
||||
|
||||
![]()
I have a custom bbcode [mp3] [/mp3] which shows an inline media player. I have struggled with this for hours but cannot come up with a solution to make it so only registered members can see it. All I really need is to prevent guest from viewing it.
|
#38
|
||||
|
||||
![]()
This is so frustrating. I am trying to create a plugin that will parse html in certain userinfo fields.
So far I have this as a plugin in member_complete: PHP Code:
|
#39
|
||||
|
||||
![]() Quote:
|
#40
|
|||
|
|||
![]()
Hi,
The following code will display posts on a non forum page in the home directory. However, when I try to parse the bbcode it doesn't work. Any ideas? PHP Code:
|
#41
|
|||
|
|||
![]()
Why won't this work I'm trying to make it parse my page stuff it's loading it form the db and it just won't parse my php code is:
PHP Code:
|
#42
|
|||
|
|||
![]()
bump
|
#43
|
||||
|
||||
![]()
1) This not the place to ask question
2) Where do you set any values to $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable ? |
#44
|
|||
|
|||
![]()
Here is a question that is relevant to the thread:
Does the bbcode parser remove unwanted text, like if someone were to try submitting sql code? If not, what function removes code such as that? Is it simply addslashes? I have an app that gets user text and stores it in the database, and I would like to be cautious and remove any possible threats to the system. I had put it in this thread but I have not had a response yet ... any help would be appreciated. |
#45
|
||||
|
||||
![]()
Class vB_Input_Cleaner is what you want to have a look at.
|
#46
|
|||
|
|||
![]()
Hi, Andreas or someone else maybe? I just finished porting a plugin which was very vital to my site after 3 days. I didnt know any php or sql before doing this so thats what took me so long. It took a whole lot of trial and error.
Basically the plugin Im using is PluhNews. I've converted it to work with Vbulletin 3.5, as its been broken ever since 3.0 came out. Anyway, I've now run into a slight snag. I dont know jack squat about parsing VB code. The way this plugin works is, it rips posts from a specified forum and displays them on a non forum page. Essentially a news ripper. So as you can see here - http://www.thehorrorisalive.com none of the VB code is being parsed, and rightfully so because I have NO idea how to impliment your code here. Right now Im using the following code to display the posts content PHP Code:
Im assuming I need to somehow bind your command to run after pagetext, but being a newbie to php and sql I have no clue on how to do that and every attempt has ended in failure. This is probably a really simple request, and Id appreciate it if anyone who could answer it helps me out. As soon as its done Ill release the upgraded hack, since a lot of people still would like to use PluhNews. Besides that I have a small infinite loop whenver I try to include global.php, which Im still hunting for. So any help is greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|