Page 1 of 2

Legend display

Posted: 05 Apr 2010, 18:35
by Fire-Fox
Hey!

Here is a little snippet or what its called so you can change

Legend: Administrators, Bots

To:
Legend: Administrators | Bots


Found it:
Open: index.php
Find

Code: Select all

$legend = implode(' , ', $legend);
Replace with:

Code: Select all

$legend = implode(' | ', $legend);

Re: Legend display

Posted: 05 Apr 2010, 21:10
by cisco007
for those of us who don't know our way around a phpbb script :lol: , which file is that in??

Re: Legend display

Posted: 05 Apr 2010, 22:08
by Fire-Fox
Sorry added to my post :)

Re: Legend display

Posted: 05 Apr 2010, 22:17
by cisco007
so since this is not support but a snippet i will move it to the correct forum!

Re: Legend display

Posted: 05 Apr 2010, 22:41
by Fire-Fox
Thanks couldn't make topic there :)

Re: Legend display

Posted: 06 Apr 2010, 07:00
by Anthies
Thanks for the code snippet, was useful and works like a charm on my board.

Re: Legend display

Posted: 11 May 2010, 19:02
by Mario14125
hih modification I know a lot better :)

Autor Modyfikacji: Mario14125
Nazwa Modyfikacji: Legenda phpBB MODs
Wersja Modyfikacji: 1.0.0
Opis Modyfikacji: Modyfikacja zmienia standardowy wygląd legendy grup na bardziej przejrzysty.

Zrzuty Ekranu Modyfikacji: BRAK
Demonstracja:

Poziom Instalacji: Łatwy
Czas Instalacji: 1-2 Minuty

Plików Do Edycji: 2
Plików Do Wgrania: 0

Wersja phpBB: 3.0.7-PL1

Instrukcja:

Code: Select all

#
#----------[ OTWÓRZ ]----------
#

index.php

#
#----------[ ZNAJDŹ ]----------
#

     if ($row['group_name'] == 'BOTS' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))

#
#----------[ ZAMIEŃ NA ]----------
#

     if ($row['group_name'] == '[ BOTS ]' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))

#
#----------[ ZNAJDŹ ]----------
#

          $legend[] = '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . $group_name . '</a>';

#
#----------[ ZAMIEŃ NA ]----------
#

          $legend[] = '[ <b><a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . $group_name . '</a></b> ]';

#
#----------[ ZNAJDŹ ]----------
#

$legend = implode(', ', $legend);

#
#----------[ ZAMIEŃ NA ]----------
#

$legend = implode(' ', $legend);

#
#----------[ OTWÓRZ ]----------
#

styles/prosilver/template/index_body.html

#
#----------[ ZNAJDŹ ]----------
#

<em>{L_LEGEND}: {LEGEND}</em>

#
#----------[ ZAMIEŃ NA ]----------
#

{L_LEGEND}: {LEGEND}
Panel Administratora » Wyczyść cache » Uruchom » TAK

Re: Legend display

Posted: 11 May 2010, 19:07
by cisco007
why is it that you feel that you have to post a supposedly better method, but you make it longer that the one posted?
And you should post stuff in English, not many people, well at least I, can't understand what you posted!

Re: Legend display

Posted: 11 May 2010, 19:52
by Mario14125
Because I think my way is clear in appearance and better :) As I come to add the English version...

Re: Legend display

Posted: 15 May 2010, 04:28
by Ephemeraboy
how to display legen on center bar and with structure
[Legend1] [Legend2]