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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started