Profile modification Help

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
djrikyx
Registered User
Posts: 17
Joined: Tue Dec 16, 2008 8:49 pm

Profile modification Help

Post by djrikyx »

Hi to everyone.
I'm changing the template of user profiles.
I have edited the "User Control Panel" link to the real profile page, not options.

I need a <!-- IF ..... --> Value for template, same at <!-- IF_USER_LOGGED_IN --> but that determines if I'm watching my profile (true), or I am watching the profile of another user(false)!

I need for:
1.enter a text at the top that changes. if i'm watching my profile I read "My Profile" if i 'm watching the profile of "User1" read "The profile of User1"

2. insert a button "Add Friend" only if i 'm watching the profile of other users.

3. Insert Link to ucp.php page for options only if i'm watching my profile

4. and others

Please help
Sorry for my bad english, I'm Italian

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51998
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Profile modification Help

Post by Brf »

djrikyx wrote: 2. insert a button "Add Friend" only if i 'm watching the profile of other users.

3. Insert Link to ucp.php page for options only if i'm watching my profile
2.There is already an "Add friend" link on the profile page of other users.
3. There is a "User Control Panel" link in the header of every page.

User avatar
djrikyx
Registered User
Posts: 17
Joined: Tue Dec 16, 2008 8:49 pm

Re: Profile modification Help

Post by djrikyx »

Brf wrote: 2.There is already an "Add friend" link on the profile page of other users.
3. There is a "User Control Panel" link in the header of every page.
Yes i know!!

But i want this..

For example, Avatar image..

Code: Select all

<!-- IF TEST -->
<a href="http://www.site.com/forum/ucp.php?i=profile&mode=avatar">{AVATAR_IMG}</a>
<!-- ELSE -->
{AVATAR_IMG}
<!-- ENDIF -->
I see the link to edit my avatar, only if i'm watching my profile.. if user1 see my profile, dont see link...

i want only one page, that display all: real profile, and links to ucp.php?mode=xxxx

You know Netlog? (Manage link at the top of all Blocks) it's the same thing i want.. if i see my profile, i see links to modify my options , else, same page, but without links.
Sorry for my bad english, I'm Italian

User avatar
djrikyx
Registered User
Posts: 17
Joined: Tue Dec 16, 2008 8:49 pm

Re: Profile modification Help

Post by djrikyx »

Solved
Sorry for my bad english, I'm Italian

Locked

Return to “[3.0.x] MOD Writers Discussion”