The Arcive of vBulletin Modifications Site. |
|
Parsing html for certain members Details »»
|
|||||||||||||||||||||||||
When a member is replying to a message, the threadbitlist lists out below the replybox with all the posts from that thread. I want to be able to have it parse any html code that is in those message ONLY from the Admins and Supermods who the message belong to. If an Admin or Supermod wrote a message with html, I want to parse the html code so anyone reading it will see it like it should be. But not on anyone else's messages. Does this make any sense?
![]() Here is the code I am using so far and it doesn't quite work right, for some reason. Anyone have any idea what I am doing wrong? PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
it's ok and no security risk, but you have forgotten, that messages are preparsed also, so you have to edit newreply as well
|
|
#3
|
||||
|
||||
|
Where would I out that in the newreply.php to parse the threadlisting below the replybox? And will that code work ok? I have been trying to find the place to put it but can't seem to get it to take.
|
|
#4
|
||||
|
||||
|
PHP Code:
|
|
#5
|
||||
|
||||
|
It didn't work there. Any other ideas?
|
|
#7
|
||||
|
||||
|
I'm using the hack that only allows Admins and Supermods to use html and no one else. All I'm trying to do is get it to parse the html in the threadreview (the listing of messages below the newreply box when you are replying) for only those messages that belong to the Admins and Supermods. Everyone else's messages I want it to show the actual code and not parse it. And I'm close but not having very much luck.
|
|
#8
|
||||
|
||||
|
oh sorry, i missread something
![]() you have to edit this part: PHP Code:
|
|
#9
|
||||
|
||||
|
Here's what I have for that piece of code.
PHP Code:
|
|
#10
|
||||
|
||||
|
change this line:
PHP Code:
PHP Code:
|
![]() |
|
|