SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot ComposerRyan's Avatar
    Join Date
    Oct 2003
    Location
    USA
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question! Should be easy to answer for you but not for me. :o)

    Hello everybody,

    I am using Mambo CMS and I'm trying to edit the font color of the whoseonline.php module file but I cannot. I cannot set the text color individually in the css since whoseonline does not have a specific class assigned to it - it is using the td class.

    When I try to edit the file, it always pops up a php parse error and I only what to change the text color.

    I've tried to change this part of the code:

    Code:
    $content .= "<ul>\n";
    		$content .= "<li><strong>" . $row->username . "</strong></li>\n";
    		$content .= "</ul>\n";
    to this:

    Code:
    $content .= "<ul>\n";
    		$content .= "<li><strong><font color=#FFFFFF>" . $row->username . "</font></strong></li>\n";
    		$content .= "</ul>\n";
    but I always end up with an error.

    I thought this would be very simple to edit, but obviously I am doing something wrong since I do not have experience in PHP. Can someone help me with this - I would be grateful!

    Thanks,
    Ryan

  2. #2
    Free your mind Toly's Avatar
    Join Date
    Sep 2001
    Location
    Panama
    Posts
    2,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What kind of error do you get? I don't see anything wrong with those lines.
    Community Guidelines | Community FAQ

    "He that is kind is free, though he is a slave;
    he that is evil is a slave, though he be a king." - St. Augustine

  3. #3
    SitePoint Zealot devscripts's Avatar
    Join Date
    Sep 2004
    Location
    ur monitor
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try inside the <head><style type="text/css">li { color: red; } </style> </head>
    "None of you [truly] believes until he wishes for his brother what he wishes for himself." By The one and Only Prophet Mohammed (Peace and blessings be upon him)

  4. #4
    Custom User Text tonyskyday's Avatar
    Join Date
    Feb 2004
    Location
    Virginia
    Posts
    240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's what you need to do.

    Use Mambo's built-in ability to assign a suffix to the css of a module in order to give the whose online module a unique class name. Then, in your css, set the link colors for that class, but leave everything else the same as the standard module css.

    -Tony

  5. #5
    SitePoint Zealot ComposerRyan's Avatar
    Join Date
    Oct 2003
    Location
    USA
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responses everyone.

    Use Mambo's built-in ability to assign a suffix to the css of a module in order to give the whose online module a unique class name. Then, in your css, set the link colors for that class, but leave everything else the same as the standard module css.
    Thanks Tony for telling me about that. I had no idea Mambo offered such a feature, so I really appreciate you steering me in that direction. I did what you said and it worked out perfectly. No wonder why Mambo is so popular - it is the best CMS ever and, what amazes me the most is that it is free.

    Thanks again,
    Ryan


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •