Advertisement:

Author Topic: problem with long post  (Read 2794 times)

Offline frriction

  • Newbie
  • *
  • Posts: 7
problem with long post
« on: December 22, 2008, 07:38:07 AM »
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.

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: problem with long post
« Reply #1 on: December 22, 2008, 08:04:12 AM »
What mods do you have installed and how long of a post are we talking about?
« Last Edit: December 22, 2008, 08:05:44 AM by SlammedDime »
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline frriction

  • Newbie
  • *
  • Posts: 7
Re: problem with long post
« Reply #2 on: December 22, 2008, 08:12:02 AM »
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.

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
Re: problem with long post
« Reply #3 on: December 22, 2008, 10:20:59 AM »
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...
                     

Offline aldo

  • Sophist Member
  • *****
  • Posts: 1,356
  • Gender: Male
Re: problem with long post
« Reply #4 on: December 22, 2008, 12:37:00 PM »
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.

Offline frriction

  • Newbie
  • *
  • Posts: 7
Re: problem with long post
« Reply #5 on: December 22, 2008, 06:06:28 PM »
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.

Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: problem with long post
« Reply #6 on: January 15, 2009, 11:33:26 PM »
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.