Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
Post
by Stoker » 26 Jul 2011, 19:27
New Legend
Written by Stoker
Lets spice up the legend display on forum index.
This little change makes it look like on the screenshots.
legend-before.png
legend-after.png
Open 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&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&g=' . $row['group_id']) . '">[' . $group_name . ']</a>';
Find:
Replace with:
Code: Select all
$legend = implode(' || ', $legend);
Open styles/prosilver/template/index_body.html
Find:
Code: Select all
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
Replace with:
Code: Select all
<!-- IF LEGEND --><br />{L_LEGEND}: {LEGEND}<!-- ENDIF --></p>
You do not have the required permissions to view the files attached to this post.
Post
by Terr0r » 08 Nov 2011, 22:31
thanks for this one you can use this also for mChat
EDIT
is it possible to set the legend under each other ? so yes how can I do that ?
already thanks for the help
Greets Terr0r
Post
by Stoker » 09 Nov 2011, 14:25
Use $legend = implode('<br />', $legend);
instead of $legend = implode(' || ', $legend);
Post
by Terr0r » 09 Nov 2011, 15:00
I have replace this code
$legend = implode(' || ', $legend);
for this one
$legend = implode('<br />', $legend);
but it is not working
EDIT
It is working I had upload the wrong file
Post
by Stoker » 09 Nov 2011, 15:04
Link?
And what happens when you make the change?
This is what happens when I make the change:
legend.png
That was what you wanted correct?
You do not have the required permissions to view the files attached to this post.
Post
by Terr0r » 09 Nov 2011, 15:31
It is working now for me I had upload the wrong file
And I have another question is it possible to set the legend on a other place
I have now this
legend1.png
And I want something like this
legend2.png
Is that possible I hope that it is possible
already thanks for the help
Greets Terr0r
You do not have the required permissions to view the files attached to this post.
Post
by Stoker » 09 Nov 2011, 15:33
I think there is a mod called legend positioning at phpbb.com
Post
by Terr0r » 09 Nov 2011, 15:36
I have found this one
http://www.phpbb.com/customise/db/mod/g ... sitioning/ but it is for phpBB 3.0.RC7 I hope that it is working on phpBB 3.0.9
is there not a easier way to do this ? I hope it
is there no file in phpBB that where I can change that ?
Greets Terr0r