Advertisement:
Advertise With Us!

Author Topic: Word Count Limits  (Read 11707 times)

Offline Sefket

  • Jr. Member
  • **
  • Posts: 223
Re: Word Count Limits
« Reply #60 on: November 26, 2011, 08:32:43 PM »
So uh, should I just manually edit instead of installing the package?

Offline ethankcvds

  • Jr. Member
  • **
  • Posts: 310
  • Gender: Male
Re: Word Count Limits
« Reply #61 on: November 26, 2011, 08:36:38 PM »
So uh, should I just manually edit instead of installing the package?

You just need to manually edit that one part of the file. Then after you've made that edit you can use the package manager to install the mod whilst ignoring the error about the failed test.
No Pm's for support please!

Offline Sefket

  • Jr. Member
  • **
  • Posts: 223
Re: Word Count Limits
« Reply #62 on: November 26, 2011, 08:40:30 PM »
So it'd be this:

Code: [Select]
{
// Some things that need to be setup for a new board.
$curBoard = array(
'memberGroups' => array(0, -1),
'category' => (int) $_REQUEST['cat']
);
$context['board_order'] = array();
$context['board'] = array(
'is_new' => true,
'id' => 0,
'name' => $txt['mboards_new_board_name'],
'description' => '',
'count_posts' => 1,
'theme' => 0,
'override_theme' => 0,
'category' => (int) $_REQUEST['cat'],
'no_children' => true,
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',
);
'min_words' => 0,
         'max_words' => 0,
}
else
{
// Just some easy shortcuts.
$curBoard = &$boards[$_REQUEST['boardid']];
$context['board'] = $boards[$_REQUEST['boardid']];
$context['board']['name'] = htmlspecialchars($context['board']['name']);
$context['board']['description'] = htmlspecialchars($context['board']['description']);
$context['board']['no_children'] = empty($boards[$_REQUEST['boardid']]['tree']['children']);
$context['board']['sort_method'] = $curBoard['sort_method'];
$context['board']['sort_order'] = $curBoard['sort_order'];
}

Offline ethankcvds

  • Jr. Member
  • **
  • Posts: 310
  • Gender: Male
Re: Word Count Limits
« Reply #63 on: November 26, 2011, 08:45:45 PM »
So it'd be this:

Code: [Select]
{
      // Some things that need to be setup for a new board.
      $curBoard = array(
         'memberGroups' => array(0, -1),
         'category' => (int) $_REQUEST['cat']
      );
      $context['board_order'] = array();
      $context['board'] = array(
         'is_new' => true,
         'id' => 0,
         'name' => $txt['mboards_new_board_name'],
         'description' => '',
         'count_posts' => 1,
         'theme' => 0,
         'override_theme' => 0,
         'category' => (int) $_REQUEST['cat'],
         'no_children' => true,
         'is_redirect' => 0,
         'count_clicks' => 0,
         'target' => '',
         'url' => '',
      );
      'min_words' => 0,
         'max_words' => 0,
   }
   else
   {
      // Just some easy shortcuts.
      $curBoard = &$boards[$_REQUEST['boardid']];
      $context['board'] = $boards[$_REQUEST['boardid']];
      $context['board']['name'] = htmlspecialchars($context['board']['name']);
      $context['board']['description'] = htmlspecialchars($context['board']['description']);
      $context['board']['no_children'] = empty($boards[$_REQUEST['boardid']]['tree']['children']);
      $context['board']['sort_method'] = $curBoard['sort_method'];
      $context['board']['sort_order'] = $curBoard['sort_order'];
   }

Close
Code: [Select]
{
      // Some things that need to be setup for a new board.
      $curBoard = array(
         'memberGroups' => array(0, -1),
         'category' => (int) $_REQUEST['cat']
      );
      $context['board_order'] = array();
      $context['board'] = array(
         'is_new' => true,
         'id' => 0,
         'name' => $txt['mboards_new_board_name'],
         'description' => '',
         'count_posts' => 1,
         'theme' => 0,
         'override_theme' => 0,
         'category' => (int) $_REQUEST['cat'],
         'no_children' => true,
         'is_redirect' => 0,
         'count_clicks' => 0,
         'target' => '',
         'url' => '',
         'min_words' => 0,
          'max_words' => 0,
      );
   }
   else
   {
      // Just some easy shortcuts.
      $curBoard = &$boards[$_REQUEST['boardid']];
      $context['board'] = $boards[$_REQUEST['boardid']];
      $context['board']['name'] = htmlspecialchars($context['board']['name']);
      $context['board']['description'] = htmlspecialchars($context['board']['description']);
      $context['board']['no_children'] = empty($boards[$_REQUEST['boardid']]['tree']['children']);
      $context['board']['sort_method'] = $curBoard['sort_method'];
      $context['board']['sort_order'] = $curBoard['sort_order'];
   }
No Pm's for support please!

Offline Sefket

  • Jr. Member
  • **
  • Posts: 223
Re: Word Count Limits
« Reply #64 on: November 26, 2011, 08:57:24 PM »
Worked, thank you. Do you know how to code it so it doesn't let people quote someones reply and not put text in their post?

Offline ethankcvds

  • Jr. Member
  • **
  • Posts: 310
  • Gender: Male
Re: Word Count Limits
« Reply #65 on: November 26, 2011, 08:59:36 PM »
Worked, thank you. Do you know how to code it so it doesn't let people quote someones reply and not put text in their post?

I've got it somewhat working I just need to fix a few small issues.
No Pm's for support please!

Offline Sefket

  • Jr. Member
  • **
  • Posts: 223
Re: Word Count Limits
« Reply #66 on: November 26, 2011, 09:08:49 PM »
Glad to hear. If I knew how to code, I wouldn't brag you, haha. This is a great modification. Can't wait for you to finish coding that part :) .

Offline pikeman

  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
    • Vukovi sa DUNAVA
Re: Word Count Limits
« Reply #67 on: December 28, 2011, 06:26:02 PM »
Great mod!