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

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 Next > End >>
Re:CB Helloworld Plugin (part 2)
Date: 2006/11/15 12:43 By: kmchen Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
going further, I see every thing is handeled in Javascript. I found nearly what I need:

$mosConfig_live_site/index.php?option=com_comprofiler&task=userProfile&Itemid=29& tab=getprofilegallerytab

Could you quickly explain what are those parameters:

task=userProfile
This permits access to the plugin. Right ? How ?

Itemid=29
?

tab=getprofilegallerytab
?
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/16 10:57 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 5981
graph
looks like you are getting closer ...

This same issue caused me much effort to understand how/what JoomlaJoe (aka Mambojoe) did to allow user input/forms in the cb profilebook.

The idea is that the form actually calls the current URL. So your plugin should be able to assess if it has been called from the form or from some other CB action.
This is done by observing the POST parameters.

Hopefully, this will get you going again.

courage!
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/16 12:53 By: kmchen Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
Now I found the way to receive Tab forms through function saveEditTab($tab, $user, $ui, &$postdata)

To be clear let's say I have a tab with 2 fields declared by the plugin in xml file. One text that I fill through getEditTab and a yes/no radio button that the user can set to accept the text I submitted.
I receive the correct setted form in $postdata but when saveEditTab returns they are set to the original values that are tooken from database at getDisplayTab call. Same with $user whitch contains same fields.
More, if I directly set the fields in the database through saveEditTab I see them changed in that database with phpmyadmin but when I let the function continue and return they are resetted again by CB.

Am I miss using those functions ?
Should I try onBeforeUserUpdate event or something else ?
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/20 09:42 By: kmchen Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
No more response since 3 days. What's going on ? No more discussion ?
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/11/20 09:59 By: bjraines Status: User  
Karma: 3  
Expert Joomlapolitan

Posts: 155
graphgraph
This is on an entirely different subject but still involves the tutorial. I am starting from scratch. I am looking at the Hello Plugin 2 and other plugins. I have two questions

1) how come in the hello plugin the global $my is used but in articles plugin it is not?

2) what is the $my variable state anyway.

3) I gutted the Hello Plugin 2 and added a simple database query to spit out a row. there were no php errors but my Hello Plugin tab disappeared. I am not sure why. Example
i kept this
Code:

 class gethelloworldTab extends cbTabHandler {     /**      * Construnctor      */     function gethelloworldTab() {         $this->cbTabHandler();     }} // end or getDisplayTab function // end of gethelloworldTab class ?>



and put a simple querty to spit out one row from joomla table. I lost my tab name so I can't tell if it worked.

4) Just while I was working, I noticed that the articles plugin has some paramter features (i think) yet there are no parameters in the tab or plugin admin.

Thanks. Just trying to understand. And I am documenting everything so that other dummies like me can learn.
Joomla Community Builder Paginated Article Plugin

Chemistry Homework Help
Click here to see the profile of this user The administrator has disabled public write access.

Re:CB Helloworld Plugin (part 2)
Date: 2006/12/08 18:26 By: lassej Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
This is a great set of articles. Thank you.

/Lasse
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 Next > End >>

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