phpBB SnippetsLegend Tweaks

Post Reply
User avatar
Topic Starter
Restless Rancor
Great Britain

Site Admin
New Member
Posts: 48
Joined: October 15th, 2018, 3:14 pm
Age: 25
Location: Hampshire, England
Contact:

Legend Tweaks

#1

Post by Restless Rancor » October 15th, 2018, 7:02 pm

This snippet changes how the Legend displays on the index page.



Tested On:

Open root/index.php

Find:

Code: Select all

$legend[] = '<span' . $colour_text . '>' . $group_name . '</span>';
Replace with:

Code: Select all

$legend[] = '<span' . $colour_text . '>[' . $group_name . ']</span>';
Find:

Code: Select all

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

Code: Select all

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

Code: Select all

$legend = implode($user->lang['COMMA_SEPARATOR'], $legend);
Replace with:

Code: Select all

$legend = implode(' | ', $legend);
Open root/styles/prosilver/template/index_body.html

Find:

Code: Select all

<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF LEGEND --><br />{L_LEGEND}{L_COLON} {LEGEND}<!-- ENDIF -->
Open root/ext/zyleta/tabbedstatblock/styles/prosilver/template/event/index_body_stat_blocks_before.html

Find:

Code: Select all

<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF LEGEND --><br />{L_LEGEND}{L_COLON} {LEGEND}<!-- ENDIF -->
Note: You only need to make this last change if you have Tabbed Stat Block installed.
[/hidden]
Changelog:
15/10/2018 20:02 UTC+1, version 1.0.0:
  • Initial release.
[/spoil]


These aren't the droids you're looking for.

Post Reply

Topic Subscribers

1 user subscribed to this topic: Restless Rancor