Jump to content

Forum Posting


Recommended Posts

I am sure I caused this. SOMEHOW.

The only thing I have changed about the forum is to add auto_post_content.php to give a list of forum names and links to my home page. Somehow I try to add a thread and the screen just redisplays empty (with the title still intact but the text message empty). No errors or anything and obviously no record written (typically it says on top 'thread added' or something).

Where do you suggest I track this down? FAQ's for example work just fine and others entry areas.


Link to comment
Share on other sites

What I do when I have no clue what I did wrong, is that I place lines such as


echo 'made it this far 1234';


I start at top and move it down until the other error is displayed. Then I know what line I messed up

Edited by Someone
Link to comment
Share on other sites

Okay I might have found it. My version does not have the special editor installed. The Content area html is:


<textarea name='msgContent' rows='10'>


The stock version 1.15 Content area html is:


<textarea rows='10' class='mceEditor' name='content' id='content'>


And the content.php is looking for 'content' as the area. So it might be a defect if you do not have the mceEditor activated.


Link to comment
Share on other sites

I didn't make any custom code changes. Just excluded the mceEditor from the module list. When excluded the content area is called msgContent. When I put the mceEditor module back in the content area is called Content. So the content.php forums module need to change or one or the other parts that generate the new post form needs to be changed.


Link to comment
Share on other sites

Aha, good to know

I think changing libs/template.php:331 from:


return "<textarea name='msgContent' rows='10'>" . htmlentities($defaultValue) . "</textarea>";




   return "<textarea name='$elementName' rows='10'>" . htmlentities($defaultValue) . "</textarea>";


solves the problem

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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