![]() |
GET variables in my template (or how to change oder status)
Hi there.
I am using an addon to sort profilefields on /memberlist.php. Addon: https://vborg.vbsupport.ru/showthrea...=124580&page=2 Unfortunately it does have only the ability to sort one way ? ASC or DESC. But I want it to change every click, like other fields (User, Last Post etc.). In my template I tried Code:
<if condition="$get['order'] == 'ASC'"> Does anybody have an idea how I can change ASC to DESC and reverse? Hope for some help. Thanks!! |
Do a google search on "get post request variables" and you'll see the correct syntax to use for them. In fact, here you go - PHP: Predefined Variables - Manual
|
It's a little bit mortifying. :o
I do know how to write the correct code but I thought PHP is not allowed in templates. I should have tested it :) Thanks anyway for your help, Lynne! |
php is not allowed in templates. But, a simple comparison condition is allowed in templates.
|
All times are GMT. The time now is 07:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|