developer api

14 years 9 months ago #106183 by roughruffian
developer api was created by roughruffian
not sure where to post this but I'm trying to find developer API documentation, I have a few modules that I want to make compatible with CB but cant find any API docs where can I find these thanks.

Please Log in to join the conversation.

14 years 9 months ago #106195 by krileon
Replied by krileon on topic Re:developer api
There isn't any. I've wrote a very basic tutorials on getting started with the API though. See tutorials in my signature.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 9 months ago #106202 by roughruffian
Replied by roughruffian on topic Re:developer api
cool mate a lot of that is very useful, what im specifically looking for is how to check if a CB user is logged in, is the same as just checking a joomla user? and also how to pull a logged in users CB avatar, thanks for help.

Please Log in to join the conversation.

14 years 9 months ago #106286 by roughruffian
Replied by roughruffian on topic Re:developer api
been searching the forum for over 2 hours cant find an answer to something that seems so simple, after I have the relevent CB includes in my code how can I display a logged in users avatar? just the avatar picture nothing else... ive done this already with joomunity and jomsocial and its easy as pie!

Please Log in to join the conversation.

14 years 9 months ago #106374 by krileon
Replied by krileon on topic Re:developer api
I've added 2 new tutorials to my site that will help you significantly in doing as you desire. Instead of continuing to repeat my self on the boards about doing this I just turned it into a tutorial. B)


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 9 months ago #106785 by roughruffian
Replied by roughruffian on topic Re:developer api
Excellent thank you I can now get the avatar displayed in my module, the only problem I have is I want to control the size of the avatar that is displayed if I use:

$avatar =$cbUser->getField( 'avatar');
<?php echo $avatar; ?>

the output is:

<img src="file location.jpg" alt "username" title "username" class = "cbfullpic">

even is I use the feild type "list" the avatar is a predefined size I want to be able to define the size like:

Height="45" width="45"

but cant get it into the code because the field is hardcoded in the format above, is there any field types that control size apart from "profile" and "list" or how can I work the code to include the height and width values?

even better would be if there was a way to find the avatar file location so I could simply do:

img src=$avatarlocation height "45" etc

Post edited by: roughruffian, at: 2009/08/03 15:15

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds