PDA

View Full Version : Avatar link in User CP


StarBuG
01-11-2002, 06:10 PM
Hi!

I want (like here) the avatar link in my User CP

I added:
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]action=editavatar">Avatar</a></b></smallfont></td>

in template: usercpnav

but this doesn´t work!

What do I have forget??

And when I continue the bgcolor="$cpnav[3]"> nr [3] then the last one [8] has not the right bgcolore anymore!

Greetings

StarBuG

StarBuG
01-13-2002, 11:29 PM
Bump

StarBuG
01-14-2002, 07:16 PM
Common Folks!

Plz help me!

That can´t be so hard to code!

Greetings

StarbuG

Konqueror
01-14-2002, 09:03 PM
If you really added
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]action=editavatar">Avatar</a></b></smallfont></td>
then I think you're missing an &... It should be
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editavatar">Avatar</a></b></smallfont></td>

Also the bgcolor doesn't work correctly here... When you click on "Avatar", "Options" is marked instead. Make sure to change all the numbers after the place you insert the new option to get the correct results.

StarBuG
01-14-2002, 09:40 PM
OK! The Link works now! Argg I was stubid! hehe

But the color is still wrong and you are right options is marked!

Here is the whole template (in german sorry!)


<table cellpadding="0" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" {tableinnerextra} width="100%">
<tr align="center" valign="bottom">
<td bgcolor="$cpnav[1]"><smallfont><b><a href="usercp.php?s=$session[sessionhash]"><nobr>Mein vB Home</nobr></a></b></smallfont></td>
<td bgcolor="$cpnav[2]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editprofile">Profil bearbeiten</a></b></smallfont></td>
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editoptions">Einstellungen bearbeiten</a></b></smallfont></td>
<td bgcolor="$cpnav[4]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editavatar">Avatar</a></b></smallfont></td>
<td bgcolor="$cpnav[5]"><smallfont><b><a href="member.php?s=$session[sessionhash]&action=editpassword">Kennwort ?ndern</a></b></smallfont></td>
<td bgcolor="$cpnav[6]"><smallfont><b><a href="member2.php?s=$session[sessionhash]&action=viewlist&userlist=buddy">Buddy-Liste bearbeiten</b></smallfont></td>
<td bgcolor="$cpnav[7]"><smallfont><b><a href="member2.php?s=$session[sessionhash]&action=viewlist&userlist=ignore">Ignorier-Liste bearbeiten</a></b></smallfont></td>
<td bgcolor="$cpnav[8]"><smallfont><b><a href="private.php?s=$session[sessionhash]">Private Nachrichten</a></b></smallfont></td>
</tr>
</table>
</td></tr></table>


Any suggestions how I get the right option marked and the color adjusted??

I added a screenshot!

Greetings

StarBuG

Konqueror
01-15-2002, 06:40 AM
You also have to change the settings for $cpnav in the php files. I have attached a file with all the occourences of $cpnav to make your life easier. :)

StarBuG
01-15-2002, 10:41 AM
OK the colour problem is gone but it´s still options selected if I click on Avatar!

I have added in all files:

$cpnav[8]="{secondaltcolor}";

Any suggestions?

Greetings

StarBuG

StarBuG
01-17-2002, 04:34 PM
Bump!

Greetings

StarBuG

Shenlong
01-17-2002, 06:32 PM
<td bgcolor="$cpnav[3]"><smallfont><b><a href="member.php?s=$session[sessionhash]action=editavatar">Avatar</a></b></smallfont></td>

I also noticed you didnt add a & after the sessionhash, im not very sure but dont u have to add it?

StarBuG
01-17-2002, 11:02 PM
The Link is not the Problem anymore! But if I select AVATAR then Options is marked!!

Greetings

StarBuG

StarBuG
01-18-2002, 04:22 PM
Bump

StarBuG

Shenlong
01-18-2002, 08:44 PM
eh?

:confused:

StarBuG
01-19-2002, 12:54 PM
Originally posted by Konqueror
If you really added
... When you click on "Avatar", "Options" is marked instead.

That?s right! How can I fix this??

Greetings

StarBuG

StarBuG
01-21-2002, 10:14 AM
Comeon help me!

It works! Look here in vBulletin.com!!

That can´t be so hard!!

PLZ

StarBuG