bump
|
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 ? |
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. |
Class vB_Input_Cleaner is what you want to have a look at.
|
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. |
Try changing this:
PHP Code:
PHP Code:
I didn't understand your problem including global.php, though since it's a plugin and not an entirely new .php file, global.php should have already been included/requested. |
Aesma, thank you very much! That solves my problem with my QUOTE tags not being translated to html! However I still have a serious error somewhere. You can see the page here
EDIT: FIXED!! WOO HOO!!!! |
I have used the same code and every thing is fine exept the QUOTE tags
|
Is there any way to define the HTML the parser will output to something else than the forum is using? For instance, to remove the "target="_blank"" from [url]'s and change the HTML that [QUOTE] is producing?
|
After it goes through the bbcode parser it should be <a href="link" target="_blank">text</a> instead of text. So you should be able to do a str replace to remove it.
|
I liked to turn off the bbcode and have any bbcode stripped from the text.
I know how to turn off bbcode but how do I strip it? |
Hi,
Using 3.6.1 and trying to parse bbcode on a non-vb page at the bottom of http://www.defend.net. Could someone please let me know how to correct this code so that the bbcode will be parsed? I read this thread and tried some things but couldn't get it working. PHP Code:
|
Hi,
I am trying hard as well to include custom BB tags I have created myself but no go. The do_parse function will not include it as hard as I try. Same with Quotes, they are not being parsed at all. Did I miss a command somewhere? I have this initially: PHP Code:
Thanks for any help in advance |
If you require assistance with some code that you are writing, please use the programming discussions forum.
Thank you. |
I'm using this same code and I'm having some problems with Japanese text. I made a separate thread about it: https://vborg.vbsupport.ru/showthread.php?t=136248
|
You guys rock. Thanks so much for sharing this information.
|
Ok my turn for help:
This is my code: PHP Code:
Thanks Steve |
Quote:
|
In 3.7.x, I got every phrased, except the smiles, even though I pass "true" through:
PHP Code:
|
Opserty, thanks, I'll give it a go later.
--------------- Added [DATE]1205610787[/DATE] at [TIME]1205610787[/TIME] --------------- Opserty: Tried that, makes all the sticky's vanish. So I'm not too sure, gonna keep playing with it and hope I figure it out. |
Wow great man, thanks, very useful!
|
i want to use a script outside of the folder where the forum is installed, but when i include the global.php with "require_once('forum/global.php');" the my script doesn't works anymore..?
Do i need to include anything else which has the reference to the folder or so? (when i put my script in the forum folder is seems to work fine) |
in 3.6 how can I get BBcode and Line Breaks to work properly in the Profile Pages? Especially in Custom Fields?
|
Two questions.
1. Does this work with 3.7.x? 2. What's the right syntax to make $text the combination of three variables? I have this right now: Code:
if ($post[field11] && $post[field12]) Code:
$post[field11].$message.$post[field12] |
Quote:
|
All times are GMT. The time now is 06:47 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|