Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 1 Minute ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Module display based on CB or JOMSOCIAL field ?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Module display based on CB or JOMSOCIAL field ?
#7701
Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
Is it possible to have a parameter for a CB or JOMSOCIAL custom field?
I am thinking of a parameter where i can specify a fieldname or ID. This field is checked for the current logged in user.
If there is a specific value or at least a checked box then the module is displayed...

Does it make sense?

Is there any other extension which can check for specific user and a custom field?

TIA!
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7707
Re: Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
AMM comes with the possibility to assign by php evaluation and url. So anything that is not already in the assignments list, can be handled by php evaluation and/or url matching.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7710
Re: Module display based on CB or JOMSOCIAL field 1 Year, 11 Months ago  
That sounds really promising, though my PHP knowledge is very limited
I am still investigating the really cool AMM...
I wonder how i get the CB user and field info. Maybe your module is the solution.

BTW,
I took a look on CustoMenu, cause i am after a restricted menu display. Is it possible or does it make sense to have a PHP condition in that module, too?
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7712
Re: Module display based on CB or JOMSOCIAL field 1 Year, 11 Months ago  
I am not sure what you are trying to do. Can you tell me the end result you are after?
A different menu module per user?
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7715
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
Lets say...
there is a hidden checkbox field, which is an indicator for a special status of the user. This checkbox field is un-/checked only by the administrator.

If the checkbox is YES, show a special menu for the the user.
Its one special menu for all users.
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7716
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
Is this the right syntax?

$user =& JFactory::getUser();
return ($user->cb_showextramenu==1);
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7718
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
That would be the right syntax. If you can get the cb info you need like that ($user->cb_showextramenu), I don't know.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7724
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
mmh, i don´t know either...
i found a code snippet where this is the syntax, but it seems to work directly in the comprofiler.html file!
I guess, i will need a different approach or more commands to fetch this information in the module area??!?
I have no idea
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7727
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
With php you should be able to get any info you need. Don't know how CB stores the variables you need. You could ask them.
At last resort you could do a database search with the userid to get the data you need. But there is probably some CB function you can use.

Best to ask the guys from CB.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7728
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
Thanks for your thoughts... i will try their forum.

Since you are a real joomla programmer (instead of mine
What are your experiences with parameters from components? Are they always stored in a global variable? I mean, there must be a difference if i want to access those values from a foreign module that is not CB-related, right!?
rexkramer
Posts: 26
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7729
Re:Module display based on CB or JOMSOCIAL field ? 1 Year, 11 Months ago  
As far as I know, CB has plenty of modules too. There must be some modules that do user related stuff. So these modules will have to access the CB user info.
Might be an idea to look in the code of these modules to see how they get that info.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
Open Source Training | Online Joomla! Training and Support
MaxCDN | Content Delivery Network | Accelerate your site to the max