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.058 seconds

Let me first state that this is an amazing and fascinating product exactly what I was looking for. In just a few hours (listening to the very well made and clearly understandable videos learning doing) I completed and installed my first component. I am now in the second refining phase. I will make a recommenation in JED. Thanks for the effort in creating such a great product. Incidentally some of the best Joomla extension I use are of French origin !
Giori (Forum)

Get Started