Quantcast
Channel: Topic Tag: mobile | WordPress.org
Viewing all articles
Browse latest Browse all 22090

qriouslad on "[Plugin: jonradio Multiple Themes] Auto append ?keyword=value in subsequent pages clicked"

$
0
0

Thanks for digging into this late into the night!

Here is the response from our lead developer, Nimish, with three test PHP pages containing information which might help.

This seems to be viable solution ...

I do not think the query parameter of previous page is available to next page (may be I have not understood his explanation fully). But, it's possible to get the query parameter of parent URL in iframe using HTTP_REFERER. But, this is available only for the first page. For subsequent page, HTTP_REFERER points to previous page in iframe itself.

http://theastrologer.com/test/wap/parent.php?mastertheme=2013
======
<iframe src="http://theastrologer.com/test/wap/child.php/?theme=2012"></iframe>
=======

http://theastrologer.com/test/wap/parent.php?mastertheme=2013 (as HTTP_REFERER) is available in child.php (used in iframe in parent.php)
But, it is not available in child2.php / child3.php - click on the link to see the list of values available for child2.php and child3.php

plugin author will require to store this information (mastertheme=2013) in session and shall use it in subsequent pages from session

I understand that cookie works and is enabled on most browser on mobile now.

In this case, when we add WordPress page (here child.php) in our main WAP page (here parent.php), we will add required query parameter (here mastertheme=2013) to let WordPress plugin know that we need to use mastertheme=2013 for all pages in current session

Do let me know if I missed anything or if there is any further query from plugin author

[redacted]


Viewing all articles
Browse latest Browse all 22090

Trending Articles