1
kerkyra
XoopsTree usage
  • 2008/3/18 15:21

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hallo there, i'm trying to make a xoopstree for a part of a module i'm developing. What i wanna accomplish is to select some users from the XOOPS db and show them in a drop down list. The catch is that i have also another db which some of the users are stored as friends (for example).

The question:

How can i create the drop down list for the XOOPS users db (with xoopstree) ommiting the users that are already added in the other db??

The code for creating the xoopstree is the following:

Quote:
$mytree = new XoopsTree($xoopsDB->prefix("users"),"uid","name");


Is there a way to exclude the results that have a uid= "to the uid of the user from the 2nd db"?

Thanks
whttp://www.guidemap.gr - Beta is out...

2
kerkyra
Re: XoopsTree usage
  • 2008/3/19 13:16

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


bump!
whttp://www.guidemap.gr - Beta is out...

3
pacho
Re: XoopsTree usage
  • 2008/3/19 21:21

  • pacho

  • Quite a regular

  • Posts: 235

  • Since: 2005/6/7 2


Hello kerkyra. I am not an expert using class but I think you can extend xoopstree class and customize the result. You can define a customized class extending xoopstree and filter the results or just create a function to do it.

4
kerkyra
Re: XoopsTree usage
  • 2008/3/20 9:28

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hi pacho, thanks for your reply mate, i made a check instead of what i'm explaining above, so if someone selects a user already in the 2nd db it gives an error msg and redirects him back to the select page! Not the optimal solution but it will do the job for now! Thanks again for your suggestion. :)
whttp://www.guidemap.gr - Beta is out...

Login

Who's Online

330 user(s) are online (277 user(s) are browsing Support Forums)


Members: 0


Guests: 330


more...

Donat-O-Meter

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

Latest GitHub Commits