Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets
Post
by Fire-Fox » 05 Apr 2010, 16:35
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);
Last edited by Fire-Fox on 05 Apr 2010, 20:07, edited 4 times in total.
Post
by cisco007 » 05 Apr 2010, 19:10
for those of us who don't know our way around a phpbb script
, which file is that in??
Post
by Fire-Fox » 05 Apr 2010, 20:08
Sorry added to my post
Post
by cisco007 » 05 Apr 2010, 20:17
so since this is not support but a snippet i will move it to the correct forum!
Post
by Fire-Fox » 05 Apr 2010, 20:41
Thanks couldn't make topic there
Post
by Anthies » 06 Apr 2010, 05:00
Thanks for the code snippet, was useful and works like a charm on my board.
Post
by Mario14125 » 11 May 2010, 17:02
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
Post
by cisco007 » 11 May 2010, 17:07
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!
Post
by Mario14125 » 11 May 2010, 17:52
Because I think my way is clear in appearance and better
As I come to add the English version...
Post
by Ephemeraboy » 15 May 2010, 02:28
how to display legen on center bar and with structure
[Legend1] [Legend2]