Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2012-06-07 01:35:36
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
zero wrote:
… if @adi_gps could store a variable semi-permanently it would help a lot.
Hi Peter. jakob & MattD are right in what they suggest (thanks guys). Either use a cookie (which may now have a pain-in-the-arse knock-on effect with the new EU legislation) or store the pertinent information of where to go back to in the URL. You can make up the URL & vars manually or perhaps adi_link may be of assistance.
It would be technically feasible to store data from URLs but it would have to be made session specific & then I’d effectively be reinventing cookies – and being British, I’d call them biscuits …
Offline
Re: adi_gps – Extract GET & POST variables
Thanks, Adi, Jakob and Matt. I struggled but got there in the end. Cheers!
Dozy P My attempt at music
Offline
#33 2012-08-02 21:40:25
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
Guys, guys – this is the adi_gps forum thread!
I’m glad you sorted out the initial problem (which I wasn’t able to get to in time) but please discuss non-adi_gps issues elsewhere! Like here, if it’s about etc_query.
Offline
#34 2012-08-02 21:41:22
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
Thanks Uli, I see you’ve had the same thought.
Offline
#35 2012-08-02 21:44:13
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: adi_gps – Extract GET & POST variables
gomedia:
Sorry for the thread which started in one direction but then moved in another. I should have added that without your plugin getting to the solution would not have been possible. I will definitely be highlighting and featuring it in the “How To Filter Articles USing Drop Downs and Multi-Selects” Now all I need to do is write it. :)
progre55
Offline
Re: adi_gps – Extract GET & POST variables
Sorry for the unintentional flood, Adi and all, and thanks to Uli for keeping the forum clean. Everything between the problem statement and the final 4-5 posts can be safely trashed, I think.
Adi, can adi_gps import GET/POST arrays?
Offline
#37 2012-08-05 23:25:03
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
etc wrote:
Adi, can
adi_gpsimport GET/POST arrays?
That’s a good question. The answer is probably yes & no. I’m sure it’ll try! adi_gps replicates individual URL vars into TXP variables, which by their nature are single (non-array) variables. I’ve never tried it & the end result might be horrible!
Not sure how the mapping would work anyway: URL var[0], var[1], var[2] -> TXP var_0, var_1, var_2 ?
Offline
Re: adi_gps – Extract GET & POST variables
gomedia wrote: Not sure how the mapping would work anyway: URL var[0], var[1], var[2] -> TXP var_0, var_1, var_2 ?
In the above-mentioned discussion we needed to map var to var[0]%var[1]%.... So, you could introduce some glue attribute to implode arrays with.
Offline
#39 2012-08-10 23:30:06
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
etc wrote:
In the above-mentioned discussion we needed to map
vartovar[0]%var[1]%.... So, you could introduce some glue attribute to implode arrays with.
I’ll look into it.
Offline
Re: adi_gps – Extract GET & POST variables
Hope someone could help me out, am in a desperate situation … have a look at my snapshot:

I am passing in an article’s title from a page to this form, but this HTML character always appears before the last word. If I manually change the variable, or use some other value when passing it to the form, it works absolutely fine. My charset is UTF-8, doctype is HTML.
Offline
#41 2012-08-22 16:03:31
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: adi_gps – Extract GET & POST variables
If you’re using the txp:title tag: add no_widow="0" to it, else think about changing the widows pref.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: adi_gps – Extract GET & POST variables
It worked beautifully … thanks so much Uli! Learnt something new on article titles as well. Cheers!
Offline
#43 2015-06-15 04:44:04
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
Version 0.3 available for download:
- copes with forms which supply data as arrays (checkboxes)
- new attribute ‘glue’
- TXP 4.6 tag registration
Offline
#44 2016-06-21 22:56:50
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_gps – Extract GET & POST variables
Version 0.4 available:
- updated for TXP 4.6 trace
Offline
Re: adi_gps – Extract GET & POST variables
Hello,
I have articles that have an “Enquire” about. When user hits that I need to populate a zem_contact form field with the title of that article. How can I go about getting it done with this plugin?
Appreciate any help or link to similar solution.
Offline