PDA

View Full Version : Variables


DJ-Dez
03-31-2013, 01:57 AM
Hiya, so we're making users choose their own hex code colours via a custom profile field. We've done exactly what Lynnes ADVISED US:


Set up a profile field and include some preset colors (if you don't, then you users may enter invalid colors) and then create a plugin that changes the variable musername to this new colored username.


However, for example:
x can only see their name colour, and nobody elses,
while y can see theirs but not x's.

therefore, we're needing help with making the code visible for others to see. The code doesn't work either in "users in the last 24 hours" or our shoutbox, bt works fine in threads etc.

How can we fix this?

This is the code:

Having some help with it, will pass on to our helper. We got told something about making it a global variable? How could we do this?

DaveNGU
03-31-2013, 02:05 PM
Hiya, so we're making users choose their own hex code colours via a custom profile field. We've done exactly what Lynnes ADVISED US:



However, for example:
x can only see their name colour, and nobody elses,
while y can see theirs but not x's.

therefore, we're needing help with making the code visible for others to see. The code doesn't work either in "users in the last 24 hours" or our shoutbox, bt works fine in threads etc.

How can we fix this?

This is the code:



Having some help with it, will pass on to our helper. We got told something about making it a global variable? How could we do this?

Rather than doing it within templates update their username mark-up with a plugin.

DJ-Dez
03-31-2013, 03:35 PM
Can anyone shed some light on this issue if possible. Would really appreciate it.