2014-05-11, 08:44 AM
Pages: 1 2
2014-05-11, 09:10 AM
Open your functions.php and search for reputation.
After
Add
After
$display_reputation = '';
Add
if($uid == 1)
$reputation = 'Text';
2014-05-11, 09:16 AM
(2014-05-11, 09:10 AM)Nayson Wrote: [ -> ]Open your functions.php and search for reputation.I dont see any changes, but maybe it's my cache. My cache has been really bad these days :p
After
$display_reputation = '';
Add
if($uid == 1) $reputation = 'Text';
I want it to show on the Profile, Postbit, and on a user that i have repped. Thanks..
2014-05-11, 10:11 PM
(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.
2014-05-14, 07:06 AM
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.
You will then need to call the UID you are wanting to update with text... here is an example.
Now find:
And directly under it add the following code:
You are done, just make sure the UIDs are matching.
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-07-09, 07:04 PM
(2014-05-14, 07:06 AM)Wage Wrote: [ -> ]Edit: Still changes it for all users, I'll update this post in a minute.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?
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.
See the change?function get_reputation($reputation, $uid=0, $uid=1)
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.
Help would be appreciated! --bump--
2014-07-09, 07:11 PM
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:24 PM
(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.
If i edit "6" to letters it says i only can use numbers..
2014-07-09, 07:34 PM
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:40 PM
(2014-07-09, 07:34 PM)dragonexpert Wrote: [ -> ]sorry for the noob question, but how do i run the commands?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.
nvm i found it.
It worked, but it changed to my regular reputation right after i changed it.
Pages: 1 2