The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

3 posters

Go down

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

Post by promits89 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
avatar
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 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
Sanket
ForumGuru

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

Back to top Go down

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

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

I am not saying about topic title. I am talking about body message.
avatar
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 November 14th 2011, 10:51 am

I am afraid, we cannot change it !
Sanket
Sanket
ForumGuru

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

Back to top Go down

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

Post by Guest 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
avatar
Guest
Guest


Back to top Go down

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

Post by Base 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
Base
Forumaster

Male Posts : 10386
Reputation : 1695
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 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.
avatar
Guest
Guest


Back to top Go down

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

Post by Guest 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
avatar
Guest
Guest


Back to top Go down

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

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

Ads in my Forum
... I deleted it
avatar
Guest
Guest


Back to top Go down

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

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

battuvuong,

I want to set minimum character for new topic! Please help! ParcheminDouble 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
Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

Back to top

- Similar topics

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