Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Search in few fields dont work - error with colon 06 Apr 2013 13:29 #7026

  • Creb
  • Creb's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
Hi, I prepare filter and add few field to search (screen)
[img size=21KB]pradzieje.pl/screen.png[/img]

in sandbox this page don work (white page). On localhost I have error:
Parse error: syntax error, unexpected ',' in /administrator/components/com_workpath/models/userpath.php on line 216

Line 216 - first line after comment:
//WHERE - SEARCH : search_name,_login,_email : search on user_id > Name + user_id > Username + user_id > Email
		$search_name,_login,_email = $this->getState('search.name,_login,_email');
		$this->addSearch('name,_login,_email', '_user_id_.name', 'like');
		$this->addSearch('name,_login,_email', '_user_id_.username', 'like');
		$this->addSearch('name,_login,_email', '_user_id_.email', 'like');
		if (($search_name,_login,_email != '') && ($search_name,_login,_email_val = $this->buildSearch('name,_login,_email', $search_name,_login,_email)))
			$this->addWhere($search_name,_login,_email_val);

Please help to fix this error

I greet
Creb

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

Re: Search in few fields dont work - error with colon 06 Apr 2013 14:20 #7027

  • Creb
  • Creb's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
If I in Instance name of search field write var names, script generate error, If leave field "Instance name" empty - works OK.

Maybe someone helped
I greet
Creb

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

  • Page:
  • 1
Time to create page: 0.070 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started