Warning: The author of this contribution does not provide support for it anymore.

Post models

Frequently Asked Questions

ACP annoucenement installed and conflicts while installation

If you have ACP announcement MOD installed on your board, you'll have some conflicts while "Post models" installation. Here's the good edits to do.

Instead to find:

Code: Select all

function generate_smilies($mode, $forum_id)

Find:

Code: Select all

function generate_smilies($mode, $forum_id, $acp_announce = false)

and replace by:

Code: Select all

function generate_smilies($mode, $forum_id, $acp_announce = false, $acp_models = false)


Instead to find:

Code: Select all

         'body' => 'posting_smilies.html')

Find:

Code: Select all

         'body' => ( $acp_announce ) ? 'announcement_smilies.html' : 'posting_smilies.html')

Replace by:

Code: Select all

         'body' => $posting_smilies)


Instead to find:

Code: Select all

         'U_MORE_SMILIES'       => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))

Find:

Code: Select all

         'U_MORE_SMILIES'       => ( $acp_announce ) ? append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&announce=1') : append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))

Replace by:

Code: Select all

         'U_MORE_SMILIES'       => $u_more_smilies)


Here is 2 last additionnal edits to do in includes/functions_posting.php
Find:

Code: Select all

      $template->set_filenames(array(
         'body' => $posting_smilies)
      );

Add before:

Code: Select all

      if ($acp_announce)
      {
         $posting_smilies = 'announcement_smilies.html';
      }
      elseif ($acp_models)
      {
         $posting_smilies = 'models_smilies.html';
      }
      else
      {
         $posting_smilies = 'posting_smilies.html';
      }

Find:

Code: Select all

      $template->assign_vars(array(
         'S_SHOW_SMILEY_LINK'    => true,
         'U_MORE_SMILIES'       => $u_more_smilies)

Add before:

Code: Select all

      if ($acp_announce)
      {
         $u_more_smilies = append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&announce=1');
      }
      elseif ($acp_models)
      {
         $u_more_smilies = append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&models=1');
      }
      else
      {
         $u_more_smilies = append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id);
      }