Oktopus Posted March 8, 2021 Share Posted March 8, 2021 Sziasztok. I would like to ask a huge big help. I have a tiny little side. In him with a forum. That trouble of mine, if 15000 are pl character bigger remark send in the side flies away then and nothing comes in. It sends in the stuff into a database more punctually,but kiiratásnál the side flies away. AH01075 time out mistake ... indeed it the character quantity admits it that if spoilerbe lay then not I would like it separate echo and his ointment divide it up who as if one would be $message = wordwrap($message, 10000);ezzel szeretném 10.000 darabokra feldarabolni pl ha 55.000 karakter érkezik be egy hozzászólásba. De viszont a bbcode miatt valahyogy egybe értelmezhetően kéne megjelenítenem,hogy a spoiler bbcode működjön. // $message = wordwrap($message, 10000); if (stripos($message ,' ') !== false){ $ab = 600; // tól $cd = 700; // ig $random = rand($cd, $ab); $message = wordwrap($message, 10000); $message= preg_replace("/\[spoiler\]\s*((\s|.)+?)\s*\[\/spoiler\]\s*/i", "<input type=button onClick='hirek($random)' value='Kinyitás-Becsukás' title='Csiki-Csuki'> <div id='$random' style='display:none'> <table border='1' cellspacing='0' cellpadding='3'> <td><font color=#bbd7f3>\\1</font></td></table></div>",$message); } Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/ Share on other sites More sharing options...
requinix Posted March 8, 2021 Share Posted March 8, 2021 If you copy your code directly into the post editor then our forum will see the spoilers and convert them to HTML. Instead, click the Code <> button in the post editor, copy your code into the popup, and use that to insert into a new post. You should not need to use wordwrap(). If a long post stetches the page then that means the post is not acting like normal HTML is supposed to act. Can you give us a link to a webpage that shows a long post? Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1584959 Share on other sites More sharing options...
Oktopus Posted March 9, 2021 Author Share Posted March 9, 2021 //[spoiler]Text[/spoiler] if (stripos($message ,'[spoiler]') !== false){ $ab = 600; // tól $cd = 700; // ig $random = rand($cd, $ab); $message = wordwrap($message, 10000); $message= preg_replace("/\[spoiler\]\s*((\s|.)+?)\s*\[\/spoiler\]\s*/i", "<input type=button onClick='hirek($random)' value='Kinyitás-Becsukás' title='Csiki-Csuki'> <div id='$random' style='display:none'> <table border='1' cellspacing='0' cellpadding='3'> <td><font color=#bbd7f3>\\1</font></td></table></div>",$message); } My test website: http://alap.vtmk.hu/forum.php Privat message send login data. Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1584967 Share on other sites More sharing options...
requinix Posted March 10, 2021 Share Posted March 10, 2021 http://alap.vtmk.hu/forum_topik.php?id=27 ? Can you add a post that does not use wordwrap() so I can see what the problem looks like? Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1584975 Share on other sites More sharing options...
Oktopus Posted March 10, 2021 Author Share Posted March 10, 2021 Ha spoiler bbcode-ba rakom be sem jön az adott topik oldal. De ha bbcode nélkül berakom 63293 karaktert megjelenít. If spoiler bbcode-ba I lay it the given topic does not come in side. But if without bbcode load up 63293 display a character. Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1584997 Share on other sites More sharing options...
requinix Posted March 10, 2021 Share Posted March 10, 2021 That is what I see. It looks like long text is working correctly. Can you post a screenshot of what your problem looks like? Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1585008 Share on other sites More sharing options...
Oktopus Posted March 11, 2021 Author Share Posted March 11, 2021 spoiler rag problem... 2021-03-09 20:37:17 comment problem character limit Quote Link to comment https://forums.phpfreaks.com/topic/312260-forum-messsage-problem-charachter-limit-and-503-error/#findComment-1585016 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.