4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2018, 11:30:03 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  search_keyword doesn't pass on to next page on search
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: search_keyword doesn't pass on to next page on search  (Read 994 times)
kitty999
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 0


View Profile WWW
« on: July 26, 2017, 07:44:34 PM »

I put {search_keywords} in my search.html page and it works fine. When someone searches for something it displays the keyword.

My problem is this: when someone clicks the next page in search the {search_keyword} must get reset because it shows nothing. It only shows the keyword on that initial first search page.

Anyone have any ideas how to fix this?

Logged

kitty999
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 0


View Profile WWW
« Reply #1 on: August 05, 2017, 06:26:16 AM »

In case anyone is interested I think I figured it out!


In global.php find this:

$self_url .= "show_result=1";

And change it to this:

$self_url .= "show_result=1&search_fields=".$search_fields."&search_keywords=".$search_keywords;


------------------------

In search.php find this:

$link_arg = $site_sess->url(ROOT_PATH."search.php?show_result=1");

And change it to this:

$link_arg = $site_sess->url(ROOT_PATH."search.php?show_result=1&search_fields=".$search_fields."&search_keywords=".$search_keywords);


-------------------

Now you can place {search_keywords} as a title on your search page and it will work even when you go to the next page or if you use the sort mod to sort the images.

I'm using 4images 1.7 and so far it seems to work without a hitch
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.072 seconds with 19 queries.