vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Avatar link in User CP (https://vborg.vbsupport.ru/showthread.php?t=34028)

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

1 Attachment(s)
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!)

PHP Code:

<table cellpadding="0" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextrawidth="{contenttablewidth}" align="center"><tr><td>
<
table cellpadding="4" cellspacing="1" border="0" {tableinnerextrawidth="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

1 Attachment(s)
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

Quote:

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


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01107 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete