Page 1 of 1

$SSc_lftop not applied to results Page

Posted: Tue Apr 07, 2009 8:29 am
by Bastian
Hi there

I run trough an upgrade of our scripts and encountered a very strange behaviour of the script.

I apply a customized header in the variable $SSc_lftop. in some profiles the header shows up without problems.

But at some points the header is replaced with the "standard" header. The strange about this is, that the "standard" header isn't in the search script (neither in the variable $SSc_lftop or the rest of the search-script). so i don't know where the header is taken from.

does anyone have a clue? i tested it with the 5.1.81 by modifying the $SSc_lftop and it behaves the same way.

I hope someone has help ...

Thanks in advance

Bastian

$SSc_lftop not applied to results Page

Posted: Tue Apr 07, 2009 9:48 am
by John
Is it reading the setting from the profile settings? That would be the case if the profiles were created before you changed the script default, and if you saved the settings. You may want to change the Top in the admin interface as well as the script.

$SSc_lftop not applied to results Page

Posted: Tue Apr 07, 2009 10:56 am
by Bastian
This is a possibility that the setting is read from the profile settings. where can i change this?

$SSc_lftop not applied to results Page

Posted: Tue Apr 07, 2009 11:55 am
by mark
In the init function of search $x is a list of items to read from the profile settings. Remove SSc_lftop from that list. And/or remove the handling of SSc_lftop from the procoption function.

$SSc_lftop not applied to results Page

Posted: Thu Apr 09, 2009 3:13 am
by Bastian
Thank you! It works now like expected.

Problably you can help me. I see the SSC_lftop but theres another case wich refers to the same var . whats SSc_tlftop standing for?

/*snip*/
<case SSc_lftop><$SSc_lftop=$String>
<case SSc_tlftop><$SSc_lftop=$String>

$SSc_lftop not applied to results Page

Posted: Thu Apr 09, 2009 10:13 am
by mark
The "t" version is the "test mode" setting. It's what gets set when you update search settings. When you apply search settings the "t" version gets copied to the regular version for live use.