Links profile
3 posters
Page 1 of 1
Links profile
Hai
I need the url from the view your profile link and the edit character sheet link.
I can't just put standard links in the href, because it's different for every member.
I need the url from the view your profile link and the edit character sheet link.
I can't just put standard links in the href, because it's different for every member.
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: Links profile
The Edit Profile link is like this:
I can't remember the exact link for view profile but you can do something along the lines of a userlink. to do that all you need to is put this where you need it.
{"USERLINK"}
without the quote marks, this will then display the username who is logged on but it is also a link to their view profile page...I will try and remember the exact link and post it when I do.
Just remembered the link and tested it on my site.
just remove the * before username.
- Code:
http://your sites url/profile?mode=editprofile
I can't remember the exact link for view profile but you can do something along the lines of a userlink. to do that all you need to is put this where you need it.
{"USERLINK"}
without the quote marks, this will then display the username who is logged on but it is also a link to their view profile page...I will try and remember the exact link and post it when I do.
Just remembered the link and tested it on my site.
- Code:
HTTP:/Your Sites URL//profile?mode=viewprofile&u={*USERNAME}
just remove the * before username.
Re: Links profile
Thanks for your help! I putted the link in the template, but when I click on it it says:
'sorry, but that user doesn't exists.'
This is the code I used:
Is there something I did wrong? Or don't the templates support the username variable?
'sorry, but that user doesn't exists.'
This is the code I used:
- Code:
<a href="/profile?mode=viewprofile&u=Using php in posts is called being a smart [Language]... Stop it">Profile</a>
Is there something I did wrong? Or don't the templates support the username variable?
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: Links profile
From what I can tell you've done the correct thing, but sadly I do not use templates so I can not tell you if it supports it or not. What you can do is use a widget and that should show the links fine and test it to see if it is just the templates!
Re: Links profile
Thanks for the link, but when I put this in the code:
it obviously doesn't work. xD
- Code:
<a href="/profile?mode=viewprofile&u=<span class="USERNAME"></span>">Profile</a>
it obviously doesn't work. xD
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: Links profile
Well it won't work in the templates even using that...
A span element can't be put inside the href attribute of a link...
The {USERLINK*} variable leads to the user profile... so just use that using the tutorial.
Follow the tutorial and put <span class="USERLINK"></span> in the template.
A span element can't be put inside the href attribute of a link...
The {USERLINK*} variable leads to the user profile... so just use that using the tutorial.
Follow the tutorial and put <span class="USERLINK"></span> in the template.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Links profile
It worked, thanks.
And can you also help me with a link for the character sheet?
And can you also help me with a link for the character sheet?
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Re: Links profile
That one would require a lot more work in order to retrieve the user ID. It would be much easier to display it in an announcement or widget or somewhere, than a HTML page.
Would that be okay?
Would that be okay?
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Links profile
I'm afraid not. You see, the link is placed in an navigation bar I made in the overall_header template. So I can't put it in a widget or something.
But.. if it's too much work to explain I think I can left it out.
But.. if it's too much work to explain I think I can left it out.
sun1994- Forumember
- Posts : 81
Reputation : 1
Language : dutch
Similar topics
» Profile Help Links
» Links In Profile
» Profile Help Links
» Profile links
» Profile links not lined up
» Links In Profile
» Profile Help Links
» Profile links
» Profile links not lined up
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum