Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-07-15, 02:15 PM   #1
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
I'm not 100% sure on what you're asking, but, it seems like you want to take that tgpgallery1 and track it through to resulting pages?

modifying your href= would probably take care of that:

Code:
<a href="page2.php?<?php echo $QUERY_STRING;?>">
I don't know if you could do it with auto_append_file, but, you might be able to use auto_prepend_file with an obstart, capture the displayed page, then rewrite the urls on the fly. I wouldn't want to do that on a high traffic site.

It would be trivial to do substitutions with mod_perl or mod_python. A filter mod would allow you to process and pass the query string automatically. Might require some fancy coding to correctly detect href's without parsing the page tree, or, if you coded your links with some simple identifier, i.e. every link was .php?"> you could search for that string occurrence and replace the .php?"> with .php?QUERY_STRING">
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2008-07-16, 05:14 PM   #2
RedCherry
Of all the things I've lost, I miss my mind the most.
 
RedCherry's Avatar
 
Join Date: Apr 2004
Location: Middle of the Desert, Pahrump, NV
Posts: 3,187
Send a message via ICQ to RedCherry
I actually ended up doing something like this, using a code snippet I found. It basically captures a variable I called p, and then passes it along in a query string like you said. Works great.


Quote:
Originally Posted by cd34 View Post
I'm not 100% sure on what you're asking, but, it seems like you want to take that tgpgallery1 and track it through to resulting pages?

modifying your href= would probably take care of that:

Code:
<a href="page2.php?<?php echo $QUERY_STRING;?>">
I don't know if you could do it with auto_append_file, but, you might be able to use auto_prepend_file with an obstart, capture the displayed page, then rewrite the urls on the fly. I wouldn't want to do that on a high traffic site.

It would be trivial to do substitutions with mod_perl or mod_python. A filter mod would allow you to process and pass the query string automatically. Might require some fancy coding to correctly detect href's without parsing the page tree, or, if you coded your links with some simple identifier, i.e. every link was .php?"> you could search for that string occurrence and replace the .php?"> with .php?QUERY_STRING">
RedCherry is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:13 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc