How to use new fields in PHP code?

15 years 1 week ago #95777 by jonas_34
How to use new fields in PHP code? was created by jonas_34
Hey

I have a bit of php (with jumi) where i get some of my user's data to perform some magic.

I just do something like

[code:1]<?php
global my;
echo ($my->name);
?>[/code:1]

It works for the basic fields (name, email, id...) but I can't manage to get the value of the fields I added with the CB component ("cb_newsomething")

Please, someone, help!

Please Log in to join the conversation.

15 years 1 week ago #95778 by Rapunzl
Replied by Rapunzl on topic Re:How to use new fields in PHP code?
Please post more information, like exact Joomla, CB and PHP versions.

Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in to join the conversation.

15 years 1 week ago #95802 by jonas_34
Replied by jonas_34 on topic Re:How to use new fields in PHP code?
Joomla 1.5.8
PHP4
CB 1.1.0

Please Log in to join the conversation.

15 years 1 week ago #95806 by Rapunzl
Replied by Rapunzl on topic Re:How to use new fields in PHP code?
Recommended:
Upgrade Joomla to 1.5.10 for several security fixes.
Upgrade PHP to 5, as 4 is obsolete and doesn't provide security fixes anymore.
Upgrade CB to 1.2 stable (after getting PHP 5, which is required) where all known bugs of previous versions are fixed and multiple new features are introduced.

As far as inserting code into PHP, what is the end goal? The reason I ask is that the feature may already exist.

Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in to join the conversation.

15 years 1 week ago #95816 by jonas_34
Replied by jonas_34 on topic Re:How to use new fields in PHP code?

As far as inserting code into PHP, what is the end goal? The reason I ask is that the feature may already exist.


I need to use info from the user profile as variables in my code (I construct XML files with fields such as <name>...)

Please Log in to join the conversation.

15 years 1 week ago #95819 by Rapunzl
Replied by Rapunzl on topic Re:How to use new fields in PHP code?
Okay, studying the existing team-released plugins should help you. Also posts using the same CB version you intend to continue with would also assist, but it sounds like you are savvy with PHP code, which is what CB uses.
:)

Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.255 seconds

Facebook Twitter LinkedIn