Colorize Username


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.

Last edited by fpscops on Sun 23 Dec, 2007 04:17; edited 1 time in total
Profile PM  
Subject: Re: Colorize Username
hey fpscops,

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

thanks

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. :chef:

Profile PM  
Subject: Re: Colorize Username
hey,

you have to add
Code: [Download] [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

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.

Profile PM  
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: [Download] [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.

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.


dealsmod.zip
Description:  
Download
Filename: dealsmod.zip
Filesize: 7.62 KB
Downloaded: 160 Time(s)

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 1.8965s (PHP: 1% SQL: 99%)
SQL queries: 12 - Debug Off - GZIP Enabled