Jump to content
MakeWebGames

Recommended Posts

Posted

how do i make it so that my users cant use html in my site only bbcode because right now they can use both say for the profile sig they can put either or and they will do the same thing and i dont want html being alloud

Posted

i got my profile sigs to work with htmlentities but i cant get anything to work with my mailbox what should i d to it here is the code

 

$fm=urlencode($r['mail_text']);
print <<<EOF
<tr>
<td>[url='mailbox.php?action=compose&ID={$r[']Reply[/url]


[url='mailbox.php?action=forward&ID={$r[']Forward[/url]


[url='mailbox.php?action=delete&ID={$r[']Delete[/url]


[url='preport.php?ID={$r[']Report[/url]
</td>
<td>{$r['mail_text']}</td>
Posted

you need to add your bbcode stuff to that line like...(example only)...

$r['mail_text']=$bbcode->Parse(htmlentities($r['mail_text'], ENT_QUOTES));

if your just copying and pasting

$r['mail_text']=htmlentities($r['mail_text'], ENT_QUOTES);

your bbcode isnt going to work.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...