| Author |
Message
|
| bshadow1 |
Posted: Mon Aug 14, 2006 9:30 pm Post subject: probs with colord user group |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
|
| Back to top |
|
 |
| kkroo |
Posted: Tue Aug 15, 2006 1:16 am Post subject: |
|
|
Site Admin
Joined: 10 Dec 2005 Posts: 192
|
Hey,
Because I am currently on vacation, I don't have access to my files, editors and stuff at home, so I am gonna teach you how to do it:
first, find the place in the script where you want to add coloring, this can be done using Ctrl+F
find the the that contains the user link
before it add a line similar to this:
| Code: | $user_coloring = ($user_color = color_groups_user($row['user_id'])) ? 'style="font-weight:bold;color:' . $user_color . '" ' : '';
|
just replace $row['user_id'] with the variable that contains the user id
after that, go back to the line where the url is
in that line, find:
and before it add
| Code: | | ' . $user_coloring . ' |
$user_coloring is the variable that you defined in the previous line that contains the user's color
save the file, and you are done [/quote] |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Thu Aug 17, 2006 4:08 am Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
got no clue what to do  |
|
| Back to top |
|
 |
| kkroo |
Posted: Sat Aug 19, 2006 7:06 pm Post subject: |
|
|
Site Admin
Joined: 10 Dec 2005 Posts: 192
|
| I am currently on vacation, so I dont have time for coding right now, if you don't mind waiting until i get back, i can help you then. |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Sun Aug 20, 2006 10:36 pm Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
no prob..
im w8ing
thanks |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Wed Sep 06, 2006 1:27 am Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
still w8ing here omar
glad to see you back |
|
| Back to top |
|
 |
| kkroo |
Posted: Wed Sep 06, 2006 12:05 pm Post subject: |
|
|
Site Admin
Joined: 10 Dec 2005 Posts: 192
|
soryy for the late reply, i have been busy lately
first find the name of the variable of the users link in the TPL file.
example:
in <a href="foo.php" >{USER_NAME}</a>
USER_NAME is the variable
in <a href="foo.php" >{block.USER_NAME}</a>
USER_NAME is the variable
next, you open the page that that tpl file is called from.
hit Ctrl+f and paste the name of the variable which is: USER_NAME in this case
you should find something like this:
'USER_NAME' => $row['username'],
After that add this on the next line
'USER_COLOR' => ($user_color = color_groups_user($row['user_id'])) ? 'style="font-weight:bold;color: #' . $user_color . '" ' : '',
(edit $row['user_id'] to the user id variable)
then reopen that tpl file and find where {USER_NAME} is
in the example we found:
<a href="foo.php" >{USER_NAME}</a>
after the href="foo.php"
add a space and
{USER_COLOR}
save the files and you are done
BTW, if you are having any trouble contact me on MSN |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Mon Sep 11, 2006 10:54 pm Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
cant reach u via msn...
and im lost with the code u wrote me...
any help? |
|
| Back to top |
|
 |
| kkroo |
Posted: Wed Sep 13, 2006 11:56 am Post subject: |
|
|
Site Admin
Joined: 10 Dec 2005 Posts: 192
|
why can't you reace me via MSN?
my email is princeomz2004 AT hotmail DOT com
what is yours? |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Fri Sep 15, 2006 4:03 pm Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
|
| Back to top |
|
 |
| bshadow1 |
Posted: Mon Sep 18, 2006 7:14 pm Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
omar?
im still looking for help  |
|
| Back to top |
|
 |
| kkroo |
Posted: Mon Sep 18, 2006 7:34 pm Post subject: |
|
|
Site Admin
Joined: 10 Dec 2005 Posts: 192
|
| I added you on MSN, when i get online just msg me. |
|
| Back to top |
|
 |
| bshadow1 |
Posted: Mon Sep 18, 2006 9:59 pm Post subject: |
|
|
Forum member
Joined: 14 Aug 2006 Posts: 10
|
i checked in msn blocker , and u blocked me in mistake
so remove me from the block and lets chat  |
|
| Back to top |
|
 |
| Sylver Cheetah 53 |
Posted: Tue Mar 10, 2009 4:59 pm Post subject: |
|
|
 Forum member
Joined: 10 Mar 2009 Posts: 5 Location: Milky Way
|
I don't think he blocked you by mistake.  |
|
| Back to top |
|
 |
|
|