Author Topic: Look for {user_name_link} in table  (Read 9216 times)

0 Members and 1 Guest are viewing this topic.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Look for {user_name_link} in table
« on: October 22, 2005, 09:50:09 AM »
Hi everybody

I have in the file style.css following definition:

.row1 {
  background-color: #c0c0c0;
  color: #000000;}

a:link {color: #EEEEEE;}
a:Visited {color: #EEEEEE;}
a:Hover {color: #FFE2A8;font-weight: bold;}
a:Acitv {color: #EEEEEE;}


In the File details.html I have following code:
<td width="130" align="left" valign="top" class="row1"><b> {user_name_link}</b></span></td>

How can I define the look (color, font, aso.) for the link {user_name_link}, when it musst be different from the general "link-defintion" in the css-file?

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Look for {user_name_link} in table
« Reply #1 on: October 30, 2005, 11:05:45 AM »
ok, I found out, where the definition is made.

function.php
Code: [Select]
$user_name_link = "<a href=\"".$site_sess->url ($user_profile_link."\">".$user_name."</a>";
In this code, I can implement a "class".

But I need two different syles for $user_name_link. How can I do that?

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Look for {user_name_link} in table
« Reply #2 on: October 30, 2005, 11:44:53 AM »
What do you mean with to diffrent styles?

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Look for {user_name_link} in table
« Reply #3 on: October 30, 2005, 11:47:02 AM »
user_name_link is used on different sites.
On one site I'd like the color font e.g. black, on an other site I'd like the color font red.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Look for {user_name_link} in table
« Reply #4 on: October 30, 2005, 11:53:22 AM »
okay.
On what pages do you want diffrent colors?

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Look for {user_name_link} in table
« Reply #5 on: October 30, 2005, 12:42:06 PM »
one is "details.html"

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Look for {user_name_link} in table
« Reply #6 on: October 30, 2005, 03:12:03 PM »
search:
$user_name_link = "<a href=\"".$site_sess->url ($user_profile_link."\">".$user_name."</a>";

add below:
$user_name_link_new = "<a href=\"".$site_sess->url ($user_profile_link."\" class=\"CLASSNAME\">".$user_name."</a>";

search:
$user_name_link = $user_name;

add below:
$user_name_link_new = $user_name;

search:
 "user_name_link" => $user_name_link,

add below:
"user_name_link_new" => $user_name_link_new,

and use {user_name_link_new} in the detail.html

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Look for {user_name_link} in table
« Reply #7 on: October 30, 2005, 08:57:22 PM »
Thank you Acidgod!

Good service as usual!  :D
« Last Edit: June 06, 2006, 10:37:23 PM by TIMT »