Legend display

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Legend display

Post 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);
Last edited by Fire-Fox on 05 Apr 2010, 22:07, edited 4 times in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Legend display

Post by cisco007 »

for those of us who don't know our way around a phpbb script :lol: , which file is that in??
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Legend display

Post by Fire-Fox »

Sorry added to my post :)
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Legend display

Post by cisco007 »

so since this is not support but a snippet i will move it to the correct forum!
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Legend display

Post by Fire-Fox »

Thanks couldn't make topic there :)
User avatar
Anthies
BBCoder II
BBCoder II
Posts: 10
Joined: 20 Mar 2010, 12:41
Location: Finland
Contact:

Re: Legend display

Post by Anthies »

Thanks for the code snippet, was useful and works like a charm on my board.
Mario14125
I have been banned!
I have been banned!
Posts: 26
Joined: 29 Apr 2010, 10:38
Location: Poland

Re: Legend display

Post 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
Click Here!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Legend display

Post 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!
Mario14125
I have been banned!
I have been banned!
Posts: 26
Joined: 29 Apr 2010, 10:38
Location: Poland

Re: Legend display

Post by Mario14125 »

Because I think my way is clear in appearance and better :) As I come to add the English version...
Click Here!
User avatar
Ephemeraboy
BBCoder II
BBCoder II
Posts: 37
Joined: 09 Mar 2010, 04:03
Location: bonatius.com
Contact:

Re: Legend display

Post by Ephemeraboy »

how to display legen on center bar and with structure
[Legend1] [Legend2]
My Personal Blog
http://www.bonatius.com
Locked