xyn Posted September 5, 2007 Share Posted September 5, 2007 Sorry; and i didnt fix it lol. problem is with my bbcode: error: Warning: Wrong parameter count for eregi_replace() in D:\Intranet and Development\intranet\classes\functions.inc.php on line 51 and its for each line with $str = eregi_replace(); function bbcode($str) { # Text Decoration $str = eregi_replace("[b](.*)[/b]", "<span style='text-decoration: bold;'>\1</span>"); $str = eregi_replace("[u](.*)[/u]", "<span style='text-decoration: underline;'>\1</span>"); $str = eregi_replace("[i](.*)[/i]", "<i>\1</i>"); $str = eregi_replace("[strike](.*)[/srtike]", "<span style='text-decoration: line-through;'>\1</span>"); $str = eregi_replace("[overline](.*)[/overline]", "<span style='text-decoration: overline;'>\1</span>"); $str = eregi_replace("[blink](.*)[/blink]", "<span style='text-decoration: blink;'>\1</span>"); return $str; } Quote Link to comment https://forums.phpfreaks.com/topic/68030-solved-wrong-parameter-count/ Share on other sites More sharing options...
Jessica Posted September 5, 2007 Share Posted September 5, 2007 In the future, it's a good idea to at least leave the original post so it does not look confusing to other people. Also, other people might have had the same problem and now cannot benefit from your solution Quote Link to comment https://forums.phpfreaks.com/topic/68030-solved-wrong-parameter-count/#findComment-341968 Share on other sites More sharing options...
xyn Posted September 5, 2007 Author Share Posted September 5, 2007 for those who may benefit from this: it should be: $str = eregi_replace("(.*)", "<span style='text-decoration: bold;'>\1</span>", $str); Quote Link to comment https://forums.phpfreaks.com/topic/68030-solved-wrong-parameter-count/#findComment-342037 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.