[Snippet] No_Pics_4_Guests (de)

Snippet-Area for phpBB 3.0.x

[Snippet] No_Pics_4_Guests (de)

Postby 4seven » Tue 6. Oct 2009, 01:58 | Userzeit: +1.00 / Di 6. Okt 2009, 02:58

No_Pics_4_Guests




Standard-Version für prosilver

Öffne

includes/bbcode.php

Finde

Code: Select all
   /**
   * Return bbcode template
   */
   function bbcode_tpl($tpl_name, $bbcode_id = -1, $skip_bitfield_check = false)
   {
      static $bbcode_hardtpl = array();
      if (empty($bbcode_hardtpl))
      {
         global $user;
         
         $bbcode_hardtpl = array(
            'b_open'   => '<span style="font-weight: bold">',
            'b_close'   => '</span>',
            'i_open'   => '<span style="font-style: italic">',
            'i_close'   => '</span>',
            'u_open'   => '<span style="text-decoration: underline">',
            'u_close'   => '</span>',
            'img'      => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
            'size'      => '<span style="font-size: $1%; line-height: normal">$2</span>',
            'color'      => '<span style="color: $1">$2</span>',
            'email'      => '<a href="mailto:$1">$2</a>'
         );
      }


Ersetze mit

Code: Select all
/**
   * Return bbcode template
   */
   function bbcode_tpl($tpl_name, $bbcode_id = -1, $skip_bitfield_check = false)
   {

static $bbcode_hardtpl = array();   
      if (empty($bbcode_hardtpl))
      {
         global $user;

// No_Pics_4_Guests_by_4seven/2008
         if ($user->data['user_id'] == ANONYMOUS)
         {
            $bbcode_hardtpl = array(
            'b_open'   => '<span style="font-weight: bold">',
            'b_close'   => '</span>',
            'i_open'   => '<span style="font-style: italic">',
            'i_close'   => '</span>',
            'u_open'   => '<span style="text-decoration: underline">',
            'u_close'   => '</span>',
            'size'      => '<span style="font-size: $1%; line-height: normal">$2</span>',
            'color'      => '<span style="color: $1">$2</span>',
            'email'      => '<a href="mailto:$1">$2</a>',
               'img'      => '<img src="' . $phpbb_root_path . 'images/nichts_da.png" width="120" height="55"

alt="Nichts zu sehen? - Melde dich an und logg Dich ein!" />');
           }
           else
         {
         $bbcode_hardtpl = array(
            'b_open'   => '<span style="font-weight: bold">',
            'b_close'   => '</span>',
            'i_open'   => '<span style="font-style: italic">',
            'i_close'   => '</span>',
            'u_open'   => '<span style="text-decoration: underline">',
            'u_close'   => '</span>',
            'size'      => '<span style="font-size: $1%; line-height: normal">$2</span>',
            'color'      => '<span style="color: $1">$2</span>',
            'email'      => '<a href="mailto:$1">$2</a>',
            'img'      => '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />');
         }}
// No_Pics_4_Guests_by_4seven/2008


Im Ordner images ein Bild deiner Wahl hochladen und an dieser Stelle Link, Größe und Alternativ-Text anpassen

Code: Select all
<img src="' . $phpbb_root_path . 'images/nichts_da.png" width="120" height="55" alt="Nichts zu sehen? - Meld dich an und logg Dich ein!" />


Image




Version für subsilver2

Wichtig: Bei Verwendung von subsilver 2 muss dieser Schritt für alle Styles gemacht werden.
Falls phpBB3-Updates der bbcode.html erfolgen, muss dieser Schritt für alle Styles wiederholt werden :wink:

Kopiere styles/xxx/template/bbcode.html und benenne die Datei in bbcode_switch.html um

Dann öffne bbcode_switch.html

Finde

Code: Select all
 <!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->


Ersetze mit

Code: Select all
 <!-- BEGIN img --><img src="images/nichts_da.png" width="120" height="55" alt="Nichts zu sehen? - Melde dich an und logg Dich ein!" /><!-- END img -->     


Lade alle Kopien nach styles/xxx/template/bbcode_switch.html

Öffne (erneut) includes/bbcode.php

Finde

Code: Select all
             $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';

            if (!@file_exists($this->template_filename))
            {
                if (isset($user->theme['template_inherits_id']) && $user->theme['template_inherits_id'])
                {
                    $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_inherit_path'] . '/template/bbcode.html';     


Ersetze mit

Code: Select all
             if ($user->data['user_id'] == ANONYMOUS){
            $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode_switch.html';}
            else{
            $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/bbcode.html';}

            if (!@file_exists($this->template_filename))
            {
                if (isset($user->theme['template_inherits_id']) && $user->theme['template_inherits_id'])
                {               
                    if ($user->data['user_id'] == ANONYMOUS){
                    $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_inherit_path'] . '/template/bbcode_switch.html';}
                    else{
                    $this->template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_inherit_path'] . '/template/bbcode.html';}     


Alle Board- und Browsercaches leeren
User avatar
4seven
Administrator
 
Posts: 427
 
Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...
 
Joined:
Sun 13. Jan 2008, 23:44
 
Letzter Login:
Mon 1. Aug 2022, 16:40
 
Posted:
Tue 6. Oct 2009, 01:58 +1.00
Userzeit: Di 6. Okt 2009, 02:58

Return to [Snippet] for 3.0.x



Who is online

Users browsing this forum: No registered users and 11 guests

cron