Author Topic: How to assign a specific class to that line of code???  (Read 3857 times)

0 Members and 1 Guest are viewing this topic.

Offline gustav

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
How to assign a specific class to that line of code???
« on: January 27, 2007, 12:34:32 PM »
How can I assign a specific class to the image (avatar) in that line? (don't know the syntax)    ...like "class="pic"
Code: [Select]
$stats_topvalue .= "<td valign=\"middle\" width=\"70%\"><table><tr><td>".get_user_avatar(STATS_USERAVATARS_PATH,$row['user_avatar'])."</td><td>";

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How to assign a specific class to that line of code???
« Reply #1 on: January 27, 2007, 02:06:14 PM »
Hi,

you must add the class in the php file.
Link to this Mod?


cu
Kurt

Offline gustav

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How to assign a specific class to that line of code???
« Reply #2 on: January 27, 2007, 02:38:00 PM »
Yeah, I know.... the line of code is from the php file... I just need to know the syntax.....
Code: [Select]
<td>".get_user_avatar(STATS_USERAVATARS_PATH,$row['user_avatar'])."</td><I know I have to put it behind the
Code: [Select]
$row['user_avatar']." but just need to know the syntax..... like class=/"pic/" (what is not right in this case)....

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How to assign a specific class to that line of code???
« Reply #3 on: January 27, 2007, 03:02:09 PM »
yes,

and
Code: [Select]
$stats_topvalue .=
is only a part from this action in the script.
And the other parts :?:

Where is the part to generate the image :?:


Kurt

Offline gustav

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
Re: How to assign a specific class to that line of code???
« Reply #4 on: January 27, 2007, 06:01:21 PM »
Ah, yes... now I got it! ;)
(Sorry that it took so long! ;)
I had to put the class into this line.....
Code: [Select]
return "<img src=\"".$userpic_img."?t=".time()."\" alt=\"\" border=\"0\" class=\"pic\"/>&nbsp; ";Now it works! Thanx for pointing me into the right direction....