Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


? MosIf / Mosvar access to CB fields?
Date: 2008/10/10 16:13 By: gswdev Status: CB Doc subscriber  
Karma: 2  
Fresh Joomlapolitan

Posts: 6
graphgraph
I just discovered the power of the Joomla mambot extensions MosIf and MosVar to control selective viewing of content.

How can I get access to CB fields in user profiles to use them with these mambots?

Examples:

This works fine --
My registration date is {mosval $my->registerDate}.

This does not work --
My birthday is {mosval $my->cb_birthday}.

When I do the print_r($my,1) command, the CB variables do not show up as available.

Is there any way to get access to them?

Even if I can get access to them so they work with Mosval, I don't think that MosIf will allow comparing to variables rather than literals.

So does anybody know how to use the CB variable values in an IF-THEN type of statement that would allow controlling who can see certain content, similar to how MosIf works?

I'm using CB 1.0 and would be open to upgrading to a new version if it would solve my problem.

Thanks!
Tom

Post edited by: gswdev, at: 2008/10/10 17:11
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login