MyBB Community Forums

Full Version: Change reputation to letters?? HELP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I want to have my reputation like this:

http://prntscr.com/3i680l

I have tried through phpmyadmin but it says I need to type in numbers.

Any help?
Open your functions.php and search for reputation.

After

$display_reputation = '';

Add

if($uid == 1)
$reputation = 'Text';
(2014-05-11, 09:10 AM)Nayson Wrote: [ -> ]Open your functions.php and search for reputation.

After

$display_reputation = '';

Add

if($uid == 1)
$reputation = 'Text';
I dont see any changes, but maybe it's my cache. My cache has been really bad these days :p

I want it to show on the Profile, Postbit, and on a user that i have repped. Thanks..
(2014-05-11, 09:10 AM)Nayson Wrote: [ -> ]Open your functions.php and search for reputation.

After

$display_reputation = '';

Add

if($uid == 1)
$reputation = 'Text';

This just changes the name of rep for all users,fyi.
Edit: Still changes it for all users, I'll update this post in a minute.

Open functions.php that will be located in your inc folder.

Find: Which should be located on line 2917.
function get_reputation($reputation, $uid=0)

You will then need to call the UID you are wanting to update with text... here is an example.

function get_reputation($reputation, $uid=0, $uid=1)
See the change?


Now find:
$display_reputation = '';

And directly under it add the following code:
 if($uid == 1)
    {
        $reputation = "Goin' in";
    }

You are done, just make sure the UIDs are matching.
(2014-05-14, 07:06 AM)Wage Wrote: [ -> ]Edit: Still changes it for all users, I'll update this post in a minute.

Open functions.php that will be located in your inc folder.

Find: Which should be located on line 2917.
function get_reputation($reputation, $uid=0)

You will then need to call the UID you are wanting to update with text... here is an example.

function get_reputation($reputation, $uid=0, $uid=1)
See the change?


Now find:
$display_reputation = '';

And directly under it add the following code:
 if($uid == 1)
    {
        $reputation = "Goin' in";
    }

You are done, just make sure the UIDs are matching.
That is working, BUT all the other users have the reputation (custom one) I entered.. How can I do it so only I can have this? Toungue

Help would be appreciated! --bump--
You might need to make sure that the field reputation is actually a column type that allows text such as VARCHAR or TEXT. You can easily do this in PHPMyAdmin.
(2014-07-09, 07:11 PM)dragonexpert Wrote: [ -> ]You might need to make sure that the field reputation is actually a column type that allows text such as VARCHAR or TEXT. You can easily do this in PHPMyAdmin.

How can I do this, i tried before but no success. Undecided

If i edit "6" to letters it says i only can use numbers..

[Image: o0WxrSZ.png]
ALTER TABLE mybb_users MODIFY COLUMN reputation VARCHAR(50)

If that doesn't work use:
ALTER TABLE mybb_users ALTER COLUMN reputation VARCHAR(50)

Note you can change 50 to any number between 1 and 65535.
(2014-07-09, 07:34 PM)dragonexpert Wrote: [ -> ]
ALTER TABLE mybb_users MODIFY COLUMN reputation VARCHAR(50)

If that doesn't work use:
ALTER TABLE mybb_users ALTER COLUMN reputation VARCHAR(50)

Note you can change 50 to any number between 1 and 65535.
sorry for the noob question, but how do i run the commands? Huh

nvm i found it.

It worked, but it changed to my regular reputation right after i changed it. Sad
Pages: 1 2