WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Universal link code on Mon Sep 19, 2011 12:34 pm

blindbat1457


Registered Member
Registered Member
I know that is a confusing title but what I need is help with a few things. One being I want to create my own links like Sign out, Messages and Profile.

What I mean is if I put this in my template

Code:
<div id="sNavbar">
  <ul>
    <li><a href="http://forumthememedia.forumotion.com/search">Search</a></li>
    <li><a href="http://forumthememedia.forumotion.com/register">Register</a></li>
    <li><a href="#">No New Messages</a></li>
    <li><a href="#">Profile</a></li>
    <li><a href="#">Sign out</a></li>
  </ul>
</div>

Then what would be the dynamic link be for messages, profile and sign out? So that whenever a user is logged in they can click on profile and it takes them to their profile.

Another thing is I want the message link to show an image when there is a new message.. how do I do this?

2 Re: Universal link code on Mon Sep 19, 2011 2:31 pm

ankillien

avatar
Administrator
Administrator
Hi,

Link for profile is : /profile?mode=editprofile
Sign out link is : /login?logout
PM link is : /privmsg?folder=inbox

3 Re: Universal link code on Mon Sep 19, 2011 11:22 pm

blindbat1457


Registered Member
Registered Member
Thank you. I want the link to their profile not the UCP if possible.

4 Re: Universal link code on Tue Sep 20, 2011 1:30 am

Sanket

avatar
Administrator
Administrator
I don't think there is a link to the user profile. As its a unique number.

http://www.webartzforum.com

5 Re: Universal link code on Tue Sep 20, 2011 9:02 am

ankillien

avatar
Administrator
Administrator
May be this javascript can help..

Code:
$(function(){
var profilelink = '/profile?mode=editprofile';
$('.profile-link').load(profilelink+' .subtitle a');
$('.profile-link a').text('Profile');
});

Add it for all pages via admin panel.

Also, add class 'profile-link' to that <li> tag..

Code:
    <div id="sNavbar">
      <ul>
        <li><a href="http://forumthememedia.forumotion.com/search">Search</a></li>
        <li><a href="http://forumthememedia.forumotion.com/register">Register</a></li>
        <li><a href="#">No New Messages</a></li>
        <li class="profile=link"><a href="#">Profile</a></li>
        <li><a href="#">Sign out</a></li>
      </ul>
    </div>

Hope it helps Smile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum