Steve_S
Sun 10th Sep '00, 12:42am
Hello,
Ed was nice enought to post some code fixes but this still does not work properly.
Brand new import at:
http://www.geekvillage.com/forums/showthread.php?threadid=8081
Please note this BB is not yet live members :) but play if you want and all data will evenutally get nuked.
Compare this to original UBB post at:
http://geekvillage.com/ubb/Forum2/HTML/000114.html
1) img code is turned off for all forums and yet the smiles are not importing properly. I can not turn it on for my board as it's a serious security risk.
2) Parts of the "sig" are not importing properly
The code from admin/import.php which I have:
// do smilies
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/smile.gif\">",":)",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/frown.gif\">",":(",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/redface.gif\">",":o",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/biggrin.gif\">",":D",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/wink.gif\">",";)",$htmlcode);
$htmlcode=str_replace("<IMG SRC......SNIPED as it exceeeds your limit
// do lists
$htmlcode=str_replace("<ul type=square>","",$htmlcode);
$htmlcode=str_replace("</ul>","",$htmlcode);
$htmlcode=str_replace("</UL>","[/list]",$htmlcode);
$htmlcode=str_replace("<ol type=1>","[list=1]",$htmlcode);
$htmlcode=str_replace("<ol type=A>","[list=a]",$htmlcode);
$htmlcode=str_replace("</ol>","[/list=a]",$htmlcode);
$htmlcode=str_replace("<li>"," ",$htmlcode);
$htmlcode=str_replace("<LI>","[list]",$htmlcode);
$htmlcode=str_replace("<p>","\n\n",$htmlcode);
$htmlcode=str_replace("<P>","\n\n",$htmlcode);
$htmlcode=str_replace("<br>","\n",$htmlcode);
$htmlcode=str_replace("<BR>","\n",$htmlcode);
return $htmlcode;
}
I'm stumped so I would appreciate some help.
[Edited by Steve_S on 09-09-2000 at 11:54 PM]
Ed was nice enought to post some code fixes but this still does not work properly.
Brand new import at:
http://www.geekvillage.com/forums/showthread.php?threadid=8081
Please note this BB is not yet live members :) but play if you want and all data will evenutally get nuked.
Compare this to original UBB post at:
http://geekvillage.com/ubb/Forum2/HTML/000114.html
1) img code is turned off for all forums and yet the smiles are not importing properly. I can not turn it on for my board as it's a serious security risk.
2) Parts of the "sig" are not importing properly
The code from admin/import.php which I have:
// do smilies
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/smile.gif\">",":)",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/frown.gif\">",":(",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/redface.gif\">",":o",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/biggrin.gif\">",":D",$htmlcode);
$htmlcode=str_replace("<IMG SRC=\"$ubbnoncgiurl/wink.gif\">",";)",$htmlcode);
$htmlcode=str_replace("<IMG SRC......SNIPED as it exceeeds your limit
// do lists
$htmlcode=str_replace("<ul type=square>","",$htmlcode);
$htmlcode=str_replace("</ul>","",$htmlcode);
$htmlcode=str_replace("</UL>","[/list]",$htmlcode);
$htmlcode=str_replace("<ol type=1>","[list=1]",$htmlcode);
$htmlcode=str_replace("<ol type=A>","[list=a]",$htmlcode);
$htmlcode=str_replace("</ol>","[/list=a]",$htmlcode);
$htmlcode=str_replace("<li>"," ",$htmlcode);
$htmlcode=str_replace("<LI>","[list]",$htmlcode);
$htmlcode=str_replace("<p>","\n\n",$htmlcode);
$htmlcode=str_replace("<P>","\n\n",$htmlcode);
$htmlcode=str_replace("<br>","\n",$htmlcode);
$htmlcode=str_replace("<BR>","\n",$htmlcode);
return $htmlcode;
}
I'm stumped so I would appreciate some help.
[Edited by Steve_S on 09-09-2000 at 11:54 PM]