Solved: 4 Weeks, 6 Hours ago Usermap > Template section with IF statement
#1
Solved: 4 Weeks, 6 Hours ago
(Translated with Google-Tranlastor from German to english)

I have a template request for the usermap:

Is the template "Member"
Code:
https://URL/member.php?action=profile&uid=ABC
If a user's place of residence is clicked, the template usermap.php with:
Code:
https://URL/usermap.php?action=search&username=XYZ
called.

What can/could/must I include and how so that when calling:
Code:
https://URL/usermap.php?action=search&username=XYZ
can be defined in the usermap or usermap_form template as follows:
Code:
<if THIS_SCRIPT == 'usermap.php?action=search&username=??? then>
  Message-1
</if>
<if THIS_SCRIPT != 'usermap.php?action=search&username=??? then>
  Message-2
</if>

ABC = the corresponding User_ID
XYZ = the corresponding User-Name
??? = no matter what username is given

Maybe someone has/should have given me a solution like the above IF-Variable correctly.

Thanks in advance for any hints and tips.
Reply
#2
Solved: 4 Weeks, 6 Hours ago
<if THIS_SCRIPT == “usermap.php” && $mybb->get_input(‘action’) == “search” && $mybb->get_input(‘username’) == “???” then>message</if>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)