Community Support Forums — WordPress® ( Users Helping Users ) — 2010-05-19T04:27:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=93 2010-05-19T04:27:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=93&p=451#p451 <![CDATA[Re: Passing User ID to Script]]>
Code:
<?php echo S2MEMBER_CURRENT_USER_ID; ?>

Statistics: Posted by Jason Caldwell — May 19th, 2010, 4:27 am


]]>
2010-05-17T18:18:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=93&p=384#p384 <![CDATA[Re: Passing User ID to Script]]>
That is what I had originally tried as well but unfortunately this is what it outputs:

&subid=<%3Fphp+echo+S2MEMBER_CURRENT_USER_ID%3B+%3F>

It's like it's not running the actual php or something and if I do it outside of the quotes it send the IP address as the &subid. Still stumped. TTYL

Terry Ladouceur

Statistics: Posted by Guest — May 17th, 2010, 6:18 pm


]]>
2010-05-17T18:12:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=93&p=383#p383 <![CDATA[Re: Passing User ID to Script]]>
I think your syntax should be
Code:
<script type="text/javascript" src="http://xxxxxxxx?pub=xxxxx&subid=<?php echo S2MEMBER_CURRENT_USER_ID; ?>"></script>


hope this helps

DrMac

Statistics: Posted by Guest — May 17th, 2010, 6:12 pm


]]>
2010-05-17T15:53:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=93&p=381#p381 <![CDATA[Passing User ID to Script]]>
<script type="text/javascript" src="http://xxxxxxxx?pub=xxxxx&subid="> & <?php echo S2MEMBER_CURRENT_USER_ID; ?> & <"></script>

I know nothing of javascript so I have no idea how exactly to do this. But it should be basic for someone out there who may know? I need to pass the &subid variable with the S2_MEMBER_CURRENT_USER_ID I am sure it's my sytax but I don't know the proper way. Any assistance would be greatly appreciated. Thanks

Terry Ladouceur

Statistics: Posted by Guest — May 17th, 2010, 3:53 pm


]]>