Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-11-18 19:50:15

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: adi_gps – Extract GET & POST variables

oke,

That was the problem. The right month=2005-04 and not 2004-05

Roelof

Offline

#14 2008-11-18 22:11:18

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,367
Website

Re: adi_gps – Extract GET & POST variables

roelof wrote:

I found a little problem.

I see MattD has nailed it. Thanks.

For debugging purposes, take the quiet="1" out to see what value is being extracted. Alternatively use <txp:variable name="month" /> somewhere to see the value that’s been copied over to the corresponding TXP variable.

BTW <txp:adi_gps quiet="1" /> will extract all GET variables from the query string in one go. You don’t have to extract them individually, unless you need to. And <txp:adi_gps list="1" /> is useful in this case to list them all.

Offline

#15 2009-03-17 08:32:53

ijarinz
New Member
Registered: 2009-03-10
Posts: 1

Re: adi_gps – Extract GET & POST variables

hi.

it doesnt work with my 4.0.8 . is it so or am just an idiot?

Offline

#16 2009-03-17 08:59:15

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,367
Website

Re: adi_gps – Extract GET & POST variables

ijarinz wrote:

it doesnt work with my 4.0.8 . is it so or am just an idiot?

It works with my 4.0.8, which bit isn’t working for you?

Offline

#17 2009-08-15 18:13:24

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: adi_gps – Extract GET & POST variables

Do you have an uncompressed version Adi please? I can’t install the current download.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#18 2009-08-19 11:39:53

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,367
Website

Re: adi_gps – Extract GET & POST variables

thebombsite wrote:

Do you have an uncompressed version Adi please? I can’t install the current download.

I sent you an email but I guess it didn’t get through. Have a go with this one.

Offline

#19 2009-08-19 16:08:53

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: adi_gps – Extract GET & POST variables

Ahh. Thanks for that Adi. :)

I did get your email but when I spotted it, for whatever reason, I decided that it was just a form mail from the forum telling me someone had added a post to this thread so I dismissed it, then came here only to find that I was wrong. Doh! ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#20 2010-02-14 23:51:44

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: adi_gps – Extract GET & POST variables

Hi!
Steff pointed me to this plugin for something I am building.
I am creating a Realestate website, with a complex search.
I need to do the following and I am not sure if its posible using adi_gps (dont have any sql or php knowhow)
This is what I am doing: (all fields are custom_fields)

A Search form with 2 Select boxes, the first SELECT is “Type” (apartment, house….) the second SELECT is “Option” (Rent, Sale…).
After the user selects the type and the option and hit “Search”, they will see a Map (I will use Tooltip JS to make the “Regions” of the map show the number of articles found for each of the “Regions”.

- So in this first step, what I need is some way to search for those fields and organize the results in different lists depending on the custom_fields “Region”.

The user can then click on a “Region” on the map and see the list of articles only from that Region he selected.

There is more…
After selecting the Region, if only 5 or less results are found, it will show those results, and on another list it will show similar results to the one selected by the user.
If he searches for A+B in REGION 1 and gets 3 results.
It will show those 3 results in one list, and the results from A+B in REGION 2 and A+B in REGION 3 in another list.

-I guess this second part has nothing to do with this plugin at all…

Any help or clues on how to acomplish something like this?
thanks!

Last edited by mlarino (2010-02-14 23:53:59)

Offline

#21 2010-02-15 23:44:07

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,367
Website

Re: adi_gps – Extract GET & POST variables

Hi mlarino,

adi_gps would be able to pull out the POST variables for you, so when the user clicks on the search button you can process the “Type” and “Option” vaues.

You can test it by using something like:

<txp:adi_gps post="1" list="1" />

and see what you get after clicking your search button.

WRT advising you on coding the website functionality, sorry but I don’t have the spare time for that. If you’re stuck, try the How do I? forum.

Regards,

Adi

Offline

#22 2010-02-23 23:55:37

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: adi_gps – Extract GET & POST variables

Hi!
Hope you can help me out on this one!

I created a form, with TYPE and OPTION. (to make a search of articles)
then the results are counted and I get a list of the articles sorted by regions.

each number on the list is a link to display the articles.

MY problem is that the $POST from the form is lost in the 3rd page loaded, and I wanted to know if adi_gps can help me save that $POST information so I can use it in the 3rd page.

I am trying not to use $Session

www.mlarino.com/asesoria/inmobiliaria

Thanks

Last edited by mlarino (2010-02-24 00:12:58)

Offline

#23 2010-02-24 02:36:00

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,367
Website

Re: adi_gps – Extract GET & POST variables

mlarino wrote:

MY problem is that the $POST from the form is lost in the 3rd page loaded, and I wanted to know if adi_gps can help me save that $POST information so I can use it in the 3rd page.

adi_gps automatically saves the GET/POST variables as TXP variables. So a POST variable “ABC” should be available as a TXP variable, which you can access:

<txp:variable name="ABC" />

To see what TXP variables have been set:

<txp:php>print_r($GLOBALS['variable']);</txp:php>

Offline

#24 2011-03-03 21:41:55

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

Re: adi_gps – Extract GET & POST variables

Hi! I’m trying to get adi_gps to display an email address passed via URL variable on the page— like this:

?mail=john@my.tld

That works fine. Using <txp:variable name="mail"/> displays the address correctly.

However, when the email address includes a plus sign (which is a common method used my gmail users to filter messages), a blank space is substituted. Like this:

?mail=john+2011-03-03_16-40-47@my.tld

XHTML output of variable tag:

john 2011-03-03_16-40-47@my.tld

Why is the plus sign ignored? Is there any way to get it to pass the plus sign through?

Offline

Board footer

Powered by FluxBB