Support Forum

forum search box needs in widget area

VT vikash tiwary
vikash tiwary
Member

i want to show the forum search box outside the forum area. may be in widget area or any template page of wordpress.

please help me,

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I really don’t know if that will work to be honest – I have never tried it. I have serious doubts. But you can try it out of course. You will find the call in the spHead template of the theme you are using – it is easy enough to find – note the form definition block at the top of that template which would be needed as well.

VT vikash tiwary
vikash tiwary
Member

thanks, for giving me the reference of spHead template.

i found the function sp_SearchForm()  here for search box and its working.

one another thing while using the sp_ProfileLinkTag() for account link.

it is showing the link only for admin,

and for guest visitors it showing nothing.

is there  any argument to show like “welcome Guest” ?

or to display here login button or link ?

and second another thing is there any template function to show account info.

YS Yellow Swordfish
Yellow Swordfish
Member

The search form works? I am a little surprised.

There will never be a profile link for a guest – they have no profile – there is no user data. Profiels can only exist for registered users.

If you want a login button somewhere I would suggest you use the WP login/registration widget which is probably as good as any.

VT vikash tiwary
vikash tiwary
Member

yes, the sp_SearchForm() is working .but only in forum page sidebar.not in other pages.

means. my forum page id =216 , and the form working in this page.

but when i am switching to another pages the widget gives the fatal error

can u tell me why is this?

MP Mr Papa
Mr Papa
Member

probably because our search was only designed to work on a forum page…  without knowing the error, cant say for sure…

not sure it makes much sense for a forum search to be outside the forum…  it only searches the forum…  no one has ever asked for such functionality either…

we hope to overall the search functionality one day to include wp posts and pages…  when we do that, we can perhaps look at a tag for something like this…