|
|
Re:CB Helloworld Plugin (part 2)
|
|
Date: 2006/11/15 12:43
|
By: kmchen
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 12 |   | |
|
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 ?
|
|
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 |   | |
|
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 ?
|
|
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 |   | |
|
|
No more response since 3 days. What's going on ? No more discussion ?
|
|
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 |   | |
|
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
|
|
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 |   | |
|
This is a great set of articles. Thank you.
/Lasse
|
|
The administrator has disabled public write access. |
|
|