CB Helloworld plugin

16 years 10 months ago #38060 by keyboardcowboy
Replied by keyboardcowboy on topic Re:CB Helloworld plugin
Nice, this will get me started of creating an tab
to display the ut stats on www.zstclan.org

now i need to read the 400 pages of the hph book :blink:

Please Log in to join the conversation.

16 years 9 months ago #38761 by ziad
Replied by ziad on topic Re:CB Helloworld plugin
Just created my first tab plug-in for CB using this tutorial as a base and everything went pretty smoothly.

Thanks for a good tutorial. My plugin is fairly trivial but the procedure is pretty straight forward. :woohoo:

Ziad

Please Log in to join the conversation.

16 years 3 months ago #51576 by mtk
Replied by mtk on topic Re:CB Helloworld plugin
Hi,
how about an explanation on how to write data into User Defined Fields, which are not necessarily controlled by user edits...?

(a general explanation on how to insert data with having to use SQL Queries)

Please Log in to join the conversation.

16 years 3 months ago #51584 by nant
Replied by nant on topic Re:CB Helloworld plugin
mtk wrote:

Hi,
how about an explanation on how to write data into User Defined Fields, which are not necessarily controlled by user edits...?

(a general explanation on how to insert data with having to use SQL Queries)


Agree - when i find time ...

in the meantime, you should study the cb gallery plugin.

Please Log in to join the conversation.

15 years 5 months ago #77611 by coolguru4ever
Replied by coolguru4ever on topic Plugin to work on registration page
Hello,

I am new to Community Builder. And I had gone through the Hello World plugin documentation and understood it.

My requirement is a little different than this. I need to build a plugin that posts the user information as an XML file to an external URL through Ajax.

The Ajax code is ready and working as expected.

The only problem that I am facing is, integrating the code with CB to create a plugin.

I need the code to work on the registration page and as soon as the user hits the submit button, the Ajax code should work, which will do the rest.

Here's what I have done till now:

$_PLUGINS->registerFunction( 'onBeforeUserRegistration', 'sendXML', 'sendXMLtab' );

class sendXMLtab extends cbTabHandler
{
function sendXMLtab() //Constuctor
{
$this->cbTabHandler();
}

function sendXML()
{
$return = NULL;

$params = $this->params; // get parameters (plugin)

$is_sendxml_plug_enabled = $params->get('sendXMLPlugEnabled', "1");

if ($is_sendxml_plug_enabled != "0")
{

$return = "<div align='center' id='studentInfo'>
<input type='text' id='studentName' name='studentName'><br/>
<input type='button' name='submit' value='Submit' onClick='javascript:requestStudentInfo();'>
</div>";
}
return $return;
}


I'll appreciate any help or advice from my fellow Joomlapolitans.

Regards,
Gurpreet

Regards,
Gurpreet Singh

Please Log in to join the conversation.

15 years 4 months ago #78564 by khan_ihsanullah
Replied by khan_ihsanullah on topic Re:CB Helloworld plugin
I cann't install hello world plugin. I have received a problem that
Error! Could not find a Joomla! XML setup file in the package.
Please help me.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.300 seconds