Page 1 of 1

html will not work in signature

PostPosted: Sun Jan 21, 2007 7:46 pm
Author: ayasha
Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: http://www.graphicsplayhouse.com/forum

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

for some reason the html code that some of my members use in their signatures is not longer working, here is the code

[code]<img src="http]

could anyone help me?

also, i have to ask, but right about the quick reply box, there is a topic status form, what is that for?

PostPosted: Mon Jan 22, 2007 9:11 am
Author: ayasha
i have found out today, that for some reason a period is thrown in the code between // and .scripts like below

<img>

PostPosted: Mon Jan 22, 2007 10:21 am
Author: Fubie
I believe this was put into place to keep java code/.scripts from running malicious code on the forum.

PostPosted: Mon Jan 22, 2007 10:28 am
Author: ayasha
but this code will work in other places on the forum

like a post and portal blocks, so what is the difference?


well, does anyone know of a good graphic hosting site that allows for random signatures to be display on page refresh with bbcode then?

Re: html will not work in signature

PostPosted: Mon Jan 22, 2007 2:09 pm
Author: Teelk
I thought I had caught all the places that needed to have the period removed. I'll work on a fix...

PostPosted: Mon Jan 22, 2007 2:41 pm
Author: ayasha
thank you so much Teelk, it will make all my members very happy <img>

Re: html will not work in signature

PostPosted: Mon Jan 22, 2007 4:20 pm
Author: Teelk
This fix will also remove the period from the word .script when viewing post previews.

OPEN posting.php
FIND
Code: Select all
        $preview_message = str_replace("n", '<br>', $preview_message);
BEFORE ADD
Code: Select all
        if ( strpos($preview_message, '..script') !== false)         {             $preview_message = str_replace("..script", ".script", $preview_message);         }  


OPEN viewtopic.php
FIND
Code: Select all
    $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';  
AFTER ADD
Code: Select all
    if ( strpos($user_sig, '..script') !== false) {         $user_sig = str_replace('..script','.script', $user_sig);     }  


OPEN profilcp/profilcp_profil_signature.php
FIND
Code: Select all
    $signature               = htmlspecialchars(stripslashes($view_userdata['user_sig']));

AFTER ADD
Code: Select all
    if ( strpos($signature, '..script') !== false) {         $signature = str_replace('..script','.script', $signature);     }  

PostPosted: Mon Jan 22, 2007 6:39 pm
Author: ayasha
thanks Teelk! it worked <img>

PostPosted: Mon Jan 22, 2007 7:10 pm
Author: ayasha
i am back <img>

i have noticed that my siggie is not showing in my profile, could this be because of the .script i am using?

Re: html will not work in signature

PostPosted: Mon Jan 22, 2007 7:27 pm
Author: Teelk
Well, I can't get the img tag to work for some reason. You can use the img bbcode though. In ACP>General Admin>Configuration, scroll down to "Signature Settings" and tick the box "Allow if impossible to control". Hit submit and then use the following img bbcode in your signature.

You'll receive error messages, but it will work.

PostPosted: Mon Jan 22, 2007 8:19 pm
Author: ayasha
"Teelk";p="20149" wrote:Well, I can't get the img tag to work for some reason. You can use the img bbcode though. In ACP>General Admin>Configuration, scroll down to "Signature Settings" and tick the box "Allow if impossible to control". Hit submit and then use the following img bbcode in your signature.

You'll receive error messages, but it will work.


is there a special bbcode? anyway, if it gives you errors, that is ok, the sig seems to show everywhere else.