The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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'"> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=DESC&sort=mitgliednummer&pp=$perpage$usergrouplink">Mitglied-Nr</a> $sortarrow[mitgliednummer]</td> <else /> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=ASC&sort=mitgliednummer&pp=$perpage$usergrouplink">Mitglied-Nr</a> $sortarrow[mitgliednummer]</td> </if> Does anybody have an idea how I can change ASC to DESC and reverse? Hope for some help. Thanks!! |
#2
|
||||
|
||||
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
|
#3
|
|||
|
|||
It's a little bit mortifying.
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! |
#4
|
||||
|
||||
php is not allowed in templates. But, a simple comparison condition is allowed in templates.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|