Forum Index Forum Index
Omar's Mods
FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register :: Log in Log in to check your private messages


Log in
Username:
Password:

 Remember Me?

 

Register

General

Home

Omar's Mods

Contact Us

Need a coder?

Forum

Forum Index

FAQ

Search

Memberlist

Usergroups

Downloads


Search
Search:
Web
Omar's Mods
Forum

Enjoy my Mods? -


Post new topic  Reply to topic
 probs with colord user group « View previous topic :: View next topic » 
Author Message
bshadow1
PostPosted: Mon Aug 14, 2006 9:30 pm    Post subject: probs with colord user group Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

im trying to add the color to add the colors to the last visit mod :
http://www.phpbbhacks.com/download/237
and also trying to add colors to my top posters
http://www.phpbbhacks.com/download/5976

can some1 help me ?

thanks
Back to top
View user's profile Send private message
kkroo
PostPosted: Tue Aug 15, 2006 1:16 am    Post subject: Reply with quote

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:
Code:
 href="


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 Smile[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website Talk to kkroo over MSN Messenger
bshadow1
PostPosted: Thu Aug 17, 2006 4:08 am    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

got no clue what to do Smile
Back to top
View user's profile Send private message
kkroo
PostPosted: Sat Aug 19, 2006 7:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Talk to kkroo over MSN Messenger
bshadow1
PostPosted: Sun Aug 20, 2006 10:36 pm    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

no prob..
im w8ing

thanks
Back to top
View user's profile Send private message
bshadow1
PostPosted: Wed Sep 06, 2006 1:27 am    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

still w8ing here omar Smile
glad to see you back
Back to top
View user's profile Send private message
kkroo
PostPosted: Wed Sep 06, 2006 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Talk to kkroo over MSN Messenger
bshadow1
PostPosted: Mon Sep 11, 2006 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
kkroo
PostPosted: Wed Sep 13, 2006 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Talk to kkroo over MSN Messenger
bshadow1
PostPosted: Fri Sep 15, 2006 4:03 pm    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

bshadow_@hotmail.com
maybe u blocked me?
Back to top
View user's profile Send private message
bshadow1
PostPosted: Mon Sep 18, 2006 7:14 pm    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

omar?
im still looking for help Smile
Back to top
View user's profile Send private message
kkroo
PostPosted: Mon Sep 18, 2006 7:34 pm    Post subject: Reply with quote

Site Admin

Joined: 10 Dec 2005
Posts: 192

I added you on MSN, when i get online just msg me.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Talk to kkroo over MSN Messenger
bshadow1
PostPosted: Mon Sep 18, 2006 9:59 pm    Post subject: Reply with quote

Forum member

Joined: 14 Aug 2006
Posts: 10

i checked in msn blocker , and u blocked me in mistake Smile
so remove me from the block and lets chat Smile
Back to top
View user's profile Send private message
Sylver Cheetah 53
PostPosted: Tue Mar 10, 2009 4:59 pm    Post subject: Reply with quote

Forum member

Joined: 10 Mar 2009
Posts: 5
Location: Milky Way

I don't think he blocked you by mistake. Embarassed
Back to top
View user's profile Send private message AIM Address Yahoo Messenger Talk to Sylver Cheetah 53 over MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



DAJ Glass (1.0.10) template by Dustin Baccetti
EQ graphic based off of a design from www.freeclipart.nu
Powered by phpBB © 2001, 2005 phpBB Group

Board Security

900 Attacks blocked