Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How to recover user profile variables?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to recover user profile variables?
#55901
How to recover user profile variables? 8 Years, 7 Months ago Karma: 0
I have enabled some optional profile fields for the registered users of my website (using the User-Profile plugin), Joomla return these variable
with:$profile->profile['city'], $profile->profile['country'], etc
How I can recover these variables in Ari smart data table?
Regards
Roberto
The administrator has disabled public write access.
 
#55904
Re:How to recover user profile variables? 8 Years, 7 Months ago Karma: 748
Hello,

If you want to new predefined variables which can be used in SQL query, see "prepareQuery" method in
modules/mod_aridatatables/includes/kernel/DataTables/Models/class.DataTablesDataSqlModel.php file.

Regards,
ARI Soft
Last Edit: 2015/11/06 19:09 By admin.
The administrator has disabled public write access.
 
#56225
Re:How to recover user profile variables? 8 Years, 6 Months ago Karma: 0
Hi, can you provide a SQL example?
The administrator has disabled public write access.
 
#56226
Re:How to recover user profile variables? 8 Years, 6 Months ago Karma: 748
Hello,

The extension supports ability to use the following predefined variables for currently logged user:

{$UserId} - contains ID of currently logged user.
{$UserName} - name of currently logged user.
{$UserLogin} - login of currently logged user.
{$UserEmail} - email of currently logged user.

The variables can be used in the following way:

Code:


SELECT
 *
FROM
 #__users
WHERE
 id = {$UserId}



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1