3.1.x SnippetsNew Legend

Snippets
Previous topicNext topic
User avatar

Topic Author
dmzx
Founder
Founder
Magic user status: Online
Posts: 5974
Joined: Jan 13th, '14, 20:45
    Windows 8 Firefox

New Legend

Post by dmzx »

Written by Stoker :D adapted vers. 3.1.2 by discovery :)

Open index.php
Find This may be a partial find and not the whole line

Code: Select all

$legend[] = '<span' . $colour_text . '>' . $group_name . '</span>';
Replace with Replace the preceding lines with the following

Code: Select all

$legend[] = '<span' . $colour_text . '>[' . $group_name . ']</span>';
Find This may be a partial find and not the whole line

Code: Select all

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

Code: Select all

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

Open Root/language/XX/common.php
Find This may be a partial find and not the whole line

Code: Select all

'COMMA_SEPARATOR'		=> ' ,  ',	// Used in pagination of ACP & prosilver, use localised comma if appropriate, eg: Ideographic or Arabic
Replace with Replace the preceding lines with the following

Code: Select all

'COMMA_SEPARATOR'		=> ' || ',	// Used in pagination of ACP & prosilver, use localised comma if appropriate, eg: Ideographic or Arabic


Result:
Capture.png
You do not have the required permissions to view the files attached to this post.
binance.com ;) try it!
User avatar

Ascareus Kratos
Users
Users
Magic user status: Offline
Posts: 2
Joined: Feb 22nd, '15, 13:08
    Windows 8.1 Firefox

Re: New Legend

Post by Ascareus Kratos »

How to disable the italic...?
User avatar

Animo
Users
Users
Magic user status: Offline
Posts: 24
Joined: Jan 17th, '16, 17:00
    Windows 10 Chrome

Re: New Legend

Post by Animo »

Ascareus Kratos wrote: Feb 27th, '15, 15:41 how to disable the italic...?
That's from the template baby.
<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
Delete the <em></em> tags :wink:
Previous topicNext topic