Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: NIAB - lokakuu 08, 2013, 08:23:17 IP

Otsikko: User Menu
Kirjoitti: NIAB - lokakuu 08, 2013, 08:23:17 IP
Hey Guys

On the profile page, how do I edit the user menu?
The one that drops down if you have it set to above
Otsikko: Re: User Menu
Kirjoitti: Arantor - lokakuu 08, 2013, 08:25:53 IP
By editing its definition in Profile.php.
Otsikko: Re: User Menu
Kirjoitti: NIAB - lokakuu 08, 2013, 08:27:45 IP
Thanks Dude
Otsikko: Re: User Menu
Kirjoitti: NIAB - lokakuu 08, 2013, 08:48:44 IP
Hey, what I'm trying to edit is this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F5kZdx2c.png&hash=e87b7c93d7e770a8637c1764aa69f5b3f39ad9a0)

Thinks it sthe side menu. Where would I find its base code. I want to theme it, and adjust it a bit.
Otsikko: Re: User Menu
Kirjoitti: Arantor - lokakuu 08, 2013, 08:50:49 IP
It's in Profile.php like I said. It's the same code in Profile.php that defines one menu structure regardless of whether you're displaying it on the side or as a dropdown menu.
Otsikko: Re: User Menu
Kirjoitti: NanoSector - lokakuu 09, 2013, 02:11:55 AP
The theme code is in index.template.php I believe.
Otsikko: Re: User Menu
Kirjoitti: Antechinus - lokakuu 09, 2013, 02:35:28 AP
Nope, not for that menu. It'll be GenericMenu.template.php for the markup, and like Arantor said will be Profile.php for the array.