Community Support Forums — WordPress® ( Users Helping Users ) — 2011-02-16T04:28:36-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2277 2011-02-16T04:28:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2277&p=6777#p6777 <![CDATA[Re: Logged In User php code? Not working]]>
This works : -
<a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">My Account</a>

Basically whoever logs in this link will take them to their own client area page.

But when i want to use this in the sidebar it doesn't work.

I was wondering if there is another way of writing this so it will work in the sidebar text widget?

Statistics: Posted by pbul2004 — February 16th, 2011, 4:28 am


]]>
2011-02-15T20:50:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2277&p=6764#p6764 <![CDATA[Re: Logged In User php code? Not working]]>
Code:
<ul>
<li>
   <h3 class="sidebartitle" >Heading Above Link</h3>
   <ul class="list-rec">
   <li>
   <a  href="http://yourdomain.com/wordpress/?page_id=xxx">Name of Link</a>
   </li>
   </ul>
</li>
</ul>


Your class names might be different - check what class names the existing links in the sidebar.php have.

Cheers

Kym

Statistics: Posted by stowe39 — February 15th, 2011, 8:50 pm


]]>
2011-02-14T08:07:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2277&p=6703#p6703 <![CDATA[Logged In User php code? Not working]]>
In the php files and posts/pages i am using this: -

<a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">My Account</a>

However i want to use this in the sidebar but it keeps going else where to random pages?

If i take a copy of the link address it looks like: -
www. zerogravitysafety.co.uk/%3C?php%20echo%20S2MEMBER_LOGIN_WELCOME_PAGE_URL;%20?%3E

Dont know why it is going to this link above. ^

Is there another way of writing this so it will work in the sidebar? Cheers.

Statistics: Posted by pbul2004 — February 14th, 2011, 8:07 am


]]>