Colorize Username »  Show posts from    to     

Icy Phoenix


Old Support Topics - Colorize Username



fpscops [ Sun 23 Dec, 2007 03:51 ]
Post subject: Colorize Username
I am trying to put the finishing touches on blending a phpbb mod into icyphoenix.

I am getting this error when trying to colorize a username.

Fatal error: Call to undefined function: colorize_username()

Can someone please tell me where I can find this function at? I've searched the forums and I don't have the functions_color_group.php file.

Thanks in Advance.

Edit

I called the functions_group.php file and now it doesn't show an error but doesnt display the username.

Any help would be much appreciated.


KugeLSichA [ Sun 23 Dec, 2007 20:04 ]
Post subject: Re: Colorize Username
hey fpscops,

please tell us, which icy version you use and which MOD you tried to installed...

thanks


fpscops [ Mon 24 Dec, 2007 01:42 ]
Post subject: Re: Colorize Username
Thanks for your reply.

Version: 1.1.7.22

The mod is phpbb classifieds. I have everything working 100% with Icy except the usernames color. Being the freak I am it drives me crazy.


KugeLSichA [ Mon 24 Dec, 2007 09:20 ]
Post subject: Re: Colorize Username
hey,

you have to add
Code: [Hide] [Select]
colorize_username($row['user_id']);
in all files where the username is called...

i dont have the time to send you a step by step guide. but i´m sure you get it by your own.

please note that after the "colorize_username(" the var can also be "$userdata['user_id']"

for the colorize function must must call the user_id not the username!

hope this helps


fpscops [ Mon 24 Dec, 2007 17:41 ]
Post subject: Re: Colorize Username
Thanks for you reply.

I had tried that already and it was giving me an error.

I changed this:

$user_id = $adverts_row['user_id'];

to:

$user_id = colorize_username($adverts_row['user_id']);

and added:

include_once($phpbb_root_path . 'includes/functions_groups.' . $phpEx);

right after session management.

The error I'm getting is a phpbb general error that states "User does not exist."

Again thanks for your help.


KugeLSichA [ Mon 24 Dec, 2007 19:22 ]
Post subject: Re: Colorize Username
fpscops wrote: [View Post]
Thanks for you reply.

I had tried that already and it was giving me an error.

I changed this:

$user_id = $adverts_row['user_id'];

to:

$user_id = colorize_username($adverts_row['user_id']);

and added:

include_once($phpbb_root_path . 'includes/functions_groups.' . $phpEx);

right after session management.

The error I'm getting is a phpbb general error that states "User does not exist."

Again thanks for your help.


hey,

yes the error is correct because this line
Code: [Hide] [Select]
$user_id = $adverts_row['user_id'];
says that the user id = adverts user id. you cant call there the colorize_username function.

you must stay this line as it is and must call the colorize function in that line, where the "username" written.

if you dont get it working, please attach me the file(s) here where you get this error.


fpscops [ Mon 24 Dec, 2007 22:33 ]
Post subject: Re: Colorize Username
I think what's giving me trouble is it's using the get_userdata function.

I've attatched the two files that I'm needing to get changed. I really appreciate any help.

I've modded the phpca mod to satisfy another need. Once I get it fully functional with Icy I upload it here.




Powered by Icy Phoenix