Jump to content

Forum messsage problem. Charachter limit and 503 error.


Oktopus

Recommended Posts

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);
}

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  //[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.

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.