Quickblox User field and location - quickblox

I am doing an android app project on quickblox. I want to add more fields in the users panel. how can I do that. Also how to integrate location in my app so that I can get the location of the person who logs in

You have 2 options now:
You can have location filed with CustomObjects module
https://quickblox.com/developers/SimpleSample-customObjects-android#Add_Custom_Data_structure_to_your_application
and then to create a special class like UserParams and have a single record per user with all additional data.
Use user's customData field https://quickblox.com/developers/SimpleSample-users-android#Custom_data
but you can not filter users by customData field

Related

React Native Expo autofill field with current system user's email

I want to autofill a TextInput with the user's current Email from the Android/iOS system. However, at that point the user is not yet authenticated, because that's actually part of the registration (where users can also use a different Email).
How do I get this email?
I checked the permissions page but there is none of them about the user credentials like email.
I also checked expo Contacts but it seems to be related only to the contact lists and not about the current system user.
Is this even possible with RN+expo?

How to enable module in another module in Prestashop 1.7?

I try to display some additional information on the top of website, if is logged user not only an ordinary customer, but also a seller (we use the module "marketplace" by Webkul).
The module "ps_customersignin" shows only a name of logged user and the button for log out on the website. But I want to display more information (link to a seller's special menu, if is the user also a seller, if not, just display user's name and the log out button).
vs.
I tried add this code in ps_customersigning.tpl, but without a result:
{if $is_seller == 1}Display additional info + name and log out button{else}Display only user's name and the log out button
{/if}
Do you have a tip how call information from the module "marketplace" to the module "ps_customersigning" for check, if the user is also the seller and than display the additional information?
You can have an instance of the marketplace module inside the ps_customersignin module by using
$marketplace = Module::getInstanceByName('marketplace');
inside ps_customersignin main module PHP code.
Then you can access the required $marketplace method / properties, assign $is_seller variable with $smarty->assign, and display your content inside the ps_customersigning.tpl

Create new group in Odoo

I want to create a new group for my custom module Store through the Settings > Users > Groups in odoo.
I am creating the group so that I can assign users to that Store module.
When i click on create, i need to write an Application name. I tried to write the name of my custom module which is Store. But, i am prompted to create one.
Should i be creating it? Or, did i get anything wrong?
In Groups, "Application" is category, if you will add it then it will createnew application under "Application Accesses" in users.
You will have all your groups under that category will display as selection in "Users" menu.

Joomla, assing menu-item to particular user

I am designing a photographers website.
What i need to do is allow every logged in user to view -ONLY- his portfolio and no other.
Since i haven't found any extension that does that in style, i decided to use a general portfolio extension, and create a portfolio for each user.
Then i need to find a way so that when a user logs in, with his username/password, a menu-item will appear that will hold -ONLY- his portfolio.
So my question is, how can i do that???
Assign a single menuitem to a single user.
Thank you.
The only idea I have in mind is to use user groups here. Create the user, create the user group, assign the user to the group and assign that group to the object you want to protect.
If it's just about showing images I have another idea.
I build that user group specific handling into Event Gallery, a Joomla! gallery component: https://extensions.joomla.org/extensions/extension/photos-a-images/galleries/event-gallery/
Doing this make creating different menu items unnecessary. Once the user logs in he can see his content. In addition the content is protected. A simple menu item might not do that trick.

Broadleaf commerce display some product to logged in users only

I am developing an e-commerce application using broad-leaf commerce.
My requirement is I have to add an product from login panel and display that product to only logged in users. Here few product products will be visible to all users (guest too) and few will be visible to only logged in users.
is there any way to do this?
Thanx soulfly1983 fou your try,but I found another alternative to do this without any customization. here is the full procedure..
Add a new category from admin panel.
Add a new page from admin panel (under content tab) and note the URL should be the same of category and page.
3 In the page click on rule tab.
4 Check the yes button in "Restrict to certain customers?"
Click +rule button and the select "match all" and select customer registered is equal to false
So this page will be visible to only guest users.
In the HTML body section of the rule (in general tab) write a message "you need to log in to view this stuff"
When user will log in successfully the user will not be able to the page , because we applied a rule that only logged out users can see the page so this time user will see the category and products added to that category.
am I doing right? any regarding this suggestion?
You can either extend the Product entity and add a field that will indicate whether that product will be visible to all users, or alternatively you could simply add an attribute for each product via the admin interface. Either way you will need to modify the UI logic so that it will take this additional field (or attribute) into consideration.