Pagina 1 di 1

Guest hide BBCODE e testo a capo

Inviato: 27/02/2012, 17:51
da maxweb
Ho installato la guest hide bbcode mod e l'ho pure personalizzata per quanto riguarda i colori e le linee che venivano visualizzate al momento che il testo veniva nascosto.

Adesso però vorrei ceracere di effettuare un'ulteriore modifica facendo in modo che il testo nascosto rimanga nella stessa linea del testo visibile e non vada a capo lasciando un'impaginazione a volte molto brutta da vedere.

Sicuramente il file da editare è includes/function_content.php dove risiede la parte più "succosa" della suddetta mod che riporto qui di seguito

Codice: Seleziona tutto

/* ==================================================================================
*
* @package Guest Hide BBCode MOD PHP code
* @version 1.4.0 of 14.04.2009
* @copyright (c) By Shapoval Andrey Vladimirovich (AllCity) ~ http://allcity.net.ru/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
================================================================================== */ 
  if (!defined('INCLUDE_GUEST_HIDE_BBCODE_MOD'))
  {
    define('INCLUDE_GUEST_HIDE_BBCODE_MOD', true);
      /* === SETTING === */
      define('GUEST_HIDE_BBCODE_MOD_ENABLED', true);  /* Enable this MOD? (true = YES, false = NO) */
      define('GUEST_HIDE_BBCODE_MOD_BOT', false); /* Enable hide the text from bots? (true = YES, false = NO) */
      define('GUEST_HIDE_BBCODE_MOD_REG_LINK', true); /* Enable link to regestration or (login - if regestration disable)? (true = YES, false = NO) */
      define('HideBlockAOpen', '<div class="HideBlockA">'); /* Open HTML tag A. (FOR USER) */
      define('HideBlockAClose', '</div>'); /* Close HTML tag A. (FOR USER) */
      define('HideBlockBOpen', '<div class="HideBlockB">'); /* Open HTML tag B. (FOR GUEST) */
      define('HideBlockBClose', '</div>'); /* Close HTML tag B. (FOR GUEST) */
      /*define('HideBlockCLine', '<hr class="HideBlockLine" />');*/ /* The separation line. */
      /* =============== */
      define('HideBlockDOpen', '<!-- GuestHideBBCodeMODStart -->'); /* Open HTML replacement - Only for experts! (Do not use the # symbol) */
      define('HideBlockDClose', '<!-- GuestHideBBCodeMODEnd -->'); /* Close HTML replacement - Only for experts! (Do not use the # symbol) */
      /* === SETTING === */
    if (GUEST_HIDE_BBCODE_MOD_ENABLED)
    {
      $user->add_lang('mods/guest_hide_bbcode_mod');
      $template->assign_vars(array('GUEST_HIDE_BBCODE_MOD' => true));
    }
  }
  /* === Do not change anything below this line === */
  if (GUEST_HIDE_BBCODE_MOD_ENABLED)
  {
      if ($user->data['user_id'] == ANONYMOUS || GUEST_HIDE_BBCODE_MOD_BOT && $user->data['is_bot'])
      {
      $replace_hide = HideBlockBOpen.$user->lang['HIDE_ON'];
        if (GUEST_HIDE_BBCODE_MOD_REG_LINK && $config['require_activation'] == USER_ACTIVATION_DISABLE)
        {
        $replace_hide .= '<a href="'.append_sid("{$phpbb_root_path}ucp.$phpEx",'mode=login').'">'.$user->lang['HIDE_REG'].'</a>';
          }
          else if (GUEST_HIDE_BBCODE_MOD_REG_LINK && $config['require_activation'] != USER_ACTIVATION_DISABLE)
          {
        $replace_hide .= '<a href="'.append_sid("{$phpbb_root_path}ucp.$phpEx",'mode=register').'">'.$user->lang['HIDE_REG'].'</a>';
          }
          else
          {
        $replace_hide .= $user->lang['HIDE_REG'];
        }
      $replace_hide .= HideBlockBClose;
        }
        else
        {
      $replace_hide = HideBlockAOpen.$user->lang['HIDE_OFF'].'$1'.HideBlockAClose;
      }
    $text = preg_replace('#'.HideBlockDOpen.'(.*?)'.HideBlockDClose.'#', $replace_hide, $text);
  }
/* =============================================================================== */

ma non riesco a capire su che parte agire.

Suggerimenti?

Re: Guest hide BBCODE e testo a capo

Inviato: 29/02/2012, 15:12
da maxweb
credevo fosse un problema di facile risoluzione, ma considerato che nessuno risponde, presumo ci siano delle difficoltà...

Help Me!!!! :D