This topic is locked

How to change wording in Search boxes

4/17/2009 7:39:19 PM
PHPRunner General questions
M
mlapl1 author

I would like to change the wording in the simple and advanced searches. For instance, I might want to changes "Equal or More than" to something else.
I may also want to remove some of the options completely.
Can anyone tell ne how to do that in a simple way?
Otherwise, where do I go to modify the code? [Seems to me the template needs to be modified]
Thanks for your help

Andrew

J
Jane 4/20/2009

Hi,
you can edit these words in the generated ..._search.php file.

T
tcunicorn7 4/20/2009

Hi,

you can edit these words in the generated ..._search.php file.


Where is this file stored?

Sergey Kornilov admin 4/20/2009

You can find all generated PHP files in the output directory.

M
mlapl1 author 4/20/2009

Thank you everyone.
This is a good solution. However, the problem for me seems to be that every time you build your site (i.e. click on the build button) you will lose the changes that you made - or have I misunderstood something?
So... if you don't want to keep modifying your files all of the time, you have to reserve making the changes until you believe that your product is in its final form - which may be never as websites etc are often in development even if they are actually production sites (that is the nature of software development).
So... these words which are appear after the build must come from somewhere and must therefore be stored somewhere. For instance, in other systems, they live in files in a languages directory. It's true that I have not spend much time looking, but where is the place where they are stored? Is that something which could be modified by users?
Thank you

Andrew

S
Stettin 4/20/2009

Thank you everyone.

This is a good solution. However, the problem for me seems to be that every time you build your site (i.e. click on the build button) you will lose the changes that you made - or have I misunderstood something?
So... if you don't want to keep modifying your files all of the time, you have to reserve making the changes until you believe that your product is in its final form - which may be never as websites etc are often in development even if they are actually production sites (that is the nature of software development).
So... these words which are appear after the build must come from somewhere and must therefore be stored somewhere. For instance, in other systems, they live in files in a languages directory. It's true that I have not spend much time looking, but where is the place where they are stored? Is that something which could be modified by users?
Thank you

Andrew


you can edit the "source" files if you want those changes to become part of all projects by default. I added some custom functions to commonfunctions.php in the \source\include folder (in PHPRunner Install directory, NOT the project directory). Now whenever I build my sites, the common functions are in there automatically. I would assume you could do that with the source for %installdir%\source\search.php.
There is also a %project directory%\source that is empty by default. Maybe you can put your modified search.php in there if you just want it changed for that particular project.