I am fairly experienced with php and mysql. I am trying to add a search on the faqs module. So far have tried many options:
1. Creating new search file called search.php
(but can't incorporate with module and have to link to directory)
tried: modules.php?name=$module_name&file=search
2. Making a new "function" in faqs index.php called "search ($query)"
(won't search for new function) I even applied a "switch ($op) at the bottom.
tried: modules.php?name=$module_name&op=search (brings me to homepage)
Where is ($op) defined? I know it's used in encyclopedia search, but not defined in encyclopedia index.php.
How exactly do you create a "function" in a mod file?
So far i believe it has to do with this:
***around LINE 58
if (!isset($myfaq)) {
global $currentlang;
include("header.php");
OpenTable();
......
All my search code is correct because when i call search.php i can get results on a new page. but i want to stay with the modules for security
any help would be appreciated.
Thank you
Matt
sting Site Admin
Joined: Jul 24, 2003
Posts: 1986
Location: Apparently ALWAYS Online. . .
Posted:
Wed Aug 22, 2007 6:09 am
Check the index.php under the admin directory of the file you are working on - usually its either there or in one of the includes.
You should see a
Code:
switch($op)
statement somewhere...
-sting
_________________ Is it paranoia if they are really out to get you?
-------------------------------------------------------
sting usually hangs out at nukehaven.net
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum