1
FadiB
Search problem
  • 2008/9/27 13:25

  • FadiB

  • Just popping in

  • Posts: 31

  • Since: 2008/8/18


Hello everyone,

I made a module to creat blank pages for my website, but the problem is I really don't know how to call the search codes in my module. Any ideas how to code that?

For example all modules have 'has search' or something like that.

Thanks a lot,

Fadi

2
FadiB
Re: Search problem
  • 2008/9/28 15:58

  • FadiB

  • Just popping in

  • Posts: 31

  • Since: 2008/8/18


Any idea guys?

3
tank1955
Re: Search problem
  • 2008/9/28 16:18

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


There might be a wiki article at the XOOPS development site.

Basically you add a few lines in the module's xoops_version.php module that look like this:

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "video_search";


and then you must create the include file that defines what to search.

If you go to the module repository and download Video Tube v1.7 you can make a copy of the search.inc.php file found in the include directory and then use that to make your edits for your own module.

4
FadiB
Re: Search problem
  • 2008/9/28 19:22

  • FadiB

  • Just popping in

  • Posts: 31

  • Since: 2008/8/18


Thank you Tank. I tried to do that before, but still I couldn't get it right. I don't understand how to write codes with XOOPS yet, so it makes it even harder.

Also I have to change a lot of things, and maybe I have to add .sql file. Do you know an article showing how to make a module from scratch? with all details?


Best Regards,
Fadi

5
tank1955
Re: Search problem
  • 2008/9/28 20:20

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1



6
FadiB
Re: Search problem
  • 2008/9/28 20:28

  • FadiB

  • Just popping in

  • Posts: 31

  • Since: 2008/8/18


Thanks a lot mate.

Cheers

Login

Who's Online

67 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 67


more...

Donat-O-Meter

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

Latest GitHub Commits