Support Forum

How to move Search from header to footer in Default theme.

CF Conrad_Farlow
Conrad_Farlow
Member

First I added the Search Form – OBJECT DEFINITION to the top of spFoot.php and I also added this section of code above the stats section.

    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spPlainSection', 'search');
        #sp_QuickLinksForum('tagClass=spControl spSelect spRight', __sp('Select Forum'));
        #sp_QuickLinksTopic('tagClass=spControl spSelect spRight', __sp('New/Recently Updated Topics'));
        sp_SearchForm($searchForm);
    sp_SectionEnd('', 'search');

    sp_InsertBreak();

I left the search in head.php for now and neither searches appear to work. Is that because I can only have one instance either in the header or the footer. I wouldn’t mind the QuickLinksForum and QuickLinksTopic in both the header and the footer but I seemed to have formatting issues with the boxes when they were in spFoot.php.

I’m probably missing something very obvious to a php programmer, which of course I’m emphatically not.

Conrad

1 Answer

New Answer

MP Mr Papa
Mr Papa
Member

correct…  but you can pass in different tagID arguments in the search object so that you can have multiple…