• Page 1 of 1
  • 1
Text to insert
ashu2394
Posts: 17
Reputation: 0

Message # 1 | 12:09 PM
i want text insert like

admin ( colour: Red)
Modaretor : - (colour:Green)

something like this

means when admin post any text in website all text look in red that's is

please Help me
Natashko
Posts: 3366
Reputation: 171

Message # 2 | 1:02 PM
ashu2394, it can be done by means of conditional operators. See more about them here: http://forum.ucoz.com/forum/37-471-1#36483
ashu2394
Posts: 17
Reputation: 0

Message # 3 | 3:30 PM
means,

when admin post all text ( only admin posted) in red color

and when modaretor post all text(only Modaretor post) in green colour

sorry for my bad inglish can i speak in hindi????
Natashko
Posts: 3366
Reputation: 171

Message # 4 | 3:51 PM
ashu2394,
Quote (Natashko)
it can be done by means of conditional operators. See more about them here: http://forum.ucoz.com/forum/37-471-1#36483
BraziluCoz
Posts: 84
Reputation: 1

Message # 5 | 2:30 AM
ashu2394,
Code
my group is:
     <? if($GROUP_ID$=0) ?>
          <span style="color: red;">Guests</span>
    <?endif?>   
     <? if($GROUP_ID$=1) ?>
          <span style="color: blue;">Users</span>
    <?endif?>
    <? if($GROUP_ID$=2) ?>
          <span style="color: gray;">Checked</span>
     <?endif?>
     <? if($GROUP_ID$=3) ?>
          <span style="color: yellow;">Moderators</span>
    <?endif?>

    <? if($GROUP_ID$=4) ?>
          <span style="color: purple;">Administrators</span>
    <?endif?>
    <? if($GROUP_ID$=251) ?>
          <span style="color: orange;">Friends</span>
    <?endif?>
    <? if($GROUP_ID$=255) ?>
          <span style="color: green;">Blocked</span>
    <?endif?>

Hello! I am Ennio Sousa
Post edited by BraziluCoz - Thursday, 2011-06-16, 2:44 AM
ashu2394
Posts: 17
Reputation: 0

Message # 6 | 6:38 AM
BraziluCoz, Thanx dude but where i put this code????

Added (2011-06-16, 0:38 Am)
---------------------------------------------
BraziluCoz, Thanx dude but where i put this code????

Added (2011-06-16, 0:38 Am)
---------------------------------------------
BraziluCoz, Thanx dude but where i put this code????

Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 7 | 6:52 AM
ashu2394, the code BraziluCoz, has provided will only colour the text of the group name. If you are wanting to colour the entire amount of text you will have to do that yourelf, we don't provide support with custom coding but you can probably edit BraziluCoz's supplied code to achieve the result.

And put this code wherever you wish for the group name's to appear, coloured.

Hope this helps, happy

Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Natashko
Posts: 3366
Reputation: 171

Message # 8 | 10:37 AM
ashu2394, if you have questions about the code of the condition, you need to ask them here: http://forum.ucoz.com/forum/37-471-1#36483 But Paradox, is correct, there is no way we will write it for you. Of course, you can request it here: http://forum.ucoz.com/forum/25-13186-1 But I can not guaranty that someone will help you.
  • Page 1 of 1
  • 1
Search: