Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
forum search box needs in widget area
Avatar
vikash tiwary
Member
Free Members
sp_UserOfflineSmall Offline
May 4, 2012 - 1:10 am

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,

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 4, 2012 - 3:39 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
vikash tiwary
Member
Free Members
sp_UserOfflineSmall Offline
May 4, 2012 - 7:12 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 4, 2012 - 7:37 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
vikash tiwary
Member
Free Members
sp_UserOfflineSmall Offline
May 6, 2012 - 9:00 am

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 6, 2012 - 9:14 am

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

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: 621
Members: 17368
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79627