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!" />

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