The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Problem with BBcode Removal
I was hoping someone could shed some light on a problem I'm having with my glossary script I'm working on. Now the problem is that I have information being accessed from a function and once that information is accessed and found it is to display the results in the script itself. Now the results is not to show any bbcode, html, quotes, etc. This is the code I want to use in the function.
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
So no one here at all has a clue? Ah I need to learn some better programming haha.
|
#3
|
||||
|
||||
Come on, help this man.
We are all eagerly awaiting the new version of his hack. It is this one by the way: https://vborg.vbsupport.ru/showthread.php?p=1136110 StarBuG |
#4
|
|||
|
|||
To strip BBCode you need to include /includes/functions.php in your script, I think you are forgetting that
The options of the function: PHP Code:
|
#5
|
||||
|
||||
StarBuG: There will be no update ever again!
RS_Jelle: Thanks for the reply on the issue however it dosn't help to much. See normally I'm able to strip info, I know how to do this however in the function where I want it there is a werid problem. The result it shows is only half the bbcode being removed, for example the formatting tags like '[b]' but none of the tags like '[php], [code]', etc and even smiles aren't removed. This is the issue at hand, so I think I will need to figure something else to try. :tired: |
#6
|
|||
|
|||
Hello.
Is there a central location e.g. 'class_bbcode.php' or hook whereby a particular tag (custom or otherwise) and its contents can be stripped globally (across all features e.g. calendar, forums, pm, signatures, etc.)? If so, how? Thanks in advance. |
#7
|
||||
|
||||
Well I'm not sure what you want to strip, but the code used to srtip bbcode is in the 'functions.php' file under 'function strip_bbcode'. There are also other 'strip' commands in this file.
|
#8
|
|||
|
|||
Thanks for your reply.
I want to create a custom tag but only want to use it under varying conditions. For example, it may be by usergroup or after a member reaches a certain number of posts, etc. If I knew 1 location where I can 'unset' that custom tag from the $tag_list array based on one or both conditions previously mentioned, or find that function that nearly all message code regardless of the application (forum, pm, etc.) and strip out that custom tag, then that would be a great help. Thanks again, in advance. EDIT: Answer: http://www.vbulletin.com/forum/showthread.php?t=152002 |
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
I have talked to Andreas, a vBulletin developer.
He said you should try: Code:
$glossarydescription = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($foundterms['glossarydescription'], true), 100); I also send this as PM to you but got no response Greetings StarBuG |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|