TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 01:53:24 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 213
  • Total: 213

Edit userbox info

Started by envon, October 18, 2005, 09:25:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

winrules

Quote from: IchBinâââ,¬Å¾Ã,¢ on November 05, 2005, 02:52:10 PM
Open the index.english.php file in the /Themes/default/languages folder.
Find this line:

Find this line:
$txt[19] = 'Members';

Replace with:
$txt[19] = 'Supporters';

$txt[656] = 'Latest Member';

Replace with:
$txt[656] = 'Fusion Artists';

the first one would work, but on the second one you'd also have to edit /Themes/default/TPortalBlocks.template.php and hook it up to a MySQL query to figure out the number of members in the fusion artist group or else it would just show "Fusion Artists: name of latest member".

PS It also would change total members to supporters and latest members to fusion artist everywhere in the forum (in your case changing total members to supporters might not be a bad thing so the first part of IchBin's suggestion would probobally work, but you'd need to work on the second part. I'll try and figure out how to do this and post some code.

winrules

#11
Ok I don't know much php so I don't know how to make it dynamic so you'll just have to update it whenever the number of artists changes but here's what you need to do:

First, the first part of IchBin's suggestion

In /Themes/default/languages/index.english.php

Find this
$txt[19] = 'Members';

And replace with
$txt[19] = 'Total Supporters';

Now my add-on to IchBin's suggestion (note that this is probobally not the most efficient way of doing this but it should work-always make backups of the files you edit):

In /Themes/default/languages/index.english.php

Add this at the end (but before the >?)
$txt['fusion_artists'] = 'Fusion Artists: "number of people"';
(replace "number of people" with the number of fusion artists)

Now in /Themes/default/TPortalBlocks.template.php

Find
<br />'.$bullet.$txt[656]. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';

And replace with
<br />'.$bullet.$txt['fusion_artists'].'</b></a>';

That should work, but you will have to manually edit the number every time the number of fusion artists changes.

IchBin

Oops... I just kind of skipped over the fact that it was a member group. :o

envon

Thanks alot guys for working on this you rock.