The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

I want to set minimum character for new topic! Please help!

View previous topic View next topic Go down

In progress I want to set minimum character for new topic! Please help!

Post by promits89 on November 14th 2011, 4:59 am

I want to set minimum 100 character for new topic. because some of my forum members creating a topic writing few words. How can i do it?
My forum version- phpbb2
add- www.moneyzone.forumsmotion.com

promits89
Forumember

Posts : 35
Reputation : 0
Language : English

Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Sanket on November 14th 2011, 8:53 am

General>messages & Emails>Configuration
Topics title length :
Change it there.

I feel, 100 is a lot of characters !

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by promits89 on November 14th 2011, 9:24 am

I am not saying about topic title. I am talking about body message.

promits89
Forumember

Posts : 35
Reputation : 0
Language : English

Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Sanket on November 14th 2011, 10:51 am

I am afraid, we cannot change it !

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Guest on November 14th 2011, 11:12 am

Here is the Html + Jquery
Code:
<p class="testlength" style="display:none;">
</p>
<script type="text/javascript">
$(function() {
    if ($("textarea#text_editor_textarea").is(':visible')) {
        $("textarea#text_editor_textarea").keyup(function() {
            var value = $(this).val();
            $("p.testlength").text(value);
        });
        $("input.mainoption").click(function() {
            var num = 100 - $("p.testlength").text().length;
            if (num > 0) {
                alert("The message you have entered is too short. Please lengthen your message to at least 100 characters.");
                return false;
            }
        });
    }
});
</script>
ACP - Display - templates - Post & Private Messages - posting_body: searching the code
Code:
<!-- BEGIN switch_roll_dice -->
then adding that code before it

ACP - Display - templates - ganeral - viewtopic_body: searching the code
Code:
<!-- BEGIN switch_user_logged_in -->
<a name="quickreply"></a>
{QUICK_REPLY_FORM}
<!-- END switch_user_logged_in -->
then adding that code after it

p/s: Does not work with wysiwyg

link removed

Guest
Guest


Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Base on November 14th 2011, 6:01 pm

battuvuong, thanks for the helpful post! However, please do not post your forum link as a 'fake signature' as this is against our rules. It is considered as advertising your forum, plus signatures are only allowed for staff members. Thank you.

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Guest on November 15th 2011, 1:29 am

@Base wrote:battuvuong, thanks for the helpful post! However, please do not post your forum link as a 'fake signature' as this is against our rules. It is considered as advertising your forum, plus signatures are only allowed for staff members. Thank you.
Sorry, that's not my forum.
My forum is... in my profile.

Guest
Guest


Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Guest on November 16th 2011, 5:07 am

Your "forum name" in your profile goes to ad.fly. If that isn't against the rules here, it should be.


Last edited by dion on November 16th 2011, 6:21 am; edited 1 time in total

Guest
Guest


Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Guest on November 16th 2011, 5:48 am

Ads in my Forum
... I deleted it

Guest
Guest


Back to top Go down

In progress Re: I want to set minimum character for new topic! Please help!

Post by Base on November 16th 2011, 5:29 pm

battuvuong,

Double Posting:Posting consecutively is not tolerated unless separated by 24 hours since the last post. In future, please use the edit button. Wink

Please stay on topic and keep any further off-topic discussions to PMs. This message does NOT require a reply.

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum