$SSc_lftop not applied to results Page

Post Reply
Bastian
Posts: 10
Joined: Wed Nov 21, 2007 10:16 am

$SSc_lftop not applied to results Page

Post 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
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

$SSc_lftop not applied to results Page

Post 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.
John Turnbull
Thunderstone Software
Bastian
Posts: 10
Joined: Wed Nov 21, 2007 10:16 am

$SSc_lftop not applied to results Page

Post by Bastian »

This is a possibility that the setting is read from the profile settings. where can i change this?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

$SSc_lftop not applied to results Page

Post 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.
Bastian
Posts: 10
Joined: Wed Nov 21, 2007 10:16 am

$SSc_lftop not applied to results Page

Post 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>
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

$SSc_lftop not applied to results Page

Post 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.
Post Reply