31
krayc
Re: I STILL need help with search funtion for guestbook...
  • 2004/4/19 12:51

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


I checked the wiki, it's empty when I go there?

krayc



32
krayc
I need help with search funtion for guestbook...
  • 2004/4/19 12:33

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


I borrowed a search funtion from 'news' I think it was, to myGuestbook searchable. I have two issues with it, beside trying to figure out what to display in the 'link', In general it doesn't seem to find the search word(s). I've turned on the php Debug, and after fixing a php script error message, it seems to work (ie when searching the function is called) yet it never produces results.
(yes I've added it to the xoops_version file)

below is the function:

function mission_search($queryarray, $andor, $limit, $offset, $userid){
global $xoopsDB;
$sql = "SELECT id,name,title,message, time FROM ".$xoopsDB->prefix("myguestbook")."";

if ( is_array($queryarray) && $count = count($queryarray) ) {
$sql .= " AND ((name LIKE '%$queryarray[0]%' OR title LIKE '%$queryarray[0]%' OR message LIKE '%$queryarray[0]%')";
for($i=1;$i<$count;$i++){
$sql .= " $andor ";
$sql .= "(name LIKE '%$queryarray[$i]%' OR title LIKE '%$queryarray[$i]%' OR message LIKE '%$queryarray[$i]%')";
}
$sql .= ") ";
}
$sql .= "ORDER BY id DESC";
$result = $xoopsDB->query($sql,$limit,$offset);
$ret = array();
$i = 0;
while($myrow = $xoopsDB->fetchArray($result)){
// $ret[$i]['image'] = "images/forum.gif";
$ret[$i]['link'] = "index.php?start=0";
$ret[$i]['title'] = $myrow['title'];
$ret[$i]['time'] = $myrow['time'];
$i++;
}
return $ret;
}
?>


thanks for help in advance, krayc



33
krayc
Re: Contact us plus
  • 2004/3/26 15:09

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Quote:

rabideau wrote:
Are you looking Liaise?? I use that module. You can see an example at:http://eirenicon.org/modules/liaise/


rabideau, are you using 2.05 or XOOPS 2.06, for some reason it shows up in 05 but not 06, any ideas why?

krayc



34
krayc
Re: How to get content from other modules? ("hooks")
  • 2004/3/26 13:23

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Not that I know much about XOOPs programming etc, but I think if you haven't seen this threadcloning modules then it might be of interest.

Although it started as how do i clone a module, it's turning into much more. I invite you to connect with Phatjew, because he is working on cloning and much more.

krayc



35
krayc
Re: XOOPS Dev Team: Would it be hard to propagate module name in all reference to the module?
  • 2004/3/26 13:18

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Quote:
phatjew wrote: I have this grand vision of being able to use this module for all kinds of different content on the same site. I'll hopefully be releasing it soon (within a month?), and you'll be able to see what I mean.


You go! Phatjew, obviously you have some XOOPs skills, that I have yet to acquire, but when I started this thread, that is what I had in mind.

I'd happy to test anything you have, and/or start documenting what you and others are learning from this thread.

krayc



36
krayc
myDownloads? is there a similiar module with a 'browse for file' upload option?
  • 2004/3/24 15:36

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


in my version of MyDownloads a user has to know the exact path (URL) of the file they want to upload.

is there another module that would have a 'browse for file' to help the user out?

or is there a current version of 'uploader' which I've seen floating about, but it seem the only references i can find to it, are about a year ago, which in XOOPs time is a few versions back.

krayc



37
krayc
Re: Jobs Module - Reward
  • 2004/3/18 11:48

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


builderb, did you get your R&R?

krayc



38
krayc
Re: Jobs Module - Reward
  • 2004/3/17 20:57

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


I would guess it is a module based on builderb's self-authored module called: xdirectory.

krayc



39
krayc
Re: Formulaire
  • 2004/3/17 16:59

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Quote:

dreamgear wrote:
Thanks. The module is great.


Dreamgear, I concur the module is great. I also had the same problem, I believe it's because I didn't understand how to use the menu functionality. But like, so I simply created a custom block to hold the references to my form(s).

After I get familiar with programming in XOOPs, my plan is to use this module as a front end for creating custom data entry forms (ie, the data entered will have the option of creating a table based on the form elements)

krayc



40
krayc
Re: xoopspoll clone?
  • 2004/3/17 16:07

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Don't know but there is a thread that might interest you on some issues about cloning modules.

thread is here




TopTop
« 1 2 3 (4) 5 6 7 ... 10 »



Login

Who's Online

142 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 142


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