Cb and primezilla

17 years 1 month ago #34369 by matrix845
Cb and primezilla was created by matrix845
Hi guys ,
first of all I want to ask if this is correct section about my question or this ( www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,showcat/catid,13/) it's better

If it's yes I'm sorry.

My question is about the integration between Primezilla and Cb .
It's possisble how CB+jim?

I don't found anything plugin for primezilla!

Thanks for your reply!
BR;)

Please Log in to join the conversation.

16 years 8 months ago #43998 by mmuta
Replied by mmuta on topic Re:Cb and primezilla
Disclaimer : I am a newbie, use at your own detriment :).

It is possible to integrate Primezilla similar to CB + Jim. I have it currently working with CB 1.1 and Primizilla 1.0.5.

These are the steps I followed. I am assuming you have already downloaded and installed the component and CB plugin for Primezilla on your website.

You will need to modify mod_cblogin.php and mod_cblogin.xml.

    mod_cblogin.xml

You will need to add Primezilla PMS as an option to integrate with CB Login.

Insert after line 82 the following:
[code:1]<option value="9">Primezilla PMS</option>[/code:1]

    mod_cblogin.php

Next you will need to add a case statement for the primezilla pms.

Insert after line 341 the following:

[code:1]case 9:
$pmsnameprefix="primezilla";
$query_pms_count = "SELECT count(*) FROM #__primezilla_inbox WHERE userid='$my->id' AND flag_read='0' AND flag_deleted='0'";
$database->setQuery( $query_pms_count );
$total_pms = intval($database->loadResult());

$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
$database->setQuery( $query_pms_link );
$pms_link_id = $database->loadResult();
$pms_link = "index.php?option=com_".$pmsnameprefix.($pms_link_id ? "&amp;Itemid=".$pms_link_id : ""«»);
break;[/code:1]

Now all that remains is to update your CB Login module to use Primezilla PMS as the pms and you should be all set.

Please Log in to join the conversation.

16 years 7 months ago #45362 by iosoft
Replied by iosoft on topic Re:Cb and primezilla
10000s of 'thank you' :woohoo: :blush:

Please Log in to join the conversation.

16 years 6 months ago #48848 by lulali
Replied by lulali on topic Re:Cb and primezilla
Hey,

thanks you mmuta ;)

Please Log in to join the conversation.

16 years 6 months ago #48850 by beat
Replied by beat on topic Re:Cb and primezilla
Implemented almost as suggested for next version of CB login module. :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

16 years 1 month ago #59839 by ahbartv
Replied by ahbartv on topic Re:Cb and primezilla
Wow this looks great, but it seems a bit difficult to me.
In mod_cblogin.php line 341 starts with:
[code:1] /* Test-code for SMF PMS integration [/code:1]

It looks like I should replace this code:
[code:1]/* Test-code for SMF PMS integration: to be validated with SMF team before integration !
case xxx:
global $user_info;
$total_pms = $user_info;
$pms_link = ???
*/[/code:1]

With the code above "code 9 ..."
Am I right?
But If I do this the code will go on like this: "break; default: break;"
Is this oke?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.281 seconds

Facebook Twitter LinkedIn