By Kerstyn Comley on Monday, 28 December 2015
Posted in Technical Issues
Likes 0
Views 614
Votes 0
I'm trying to setup EasyDiscuss to be as simple as possible. Currently the user is required to put text in both the 'title' and 'content' of a post (or reply). Is it possible to change this so that the user only needs to enter text in the 'title' field?

Thanks, Kerstyn
Hi Kerstyn,

I see. Currently the only way for you to set the character limit is by modifying the core code directly within easydiscuss. You can try to go to your /components/com_easydiscuss/classes/composer.php and at approximately line 132 add one more html attribute called "maxlength" as you can see below.
$html .= '<textarea class="dc_reply_content full-width" name="dc_reply_content" class="full-width">' . $this->content . '</textarea>';

// Replace above with below and modify the value of the maxlenght according to your need

$html .= '<textarea class="dc_reply_content full-width" name="dc_reply_content" class="full-width" maxlength="150">' . $this->content . '</textarea>';


Hope these help.
·
Wednesday, 30 December 2015 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Kerstyn,

Unfortunately that is not possible as this is the most minimal required data that is required by EasyDiscuss.
·
Tuesday, 29 December 2015 00:02
·
0 Likes
·
0 Votes
·
0 Comments
·
In that case is it possible to limit the number of characters that can be entered into the title and content fields?
·
Wednesday, 30 December 2015 01:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately that isn't possible but why would you want to limit the number of characters
·
Wednesday, 30 December 2015 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Because we don't want our users (children) to write lengthy problems or answers. We would like to create a q&a site that looks and feels a bit like twitter.
·
Wednesday, 30 December 2015 01:51
·
0 Likes
·
0 Votes
·
0 Comments
·
That's great . Does that also restrict the numbers of characters in the title or just the content field?
·
Friday, 08 January 2016 22:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it working perfectly, thanks
·
Friday, 08 January 2016 23:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issues are resolved now
·
Saturday, 09 January 2016 00:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post