TOPIC:

Arabic language not showing up 6 years 3 months ago #118705

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
Hi,

OMG, its working perfect... You are the best trust me when I'm Saying this...

Thanks a lot!!

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

Arabic language not showing up 6 years 3 months ago #118709

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1075
Hi,

could you share the solution with the community?

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

Arabic language not showing up 6 years 3 months ago #118740

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
if($filter != ''){
return $return;
} else {
$empty = array();
return $empty;
}
This part of code was to be added to - com_breezinforms.php since my data storage was breezing forms.

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

Arabic language not showing up 6 years 3 months ago #118741

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
Hi Chris,

Well the line of code did solve the problem of empty search
but now the problem is when i make a admin panel, i want all the records to show up for CRUD operations to be done by the administrator.

How can i resolve this case ??

Thanks

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

Arabic language not showing up 6 years 3 months ago #118773

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 629
Hello again,

to allow administrator an empty search please use this code instead:
$user1 =& JFactory::getUser();
foreach($user1->groups AS $group){
if($group == 8){
return $return;
} else {
if($filter != ''){
		return $return;
		} else {
		$empty = array();
		return $empty;
		}
}
	}

Please change group id 8 to your administrator's group id.



regards
Chris

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

Arabic language not showing up 6 years 3 months ago #118780

  • Topic Author
  • emrankhan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 25
  • Thanks: 1
To add permissions to other groups how do i modify this code ??

$user1 =& JFactory::getUser();
foreach($user1->groups AS $group){
if($group == 8){
return $return;
} else {
if($filter != ''){
return $return;
} else {
$empty = array();
return $empty;
}
}
}

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

Last edit: Post by emrankhan.
Moderators: ForumSupport
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!