BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 9:00 und 10:00 Uhr

It is currently Sun 26. Oct 2025, 10:36

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Tue 6. Oct 2009, 01:58 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

No_Pics_4_Guests




Standard-Version für prosilver

Öffne

includes/bbcode.php

Finde

Code:
   /**
   * 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:
/**
   * 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:
<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:
 <!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->


Ersetze mit

Code:
 <!-- 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:
             $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:
             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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
POWERED_BY
[ Time : 0.012s | 16 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]