News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

problem with long post

Started by frriction, December 22, 2008, 07:38:07 AM

Previous topic - Next topic

frriction

When I try to submit long post it only shows first few lines of the post only.

well I tried to change the world limit in the post but it does not work out.

Actually I faced same problem in 1.1.7 so i thought give try to beta version but same problem.

SlammedDime

#1
What mods do you have installed and how long of a post are we talking about?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

frriction

1.     Message for your guests      0.1     
2.    Advanced Reputation System    1.5.2    
3.    No More Ugly Avatar Scrollbars    1.0    
4.    Advanced Login Form    1.1    
5.    Advanced Contact Form    1.1    
6.    Highlight Search Keywords    1.21    
7.    BK-SMF Favicon and Custom Global HTML    1.0    
8.    Divine Smilies    1.0    
9.    Apache Error Handler    1.1    
10.    Ad Managment    2.3.4    
11.    Avatar On Board    2.1    
12.    Google Verification META Tag    1.0
13.    BoardHover Mod    1.3.1    
14.    Rateit in Topics    1.0
15.    More Spiders    1.2    
16.    Look But No Read    1.3    
17.    Favicon    1.2    
18.    Reflection Avatar    1.1    
19.    Bookmarks    2.2.1    
20.    Generic Avatars      1.1




Actually I just uninstall every mode and tried but no change

Post length is about 500-600 words with one image.

SlammedDime

Have you check the database to see if the entire post did indeed make it into the database?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

aldo

How long is this post...?

I am not sure, but I think this code in Subs-Post.php could lead to a problem:

   
// Insert the post.
   
$smcFunc['db_insert']('',
      
'{db_prefix}messages',
      array(
         
'id_board' => 'int''id_topic' => 'int''id_member' => 'int''subject' => 'string-255''body' => 'string-65534',
         
'poster_name' => 'string-255''poster_email' => 'string-255''poster_time' => 'int''poster_ip' => 'string-255',
         
'smileys_enabled' => 'int''modified_name' => 'string''icon' => 'string-16''approved' => 'int',
      ),
      array(
         
$topicOptions['board'], $topicOptions['id'], $posterOptions['id'], $msgOptions['subject'], $msgOptions['body'],
         
$posterOptions['name'], $posterOptions['email'], time(), $posterOptions['ip'],
         
$msgOptions['smileys_enabled'] ? 0''$msgOptions['icon'], $msgOptions['approved'],
      ),
      array(
'id_msg')
   );

If I understand the string-65534 thing right, if your is longer then 65,534 characters, the rest after 65,534 characters will be chopped off.

But thats gotta be one long post.

frriction

my post is no longer than 1000 words. but still it got chop

I am new to php and all this coding so I dont know about database if you tell me how to check than i will tell you.

greyknight17

Is this issue resolved?

If not, to take a look at this on the database, go into phpMyAdmin and click on your database. Next click on smf_messages on the left and then click on the Browse button. Locate that post there by the message ID. You can get this message ID by going to that post you made and hovering your mouse cursor over it. It will say msg1234 for example. So 1234 is the message ID.

Advertisement: