Skip to Content Skip to Menu

Advanced search on Mambo 4.6.1 / The new CB 1.1

  • mic.lang
  • mic.lang
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
16 years 9 months ago #42929 by mic.lang
Hi

I hope somebody can help me out! I'm building a website where users can make a account, sign in, and search for other users.
Now i see there is a new version of CB (really great! :side: )
And everything is working very good but now i want to make more fields so users can fill in, age, gender, zip and other new fields.
This is no problem for CB, but when public users want to search the userlist there is only 1 field to search on :( .
And it would be great if users can search on all the new fields i have add.

Now i have browsed hours trough mambo forums and website and the only thing i can find is a Advanced Search plugin for CB.
www.joomlacollection.com/index.php?option=com_bookmarks&task=detail&id=796

But this will only add standard fields and gives errors when searching:
Warning: Invalid argument supplied for foreach() in /customers/domain.com/domain.com/httpd.www/components/com_cb_search/cb_search.html.php on line 454

I get no results when searching and public users can't see the profiles of other users any more because they get the messages
they have to login.

I have seen mambo website using CB where you can search on many fields, someone suggestion what I can do?

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 8177
  • Thanks: 527
  • Karma: 352
16 years 9 months ago #43331 by beat
99.9% probably due to the fact that mambo 4.6 returns NULL instead of empty array() on database list results...

just add an if before the foreach to solve problem on the line with error.

e.g. (just example to adapt):

[code:1]foreach( $results as $result ) {
[/code:1]

to:

[code:1]if ( $result ) foreach ( $results as $result ) {[/code:1]

Please report back if it helped and what you had to change exactly :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • mic.lang
  • mic.lang
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
16 years 9 months ago #43530 by mic.lang
Hi

Thanks for you answer! :laugh: Now the error messages is gone.
But when i do a search i get a message that there are results

SEARCH RESULTS
Vathorstmakelaar Nieuwbouw huis kopen | Nieuwbouw huis verkopen has: 2 registered users
Records found with your search criteria: : 1

But we don't see the users, please see the url:
www.vathorstmakelaar.com/index.php?option=com_cb_search&Itemid=

2. do you know how i can add new fields?
3. for the cb website if you can help me out i will really think a bout subscribing, but what i am really missing on the cb website is how to use more search fields on cb to search users.

Thanks in advance

Regards
Michel

Please Log in or Create an account to join the conversation.

  • mic.lang
  • mic.lang
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #44596 by mic.lang
Do you have any suggestions on my questions?

Cheers

Please Log in or Create an account to join the conversation.

  • mic.lang
  • mic.lang
  • OFFLINE
  • Posts: 13
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #44628 by mic.lang
I FINNALY FOUD THE PROBLEM!! So just want to tell you all, I’m using CB 1.1 with advanced search module.
I have made some new profile fields, and i want all website visitors to search on that fields.
But all my new fields are not visible in the advance search module.

Solution:
If you 're new fields will not show up, go to:
Components, Community Builder, Tools
-There use the link "Check Community builder database"

And all fields are visible!!

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 8177
  • Thanks: 527
  • Karma: 352
16 years 8 months ago #44814 by beat
Thanks for reporting back solutions B)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn