1
SimonTheMime
Very simple PHP help needed

Alright, I think AvatarMaker is a nifty feature - but I'd rather not have it in System Menu, so I changed it to 0 so it wouldn't show there - and I want it to show in edituser, in the avatar section.

The current directory for my avatarmaker is /modules/avatarmaker.

Resized Image

The circle is where I'd prefer. The following quote is a line from edituser.php where I believe is where the linked "List" is you see in that screenshot.

Quote:
$avatar_tray->addElement(new XoopsFormLabel('', " "._LIST.""));


Anyway, what I'm trying to do is to put a link where the red circle is, reading "Make Your Own Avatar" which links to /moduls/avatarmaker, but with an unlinked [dash] between 'List' and 'Make Your Own Avatar', like so:

List - Make Your Own Avatar

Should be a simple add of PHP code, right?


Can anybody help?
RF Online

2
SimonTheMime
Re: Very simple PHP help needed

It seems like really simple stuff.. I just don't know anybody who knows any PHP. Any help would be greatly appreciated :(
RF Online

3
Chris03
Re: Very simple PHP help needed
  • 2005/9/9 6:11

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Try this

Replace lines

302 - 308

Quote:

if (preg_match( "/http/", $oldavatar )){
$avatar_tray->addElement(new XoopsFormLabel('', " "._LIST.""));
$avatar_tray->addElement(new XoopsFormLabel('', " | "._LIST.""));
$avatar_tray->addElement(new XoopsFormLabel('', " | KickassAMD

4
SimonTheMime
Re: Very simple PHP help needed

zomg thanks so much Chris!
RF Online

5
Chris03
Re: Very simple PHP help needed
  • 2005/9/9 17:21

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


No problem... Work out for ya ?
KickassAMD

Login

Who's Online

197 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits