Community Support Forums — WordPress® ( Users Helping Users ) — 2010-08-17T15:03:58-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=578 2010-08-17T15:03:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=578&p=2390#p2390 <![CDATA[Re: Shortcodes]]>
There are two ways that I'm aware of.

1. You could hard-code the link. It's always:
Code:
http://path/to/wordpress/?s2member_profile=1

2. You could use this plugin, to create a Shortcode out of that snippet:
http://wordpress.org/extend/plugins/shortcode-exec-php/

Statistics: Posted by Jason Caldwell — August 17th, 2010, 3:03 pm


]]>
2010-08-17T09:12:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=578&p=2344#p2344 <![CDATA[Shortcodes]]>
How can I get the following into a shortcode?
Code:
<a href="#" onclick="if(!window.open('<?php echo S2MEMBER_CURRENT_USER_PROFILE_MODIFICATION_PAGE_URL; ?>',
'_popup', 'height=350,width=400,left=100,screenX=100,top=100,screenY=100,
location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1'))
alert('Please disable popup blockers and try again!');
return false;">Modify Profile</a>

Statistics: Posted by eshanfelt — August 17th, 2010, 9:12 am


]]>