Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How to move Search from header to footer in Default theme.
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 7, 2012 - 9:42 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 7, 2012 - 10:19 pm

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

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626