1
BigJim
Search.php can i make this change?
  • 2009/5/22 9:24

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi

For one of my modules I have altered the search.inc.php file to make the search of that module more accurate.

However, it means that when the site's main search.php is used it cannot search that module.

I would like to have both searches working (the site.com/search.php and the site.com/modules/module/search.php).

But it seems I need 2 different search.inc.php files to allow this. But as this is specified in xoops_version.php it doesn't seem possible to have 2 different search.inc files.

Can anyone help me on how I can do this?

thanks a lot!

2
wcrwcr
Re: Search.php can i make this change?
  • 2009/5/22 14:19

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

What is the module you´re trying to search in?

3
trabis
Re: Search.php can i make this change?
  • 2009/5/23 14:00

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Your module has it's own search.php that uses search.inc.php correct?

Your search.inc has a function like function yourmodule_search {
correct?

You could make new function like function yourmodule_search2 {
And then
Then make sure your module/search.php uses yourmodule_search2


Login

Who's Online

207 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 207


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits