MickMan
(Michele Mangili)
1 March 2021 12:08
1
Hi evreybody,
i’m using sitelok with @joeworkman sitelock stack and it’s working great.
But now i’m stuck with a (simple?) request by customer.
I need to pass the username in a xml query and thought that a foundation button with https://mysite.com?user=$slusername&othervariable=SOMETHING&action=1 would do the job, but it doesn’t work.
I’m able to show the username with php echo as per sitelok manual, but that’s all.
I’m not a php expert at all, so please be kind. ^_^’
Thanks in advance.
dripple
(Heiko / paperclip studios)
1 March 2021 14:56
2
If I remember correctly, you have to use a different syntax for query parameters:
https://mysite.com?user=!!!username!!!&othervariable=SOMETHING&action=1
1 Like
MickMan
(Michele Mangili)
1 March 2021 15:06
3
Thanks for your interest!
That’s doesn’t work, sadly.
The Sitelok manual report username macro as $slusername and $slusername_html to display the data.
MickMan
(Michele Mangili)
1 March 2021 15:14
4
Ok i found the answer…
user=<?php echo $slusername_html; ?>
I had already tried it, but sintax error or cache maybe occurred… >_<
dripple
(Heiko / paperclip studios)
1 March 2021 15:19
5
Yeah, just remembered that the !!! is used for mail templates, you need to call the macro inside a php call.
<?=$slusername;?>
(I tend to forget the ;
at the end )
system
(system)
Closed
1 April 2021 01:19
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.