VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Topic started by: sync on July 12, 2006, 02:02:48 am

Title: Community Builder integration
Post by: sync on July 12, 2006, 02:02:48 am
Hi Soeren,

I've started work on a Community Builder plugin to integrate Virtuemart with CB. It's still at alpha stage (some critical known bugs) but we're receiving some good feedback too! However we will need to alter the Virtuemart code in a couple of places to ensure a proper integration - for instance the pages where CB lets a user register should be directed to the CB registration.

Rather than just hack the Virtuemart files, if I was to include an option or check in the administration options for Virtuemart that allowed people to turn on CB integration (and replace these sections of code with CB-friendly ones) could this be integrated into the main Virtuemart project? It'd be great if we could just use the standard Virtuemart release and not have to worry about hacking each new version.

Let me know what you think!

Cheers,
Ben. (e-motion design)

VM/CB Plugin: http://joomlacode.org/gf/project/vmart_cb/ (http://joomlacode.org/gf/project/vmart_cb/)
( go to 'files' menu item to download the latest version )
Title: Re: Community Builder integration
Post by: audiopleb on July 14, 2006, 14:21:10 pm
What are the features of this plugin? What will it do! Will there be a tab to list the customers previous orders?

Sounds great, i'd love to know what the integration does!

praps i should install it and find out....
Title: Re: Community Builder integration
Post by: doctorlife on August 06, 2006, 20:58:36 pm
In any case I think that open a specific topic about features into Joomla.org can be a very good idea !

What do you think sync ?

Emiliano alias doctorlife
Title: Re: Community Builder integration
Post by: gwen on August 10, 2006, 16:14:41 pm
Hi Sync,

good idea

what about the feature tell us more to see if we can modify the VM core in 1.1 for th CB integration
Title: Re: Community Builder integration
Post by: sync on August 11, 2006, 05:05:42 am
What are the features of this plugin? What will it do! Will there be a tab to list the customers previous orders?

Sounds great, i'd love to know what the integration does!

praps i should install it and find out....

Yeah that's probably the best way to find out!

But in brief, it tries to take the VM registration/user account options and push them into the CB registration pages so that the Joomla site can have one intergration registration and account maintenance section, and other components can of course be integrated too using other CB plugins.
Title: Re: Community Builder integration
Post by: sync on August 11, 2006, 05:08:08 am
In any case I think that open a specific topic about features into Joomla.org can be a very good idea !

What do you think sync ?

Emiliano alias doctorlife

Not a bad idea at all doctorlife!

I've been meaning to post about the last couple of CB plugins I've made on the official Joomla site, but I've been flat-out working on other projects lately and haven't had time to as yet. I've got to come back and finish the project that was the cause of me working on this CB-VM integration to begin with, so when I do that (which will be in the next week or so) I'll get back to working through the bugtracker and working on a more stable release of the plugin.
Title: Re: Community Builder integration
Post by: sync on August 11, 2006, 05:18:25 am
Hi Sync,

good idea

what about the feature tell us more to see if we can modify the VM core in 1.1 for th CB integration

Hi Gwen,

Sure - as of VM 1.0.5 the required changes to VM are very small. I've had to modify the checkout.index.php file only - and that file has just three minor modifications. You can see the source of the altered file here:
JoomlaForge: CB/VM Plugin: SVN: virtuemart_hacks/1.0.5/checkout.index.php (http://forge.joomla.org/integration/viewcvs/viewcvs.cgi/virtuemart_hacks/1.0.5/checkout.index.php?root=vmart_cb_plugin&system=exsy1002&view=markup)
The three altered spots have been commented above and below with '*** Ben', you can see the changes are fairly minor.

What I was imagining is that we could add a new option to the VM backend (like I did in this thread for 3 letter state codes):
VM Forum: 3 letter state code hack (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=16887.msg48200#msg48200)
And get this switch to 'enable CB integration' - and when this option was turned on, we could output the altered bits of code from my hacked file (just by wrapping the required sections in an if/else block).
  Or we could go even further and automatically detect if CB has been installed and enable the option automatically - however it's probably better to leave it as a user-selectable item so that an administrator can install CB and configure and test things before they actually turn-on the integration.

If it'd be helpful, I'm more than willing to alter the VM admin pages and send through the diff's or the altered files - that's if you think my strategy above is a good one! I'm not familiar at all with the VM project development methodology so don't know if what I outline above will be acceptable or not.

Thanks for your time though, and any feedback would be great!

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: joomladude on August 12, 2006, 03:27:06 am
Hey Ben,
I am building a huge Joomla! based site for a client (a very active Church organization) which is heavily relying on CB 1.0.1 and Virtuemart 1.0.6 and was all puzzled how to get these two fine components to communicate withe each other. A couple hours ago I came accros your great work on Joomla! forge and voila! I am all set and ready to go.

I noticed that your work is covering up to VM version 1.0.5 but I installed it on a 1.0.6 version with the exception of changing the last 4-5 lines of the code and it works like a charm. :)

I think this has to be included as a standard feature with both CB and VM new releases and thank you very much bud for your hard work!

Keep up the great work!

JD
Title: Re: Community Builder integration
Post by: gwen on August 12, 2006, 15:41:34 pm
Hi Sync,

Did you contact Soeren ? this is him who actually manage the project of course
I'm now making a new shop also with CB integration I'll come back to you soon
Title: Re: Community Builder integration
Post by: sync on August 14, 2006, 06:05:58 am
Did you contact Soeren ? this is him who actually manage the project of course
I'm now making a new shop also with CB integration I'll come back to you soon

No I haven't contacted Soeren directly, I know how busy he is! So I just posted this thread and I figure he can read it and think about it when he has time. It got stickied pretty quickly though so I figured that was Soeren and he thought it was interesting!
Title: Re: Community Builder integration
Post by: sync on August 14, 2006, 06:19:58 am
Hey Ben,
I am building a huge Joomla! based site for a client (a very active Church organization) which is heavily relying on CB 1.0.1 and Virtuemart 1.0.6 and was all puzzled how to get these two fine components to communicate withe each other. A couple hours ago I came accros your great work on Joomla! forge and voila! I am all set and ready to go.

I noticed that your work is covering up to VM version 1.0.5 but I installed it on a 1.0.6 version with the exception of changing the last 4-5 lines of the code and it works like a charm. :)

I think this has to be included as a standard feature with both CB and VM new releases and thank you very much bud for your hard work!

Keep up the great work!

JD

Thanks heaps for your comments JD!

I plan to get onto a 1.0.6 hack within the next week or so - shouldn't take me long I just have to adjust that checkout.index.php file. When you say it worked but you had to change the last 5-6 lines of code, what code do you mean? - the checkout.index.php file?

Also, this will be the home-page for the plugin once it's released properly:
e-motion design: VM/CB plugin (http://www.e-motion.com.au/index.php?option=com_content&task=view&id=69&Itemid=74)
I'm waiting until it's more stable before I do a proper page for it, but that's my employer and it's during work-time that I'm working on this plugin (it started as an adjustment for a client of ours but we thought it'd be nice to try and give something back to all the coders that have made this all possible!).
For now the forge is still the best place to go though, and bug-tracking and downloads will always be managed through Joomlaforge..
Title: Re: Community Builder integration
Post by: sync on August 15, 2006, 06:53:42 am
Ok another release this morning, I'm feeling that this is fairly stable and might push the status to beta (from alpha) sometime soon.

Changelog:
0.1.4 Added option to show/hide shipping address
Set default values for parameters
Added optional gap below output section
Re-fill info on reload of rego page
Takes rego page title from tab title
0.1.3 Country now required, state not required
Admin can alter users 'permissions' (for shop)
Admin can alter 'customer number'
Admin can alter 'shopper group'
0.1.2 Added user title info
Tidied post-rego notices
Edit shipping address in admin section workaround
Show break if title hidden
Bank account info working
0.1.1 Fixed rego bug
0.1 First release

I gave this a test on CB 1.0.1, Joomla 1.0.10 and VM 1.0.6 - also included a checkout.index.php file for VM 1.0.6. All seems to be working well! (at least on the setups I've tried it on)
Title: Re: Community Builder integration
Post by: gwen on August 16, 2006, 18:34:39 pm
hi sync,

I begin the test.

you wrote in the read me file
"COMPONENTS

There are two components to this release:
plug_virtuemart : The CB plugin for virtuemart integration. Install as a CB plugin.
virtuemart_hacks: Hacked Virtuemart files. Replace the original VM files with these.
More docs are included in each component."

take attention a plugin is not a component (as so called in joomla)
I do have to make my own zip in order to install the CB plugin, you might redo your zip file for the other who need just a click working solution ;-)

Title: Re: Community Builder integration
Post by: gwen on August 16, 2006, 20:15:09 pm
Hi Sync,

Ok it seems to be working.

However, I don't like the process, I mean go to checkout, go to CB, and need to go back once again in check out.
So I'll hack your hack  ;) or the easiest way would be to have the CB field required and the VM field in the same page as on VM when you don't use the auto completion password

moreover I guess we do have to change this line of code in virtuemart.php CB plugin also
Code: [Select]
DEFINE( '_VIRTUEMART_SECRET' , 'xxxx' ); in order to get our own secret key, right ?

I don't know how works the CB plugin, I do not have the VM field required, actually I filled the nickname, name, email, etc...
and log in to the website, and redo the checkout and here I see that VM don't ask for the email for example, so you're on the good road ! :-)

in order to make a good shop, not a geek place  ;) we need:
1/ if the CB registration is on a page alone (has it is now), at least the registration process should avoid us to enter the nickname choosen and the password (I've already made this on phpshop and an old CB...), plus we need to have an automatic redirection to the checkout process from VM (all as to be hidden for the user)

2/if the CB registration field can be integrated in the checkout_register_form.php it would be better for the non geek understanding

3/ the better way would be to hack VM in order to populate CB with the new data just entered I'va also done that on phpshop...)
it's the better way in word of graphics integration and logical process for our costumers who're not 12 horus a day on their keyboard (like us I guess ;-) )
I guess I'll make the third option, let me know what you think ?

I love the way you use the plugin cause it's actually a very easy hack to implement inthe core for the future, but I don't like the checkout process, you understand ? (sorry for my english I'm french)





Title: Re: Community Builder integration
Post by: Nicap on August 16, 2006, 20:22:31 pm
I can't get it to work with dutch languages. I'm using CB 1.01, VM 1.06 and Joomla 1.0.10. I switched to english and it worked OK.

Is it possible to get it working with dutch languages?
Title: Re: Community Builder integration
Post by: sync on August 17, 2006, 02:17:14 am
take attention a plugin is not a component (as so called in joomla)

Yes good point it can get confusing - but I meant 'component' in the sense of 'a part of ...' - maybe I should say something like 'there are 2 *parts* to this release', do you think that's clearer?

I do have to make my own zip in order to install the CB plugin, you might redo your zip file for the other who need just a click working solution ;-)

Yep thanks for the feedback, my fault - there's a new 0.1.5 release with a proper installable zip file and instructions that you need to unzip the first larger zip.

Cheers!
Title: Re: Community Builder integration
Post by: sync on August 17, 2006, 02:19:02 am
I can't get it to work with dutch languages. I'm using CB 1.01, VM 1.06 and Joomla 1.0.10. I switched to english and it worked OK.

Is it possible to get it working with dutch languages?

I've never tried it in another language at all - how are you changing this setting? Let me know and I'll replicate it and see what I can do about the problem..
Title: Re: Community Builder integration
Post by: sync on August 17, 2006, 02:30:58 am
moreover I guess we do have to change this line of code in virtuemart.php CB plugin also
Code: [Select]
DEFINE( '_VIRTUEMART_SECRET' , 'xxxx' ); in order to get our own secret key, right ?

Well spotted! No I should pull this secret from the config/database, I must have forgotten to do this. Will add it to the list!

in order to make a good shop, not a geek place  ;) we need:
1/ if the CB registration is on a page alone (has it is now), at least the registration process should avoid us to enter the nickname choosen and the password (I've already made this on phpshop and an old CB...), plus we need to have an automatic redirection to the checkout process from VM (all as to be hidden for the user)

2/if the CB registration field can be integrated in the checkout_register_form.php it would be better for the non geek understanding

3/ the better way would be to hack VM in order to populate CB with the new data just entered I'va also done that on phpshop...)
it's the better way in word of graphics integration and logical process for our costumers who're not 12 horus a day on their keyboard (like us I guess ;-) )

Thanks so much for the time you've spent looking at this and your detailed comments! I'm afraid that I don't understand what you mean here 100% - my idea of how the plugin should work is:

1. A customer goes to the website and registers - when they register they enter all standard Joomla rego stuff and the VM registration stuff too (all through the one CB registration page)
2. The customer goes through the shop, adds some items to cart, and goes to checkout
3. Customer goes through checked (as they've already logged in) and purchases

On a return visit:
1. Customer browses around the shop, adding things to their cart
2. Customer logs in, or is prompted to login at checkout
3. Customer completes checkout as normal

If a customer wants to edit their info, all links to edit their profile should go to the CB-edit-profile page where they can edit Joomla or CB info. That's one of the things I change in the hack to checkout.index.php.

Does that make sense? If it does, can you tell me which bits of that aren't working right at the moment, or which bits you think we should change?

I think that people can use Virtuemart in so many different ways, I might have one case in mind but other people might have different ways they want the process to work.

Thanks again Gwen!
Title: Re: Community Builder integration
Post by: gwen on August 17, 2006, 18:48:07 pm
Hi Sync,

Quote
1. A customer goes to the website and registers - when they register they enter all standard Joomla rego stuff and the VM registration stuff too (all through the one CB registration page)
2. The customer goes through the shop, adds some items to cart, and goes to checkout
3. Customer goes through checked (as they've already logged in) and purchases

Actually ask to yourself...when you're looking for something to purchase on the net.... will you register to a web site in order to make an order...or will you make an order (on the website found...) and after that complete the registration process ?

I really think that my way is the best (not cause it's mine ;)) but cause I think in the shopper way.
A shopper won't make a registering process before making an order, unless you're on a community web site of course...but I'm talking about a shop website.

do you understand me ?

by the way I finisehd yesterday night a esay intergation of CB profil in VM...the VM shopper are added automaticly to the CB database, and can complete thezir profile later if they want to tahe part of the community !



Title: Re: Community Builder integration
Post by: gregdev on August 18, 2006, 04:17:30 am
I've been watching your discussion and your CB plugin with interest. Good work.

Regarding your most recents posts, I think it is important to allow both paths for registration:
1. From the CB side where a user registers on a site, then considers shopping after that (like sync suggested).
2. From the VM side, where the user is first a shopper, whose information gets carried over to VM during the checkout process (like gwen suggested).

I also wrote an integration between VM and CB on my site, from the VM side though. I ended up hacking core files, but I think I'll end up changing it to use a mambot. Meaning, I'll place a trigger in the VM code in the registration process that calls a mambot to do the syncronization work. This is similar to the concept of writing a plugin for CB. A plugin system for VM would be helpful for integrations like this. Until that happens, I just place triggers in VM code to call a mambot. This keeps my VM code much cleaner for upgrades.

Title: Re: Community Builder integration
Post by: Nicap on August 19, 2006, 17:36:05 pm
I can't get it to work with dutch languages. I'm using CB 1.01, VM 1.06 and Joomla 1.0.10. I switched to english and it worked OK.

Is it possible to get it working with dutch languages?

I've never tried it in another language at all - how are you changing this setting? Let me know and I'll replicate it and see what I can do about the problem..

Standard language is english. If i set it om Joomla as default Dutch, then Virtuemart is also in Dutch. It takes the setting from Joomla.
Title: Re: Community Builder integration
Post by: gwen on August 19, 2006, 19:41:42 pm
Hi gregdev,

you're right of course the better way to synchronize VM and CM is do to it in the both way !

do you have any file do send in orer to test the mambot you wrote?
so with your way you'll only have to hack an admin file (config?) this would be excellent to have a plugin option able to manage pluggin addition has you suggest (as in CB actually :-) )

Title: Re: Community Builder integration
Post by: Nicap on August 20, 2006, 01:00:08 am
I have to add something:

when i select the english langauge in Global configuration, then in Virtuemart Language Manager english is the default mosConfig_lang?

But actually the language is still in dutch in VM(when browsing the shop). If i change dutch.php into something else it works, and then it is in english.
Title: Re: Community Builder integration
Post by: gregdev on August 22, 2006, 23:14:26 pm
do you have any file do send in orer to test the mambot you wrote?
so with your way you'll only have to hack an admin file (config?)

My hack for user integration, as I mentioned before, was in the core files. For other tasks, I've used the mambot concept. I want to apply it to user integration, but haven't implemented it yet.

But, you'd need to place mambot calling code wherever you want the synchronization to happen:

Code: [Select]
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'virtuemart' );
$_MAMBOTS->trigger( 'onVMUserAdd', array($d) );

You'd need this in multiple places to handle backend user registration, frontend user registration, etc.

Then, inside the mambot, register a function to handle the event:

Code: [Select]
$_MAMBOTS->registerFunction('onVMUserAdd', 'whateverFunctionYouWantToCall');

function whateverFunctionYouWantToCall($d) { ...

Oh, and inside the mambots .xml file, you'll need to use this:

Code: [Select]
<mosinstall type="mambot" group="virtuemart">
At least, that's my preference - I create a new mambot group for all my VirtueMart mambots.

See this URL for a previous post on VirtueMart mambots:

http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=18465.0

But, I should add that I've stepped back from using mambots in terms of strategy. I think that a VM-specific plugin system would be better than using mambots.

Title: Re: Community Builder integration
Post by: super_yupi on September 06, 2006, 19:09:36 pm
Thank you so much for the wonderful plugin.
One problem I am facing is the process of changing the "shopper group"

I have a regular shopper group and discount shopper group.  When people register from Community builder/Virtuemart plugin registration form, I cannot seem to change the shopper group in the administration screen. 

In order for this to work, I had to go into Virtuemart and change the shopper group (which does not reflect change)--and then when I go back to the admin screen for community builder, I can change the shopper group in each user.  I tried "sync user" in the tool function, but this does nothing.

Any configuration I missed when I set the program up??

I appreciate your help :)

Solved

I found what was wrong.... I had the "default shopper group ID" to be "5" instead of defualt "0" in my Virtuemart.

I changed Virtuemart plugin's virtuemart.php (line 230)
   
if ( strlen($vm_sgi)==0 ) $vm_sgi=0; TO
if ( strlen($vm_sgi)==0 ) $vm_sgi=5;

and it's working now.. Thanks for the great module.
Title: Re: Community Builder integration
Post by: sync on September 08, 2006, 08:50:45 am
I changed Virtuemart plugin's virtuemart.php (line 230)

Thanks super_yupi - I actually replied to your post on joomlapolis about this issue, I replicated it on my install so I've added it to the tracker. I'll try that fix ASAP.

Sorry all about my slowness replying - we've been flat-out on other jobs but I will definitely be getting back to this integration; I need to get it all sorted for use by one of our clients! But also I don't want to start this interesting integration and then leave it - I want to get this working for everyone in a simple solution!

Cheers..
Title: Re: Community Builder integration
Post by: super_yupi on September 11, 2006, 01:58:19 am
I am still doing trying and error on tihs...but here are some changes I made to make it work.. :D

In admin section, I have to go to Virtuemart first and then go to Community builder.  I am not sure how to go around this....if I don't do this, "shopper" (perm) and "shopper group" drop down menu does show up on the screen.

Also- when I try to add new users from community builder, the user get added..but all the information for Virtuemart was not added.
I can update the user...but not add new user's billing address....

I used this script to fix..
      //see  if the database user exist in vm_user_info
         $q = 'SELECT * FROM #__vm_user_info WHERE `user_id`="' .$user->id.'"';
         $database->setQuery($q);
         $database->query();
         // Insert Shopper -ShopperGroup - Relationship if there is no database exist...
         if( sizeof($database->loadRowList()) < 1 ) {
         
         $q = 'INSERT INTO #__vm_user_info SET `user_id` = "'. $user->id .'" , `user_info_id` = "'. md5( uniqid( _VIRTUEMART_SECRET )) .'"';
         $database->setQuery( $q );
         $database->query();
         
                  }
         else {
      }

If anyone has better way, please let me know.


I am not sure if this will affect anything..but I changed these as well... (some '"' seemed to be missing...)
line 223 of Virtuemart.php  (plubin) change

         $vendor_id = 1; // *** fix up this hack!
         // *** working on this bit 20060712
         $q = "SELECT * FROM #__vm_shopper_vendor_xref WHERE `vendor_id`=".$vendor_id." AND `user_id`=" . $user->id;
         $database->setQuery($q);
         $database->query();
         $vm_sgi = $_REQUEST['vmart_shopper_group_id'];
         $vm_cn = $_REQUEST['vmart_customer_number'];
         if ( strlen($vm_sgi)==0 ) $vm_sgi=0;
         if ( strlen($vm_cn)==0 ) $vm_cn="''";
         if( sizeof($database->loadRowList()) < 1 ) {
            // Insert Shopper -ShopperGroup - Relationship
            $q  = "INSERT INTO #__vm_shopper_vendor_xref ";
            $q .= "(user_id,vendor_id,shopper_group_id,customer_number) ";
            $q .= "VALUES (".$user->id.", $vendor_id,".$vm_sgi.", ".$vm_cn.")";
         }

TO:

         $vendor_id = "1"; // *** fix up this hack!
         // *** working on this bit 20060712
         $q = "SELECT * FROM #__vm_shopper_vendor_xref WHERE `vendor_id`=".$vendor_id." AND `user_id`=" . $user->id;
         $database->setQuery($q);
         $database->query();
         $vm_sgi = $_REQUEST['vmart_shopper_group_id'];
         $vm_cn = $_REQUEST['vmart_customer_number'];
         if ( strlen($vm_sgi)==0 ) $vm_sgi="1";
         if ( strlen($vm_cn)==0 ) $vm_cn="''";
         if( sizeof($database->loadRowList()) < 1 ) {
            // Insert Shopper -ShopperGroup - Relationship
            $q  = "INSERT INTO #__vm_shopper_vendor_xref ";
            $q .= "(user_id,vendor_id,shopper_group_id,customer_number) ";
            $q .= "VALUES (".$user->id.", ".$vendor_id.",".$vm_sgi.", ".$vm_cn.")";
         }
Title: Re: Community Builder integration
Post by: mstookey on October 12, 2006, 17:30:32 pm
hi-
I've been trying to get a virtuemart/cb integrated site going & i'm a little frustrated by the process of needing to register - then log in - then shop. OR shop - then get bumped out of shop to register - then told to login - then find my way back to shopping.

Are there any hacks available so that at least the registration process automatically logs you in to continue shopping?

Ideally i'd like to access the info from both the order - customer info direction as well as just let someone fill out a profile. But the order process right now seems a bit long and tedious.

Would love to hear if anyone has any suggestions/ hacks ...

thanks.

marilyn
Title: Re: Community Builder integration
Post by: Christopher Nielsen on November 10, 2006, 02:29:03 am
I tried this and the plug in is nice that you can have the VM shipping info in CB. The bigger issue for me is that when a user trys to login from the shopping cart I get "you are not authorized to view this..."

I am using the CB login so when the user logs in from the CB login they are fine in the cart but it is very confusing to the users. Can the login  be turned off in VM to require the users to use the CB to log in first?
Title: Re: Community Builder integration
Post by: TwinStripe on November 22, 2006, 19:32:44 pm
I'm actually using a renamed copy of the CB login script in place of the VM one - daft, but it works!
Title: Re: Community Builder integration
Post by: JDA on November 24, 2006, 17:46:34 pm
Hi,

I installed all components and modules, made the hacks and everything works for about 90%...
In my case, the new user is not added in the table jos_vm_shopper_vendor_xref when registering through CB. Does anyone else have this problem as well?

Are there any extra changes that need to be made with 1.0.7? I hope to be able to get CB as it is a great component.

Any help is appreciated!!

Thanks in advance,

Jesse
Title: Re: Community Builder integration
Post by: TwinStripe on December 11, 2006, 01:37:48 am
Let us know which mods, hacks and plugins you used (both in CB and VM) - you never know, you could be missing something!
Title: Re: Community Builder integration
Post by: N6REJ on December 21, 2006, 03:13:41 am
any further progress on this?
Title: Re: Community Builder integration
Post by: Da Fossil on December 21, 2006, 22:40:26 pm
Hi,

Is the latest version of the plug-in compatible with VM version 1.0.7  ??
From the download page it doesn't seem so...
Title: Re: Community Builder integration
Post by: dougal on January 15, 2007, 11:08:13 am
Again, just wondering about the compatibility of this plugin with joomla 1.0.12, virtuemart 1.09 and cb 1.0.12 rc. Anyone installed it successfully on these latest versions.
Thanks to all that have contributed
Title: Re: Community Builder integration
Post by: sync on January 15, 2007, 23:12:10 pm
We've finally got some time to put into our open-source software again; yesterday I updated our CB/Anjel plugin to work with the latest versions of everything, and next on my list is this CB/VM plugin. I'd say (but not promise) that there'd be an update compatible with the latest versions of everything this week.

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: sync on January 16, 2007, 04:34:34 am
Hi All,

Another release!

0.1.6 Use same _VIRTUEMART_SECRET as other VM files
      Show tab description if in edit mode
      Don't show break if hiding title
      Added localisation ability

Tested on Joomla 1.0.8 - 1.0.11, CB 1.0.RC2 - 1.0.2, VM 1.0.4 - 1.0.9

This one has also hopefully fixed the language bug - and the plugin now handles localisation too. Most text is taken from VM but there's about 6 strings the plugin uses; if anyone writes a translation send it through (or post here) and we'll include it in the next release.

There's a few feature requests left on the tracker which I'll look at once we iron any bugs out of this release. One thing I'm really keen to do is to stop having to produce the VM hacks - any ideas on how we can hook into / override VM's behaviour in the checkout.index.php file when it shows the register form?

If we could reliably replace this line of code:
Code: [Select]
include(PAGEPATH. 'checkout_register_form.php');With our own snippet of code in a version-independant way then we'd be future-proofing the integration of CB and VM to some extent.

Cheers!
Title: Re: Community Builder integration
Post by: dougal on January 16, 2007, 09:27:31 am
Wow, that was quick. Thanks Ben
Title: Re: Community Builder integration
Post by: Da Fossil on January 16, 2007, 10:45:18 am
This is so great! I'll have a look into this asap.

Also, count on having the Portuguese translation of those strings you mention.

Any other particular issues you'd like for us to look at ? besides that one about "future proofing" ?

Best Regards


Hi All,

Another release!

0.1.6 Use same _VIRTUEMART_SECRET as other VM files
      Show tab description if in edit mode
      Don't show break if hiding title
      Added localisation ability

Tested on Joomla 1.0.8 - 1.0.11, CB 1.0.RC2 - 1.0.2, VM 1.0.4 - 1.0.9

This one has also hopefully fixed the language bug - and the plugin now handles localisation too. Most text is taken from VM but there's about 6 strings the plugin uses; if anyone writes a translation send it through (or post here) and we'll include it in the next release.

There's a few feature requests left on the tracker which I'll look at once we iron any bugs out of this release. One thing I'm really keen to do is to stop having to produce the VM hacks - any ideas on how we can hook into / override VM's behaviour in the checkout.index.php file when it shows the register form?

If we could reliably replace this line of code:
Code: [Select]
include(PAGEPATH. 'checkout_register_form.php');With our own snippet of code in a version-independant way then we'd be future-proofing the integration of CB and VM to some extent.

Cheers!
Title: Re: Community Builder integration
Post by: sync on January 18, 2007, 02:01:22 am
Thanks for the comments all!

Any other particular issues you'd like for us to look at ? besides that one about "future proofing" ?

Not at the moment; there's quite a few improvements we need to look at once the basic functions are all 100% - especially the checkout process issue as described earlier in the thread; but at the moment I want to concentrate on making sure the core functionality is all working right.

I had an idea about not having to manually hack VM - I can patch the VM files programatically on install of the plugin and un-patch them on uninstall. I think that should work fine, and I should even be able to build in a bit of future-proofing by searching for a specific string to replace so it won't matter if the lines get moved around or whatever as long as the line I'm searching for exists. Haven't tried implementing this yet but my gut feeling is that it'll work well - I'll probably do this as my next task on the plugin.

Cheers,
Ben (e-motion design).

PS: Also I should thank my employer e-motion design; without their encouragement to work on this project during work hours it wouldn't have happened!
Title: Re: Community Builder integration
Post by: sync on January 23, 2007, 05:15:08 am
0.1.7 Fixed localisation bug with plugin-specific strings
      Made virtuemart fields optional - required/optional
      Made registration fields optinal - hide/show
Title: Re: Community Builder integration
Post by: sync on January 24, 2007, 23:59:02 pm
0.1.8 *Really* fixed localisation bug
( Sorry! Somehow I lost my code changes for this fix and had to re-do it. It's not critical - just the 6 plugin-specific strings weren't getting localised properly. All fixed now )
Title: Re: Community Builder integration
Post by: sync on January 29, 2007, 05:07:18 am
0.1.9  After registration, try to login (optional setting)
       If logging-in, can return to previous page

Hopefully this update fixes the 'checkout process' issue that numerous people have asked about previously.

1. It allows for CB to auto-login after registration (should I make this into a separate plugin for CB? the functionality is really separate from the CB-VM plugin).

2. It allows for a 'return URL' to be sent to the registration page, and the user will be sent back to this URL after registering.

3. The 1.0.9 VM hack includes a slightly updated link which now passed this return URL.

So the process can now go:
Shop > Product > Add to cart > Checkout 1 > Register > Checkout 1 > Checkout 2 ... (for an unregistered user).

I'm still keen to get these hacks over-and-done with and will look into auto-patching VM ASAP.

Cheers,
Ben.

EDIT: Sorry, re-uploaded a bugfix, and as only 1 person had downloaded in that time I left the version # at 0.1.9. One of you will be getting a 'call to a non-member function..' error on the checkout page; just re-copy the hack file and you'll be up to date with the proper 0.1.9 release. We've been having problems with our SVN respository today :|
Title: Re: Community Builder integration
Post by: gorlaz on February 01, 2007, 11:13:18 am
Hi sync,

Thanks for going to the effort on this - I'm sure there are a lot of happy peeps out there for this.

I'm waiting for the Joomla Forge site to come back up so I can look at the material - is there any other place the documentation/install instructions are located?

Does the component work well? I'm a newb at programming and I always miss files when I upgrade components which breaks stuff - how invasive is the component to core files?

Cheers

EDIT*** Got to the forge ;) Do you want a hand with documentation?
Title: Re: Community Builder integration
Post by: Michael on February 02, 2007, 04:28:04 am
Hey sync!

Great job friend. I love the automatically login feature :)

Do you think that it would be possible to have the CB fields within the VM login/register screen? (below the basket, like in the original VM register screen)

This way, we would save 2 clicks to users and the proccess would go like this:

Shop > Product > Add to cart > Checkout 1 + Register > Checkout 2 ...


Just my humble suggestion ;)
Title: Re: Community Builder integration
Post by: sync on February 09, 2007, 03:15:00 am
Hi Michael,

That's a good idea! And will probably not be too hard to implement, as if we're adding in some code there anyway (our rego link) we can replace that with the full-blown registration page. I've added this to the request tracker so I don't forget ( http://forge.joomla.org/sf/go/artf7527?nav=1 ).

Thanks!
Title: Re: Community Builder integration
Post by: sync on February 09, 2007, 03:17:51 am
On a more general note, I ran into an issue on a site which logged a user out after registration. In the end I figured out that upgrading Joomla to 1.0.12 and CB to 1.0.2 fixed this issue, in combination with a slightly altered fix from the CB forums (the https fix inserted into configuration.php). I will document this in the next version I release, but just wanted to let people know; if you have this problem, upgrade the components, and if there's still an issue you will be able to get the CB https fix from the next release's documentation.

This integration is getting very nice! The user process is getting quite smooth and I can see this becoming a really usable system, which is nice ;)
Title: Re: Community Builder integration
Post by: gorlaz on February 09, 2007, 03:30:24 am
Bring it on :)

I'm testing and hopefully deploying this weekend - hopefully it'll work and clean up the rego and checkout process; at the moment mine is just plain ugly :)

Good work
Title: Re: Community Builder integration
Post by: webgobe on February 09, 2007, 18:00:52 pm
Can I have a "feature request"  :P I need an extra tab in CB user profile with last 5 items purchased... I allready have CB, VM set up, with this integration (Thanks, works, great stuff!!) and the hack wich allows me to collect data/list what else has buyed people who has bought a given product
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=19486.msg46471#msg46471
which also works great, so I think the job is halfway done. Eventually I can drop in some coins to the machine if that helps ;)
Title: Re: Community Builder integration
Post by: Macca on February 10, 2007, 08:09:46 am
This Plugin is fantastic. It is just what I wanted.  Thanks!!

How do I add a line of text between the two forma so that I can put in some instructions in order to simplify it for some of my 'not so learned users'?

Some text at the beginning would be good also as it would get then in the mood for 'Two lots' of information input.
Title: "You are not authorised to view this resource" error (SOLVED)
Post by: gorlaz on February 13, 2007, 11:31:32 am
Any ideas how to fix the "You are not authorized to view this resource. You need to login." error?

I'm using Joomla 1.11 and VM 1.09.

I thought is was OpenSEF, but I don't have that installed on this particular version of my site (dev machine).

Error occurs after Adding an item to cart > clicking Checkout > then clicking the "You can register here for a new account if you don't already have one" link.

If I log in as a preexisting user (ie created before CB implemented), it works.

LOL> SOLVED
Make sure you *cough* turn the CB registration on in the CB Configuration Manager, Registration tab.
I'll take my dopey hat off now :)

Works great - onya Sync
Title: Re: Community Builder integration
Post by: N6REJ on February 17, 2007, 16:15:30 pm
move up to 1.12 in JM there are several known issues in .11
Title: Re: Community Builder integration
Post by: gorlaz on February 17, 2007, 22:37:18 pm
Thanks N6REj, the previous post I made was for my dev environment which I got to work after enabling the registration as well as upgrading.

I followed the same procedure on my live site and I think I've got issues with https (It's a dedicated certificate, not a shared one);

Issue is that a unregistered user can't create an account and checkout at the same time properly.
 
Environment: J! 1.0.12, VM 1.09, CB 1.02, https, OpenSEF.
 
Reproducable error;
User selects item, adds to cart, is presented with the cart summary screen (with both Continue Shopping and Checkout Links), clcik Checkout, presented with Step 1 of checkout (https-is secure), click the 'You can register here link..' and you are presented with a blank page (URL: https://www.gameshound.com.au/index.php?option=com_comprofiler&task=registers&return=index.php%3Fpage%3Dcheckout.index%26option%3Dcom_virtuemart%26Itemid%3D26)
and https is still valid.

If you then click 'Show Cart' to open the cart summary again, you get a https page (still secure), but only a Checkout link. Click on it, takes you to Step 1 (still secure), click the 'You can register here' link, and it goes to the CB/VM registration page (https://www.gameshound.com.au/index.php?option=com_comprofiler&task=registers&return=index.php%3Foption%3Dcom_virtuemart%26Itemid%3D26%26index_php%3Foption%3Dcom_virtuemart%26page%3Dcheckout.index)
but https is broken and I geta  'Connection partially encrypted error' in FF (1.5.09) fill in the form and it throws me to the CB profile page.
Title: Re: Community Builder integration
Post by: Macca on February 19, 2007, 13:33:59 pm
Do not worry about my post on adding text into the registration ...worked it out ...you were all so helpful and I appreciate the feedback.

Tks
Title: Re: Community Builder integration
Post by: fidel on February 28, 2007, 22:58:51 pm
If you then click 'Show Cart' to open the cart summary again, you get a https page (still secure), but only a Checkout link. Click on it, takes you to Step 1 (still secure), click the 'You can register here' link, and it goes to the CB/VM registration page (https://www.gameshound.com.au/index.php?option=com_comprofiler&task=registers&return=index.php%3Foption%3Dcom_virtuemart%26Itemid%3D26%26index_php%3Foption%3Dcom_virtuemart%26page%3Dcheckout.index)
but https is broken and I geta  'Connection partially encrypted error' in FF (1.5.09) fill in the form and it throws me to the CB profile page.

Thanks for the site link. I hadn't looked at this thread for a very long time. Looking at the link and having not yet installed this plugin / hack, I have a question: Does the actual registration page exist on CB and integrate all the VM fields???
Title: Re: Community Builder integration
Post by: gorlaz on February 28, 2007, 23:19:10 pm
Hi Fidel,

I got really annoyed with this issue and after a lot of stuffing around found out it was OpenSEF in combination with CB/VM integration that was causing the issues. OpenSEF on its own worked before I installed CB/VM integration - no cart dumping or semisecure issues.

I've disabled OpenSEF and it all works fine (I think - I'm still testing) - so I think it was a redirect causing the issue. I can now create a new user during the checkout process. Only issue so far is something in the CB/VM integration causing it to go to the user profile rather than continue checking the cart out, but it is keeping the cart, not dumping it. I suspect there's a setting I need to tweak to get it to continue on with the cart.
Title: Re: Community Builder integration
Post by: webgobe on March 01, 2007, 07:05:14 am
Try the ArtioJomSEF with the VM plugin (that's comes at a price, tough...12 EUROs), working fine for me on several sites with this hack installed.
Title: Re: Community Builder integration
Post by: gorlaz on March 01, 2007, 07:09:19 am
Thanks for the tip webgobe. 12 euros for a working CB, VM and SEF solution is a very small price to pay (especially if it saves my sanity).

Do you have CB installed as well?
Title: Re: Community Builder integration
Post by: tug on March 01, 2007, 08:27:05 am
This patch fix changing shopper group of user through CB

in attach:

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: Prescott Paulin on March 08, 2007, 01:47:36 am
Perhaps I am missing the point, but I would love it if someone could clarify how this is used specifically in regards to logging in.  (It seems that this hack is what I need, but...)

I'm making the site for a non-profit group that helps Marines out when they want to attend college.  We want to build an online network of supporters including the Marines that live there (with CBuilder) and also sell t-shirts and other merchandise on the website to raise money (Virtuemart).

So, I installed the VirtueMart/Joomla package where they are both integrated in one install.  This was downloaded tonight and was the newest release.  After that I downloaded and installed Community Builder (CBuilder) and followed the directions. I then disabled Joomla global user registration in favor of user registration through CBuilder (as per the instructions in CBuilder's install guide.)

After enabling the modules I now have two login boxes.  One is built-in to the mod_virtuemart module that is on the left hand side (see SemperFiHouse.com for a live example of what I am talking about) and the other is mod_cblogin which was apparently needed so that people can sign-in to CBuilder.

My question is, after I install this, how do I get people to login?  What form are they supposed to use and what form do I disable?  And when they login using the one you tell me then will they be able to see their profile and also make online purchases?  I also need to know how people are supposed to register, as CBuilder tells me that they must register through the CB modules, but it seems that the default VirtueMart module requires its own login... I'm totally confused as to what I need so that there is just one login prompt for both scripts.

Any help is greatly appreciated!!

Semper Fidelis,
Prescott Paulin
USMC Officer Candidate
Semper Fi House Volunteer and appointed "Director of Technology"
Title: Re: Community Builder integration
Post by: fidel on March 08, 2007, 02:16:48 am
SEMI-OFF TOPIC - Pauline

As time permits, I am willing to provide assistance with the web side of the project. Via private mail, define exactly what your operation's objectives are and what elements must be instituted, and I'll go to work.

SEMI-OFF TOPIC - Gorlaz

Thank you for the insight and updates on your site's development. I'm hoping I don't encounter any issues with OpenSEF, since the site has been on the WWW for approximately one month and is still under development but has managed to rack up a lot of online store (Virtuemart) pages cached on the search engines.

CB INTEGRATION

I have yet to dig into this hack but will look to within the coming weeks as the latest store goes online. The site uses Virtuemart, OpenSEF, Community Builder, Simple Machines Forum and the SMF Joomlahacks Component. I suspect I will have issues, but duruing minor testing of the store last month, everything seemed to go well. Once I get to more comprehensive testing, I will provide configuration notes as to the results, which would include the use of this hack.
Title: Re: Community Builder integration
Post by: GilanVirtueMart on March 09, 2007, 13:31:50 pm
Hey everyone

I have VM 1.0.10 with the VM_CB plugin installed.
Registration integration works fine.

However when I log in as a shopper and click on a catagory name, it says "This Category is currently empty"

The products do show when I'm either logged out, or logged as Admin.

Any ideas as to why this is happening?

Many thanks

Gilan
Title: Re: Community Builder integration
Post by: flater on March 11, 2007, 15:24:01 pm
1st to say, good job on the plugin, it works great.

ive got joomla 1.0.12 and vm 1.0.10

and also I got the problem that when someone is logd in no products show up in the shop...

someone got an idea on this?

thanks
Title: Re: Community Builder integration
Post by: Charles on March 15, 2007, 14:40:24 pm
Hi there, I thought I was going crazy here when I started reading this thread seeing as nobody was having a similar problem to mine. I installed the system 100% as instructed, but when I registered a new user account in order to test the registration and login, I got the same error when I tried to browse the store: This Category is currently empty.

Also, I use email address verification on my site to prevent users from registering 101 accounts for the purpose of disrupting other users.

It's a good thing I read this thread right through to the last page as I was beginning to think that I was the only person with the problem. I have Joomla 1.0.12 and VM 1.0.10.

I noticed that when I go into the VM admin interface, when I change the default group of the user, then I can access the shop without any problems. Any ideas how to make this an automatic thing?

PLEASE? (thanks guys)
Title: Re: Community Builder integration
Post by: GilanVirtueMart on March 15, 2007, 14:55:06 pm
Hi Charles

I have been waiting for a while and nobody has replied with a solution :-/ I am going mad trying to work out how to fix this.

Can you explain in more detail how you changed the default group of the user (because I changed the shopper-group and still did not work, maybe you are doing something differntly to me).. Perhaps there is a solution in there somewhere for us to explore..

Thanks

Gilan
Title: Re: Community Builder integration
Post by: gorlaz on March 15, 2007, 20:20:23 pm
Hey guys - this is off topic but I'd appreciate a response, as my other posts on this hack have gone unanswered.

If a previously unregistered user creates an account whilst trying to check a cart out what happens for you?

For me they're redirected to their CB profile page rather than continuing on with the checkout. Is this what happens to you?

Any answer appreciated
Title: Re: Community Builder integration
Post by: MoonWizard on March 16, 2007, 23:10:32 pm
Hello!

Thanks for this great plugin! It is really a great work!

By the way, what are the needed settings for configuring correctly this addon?

Do we must use the CB login module or the Virtuemart module for registering, login and logout?

Do we have to uncheck joomla registration and select "Yes, independently of global site setting"?

Is correct that in Virtuemart appears...

Joomla: user registration permitted? NO
Joomla: is it needed to activate user accounts? YES

Are these settings correct?

Thank you very much!
Title: Re: Community Builder integration
Post by: snazzyperry on March 19, 2007, 01:06:20 am
I am looking to 'eliminate' VM login from Joomla/VM. I would like to have ONLY CB be the registration and WHEN/IF a customer uses the cart and then needs to fill out the information it is CB and NOT VM as it is hard to specify fields and country that I need (ONLY Canada). The Other thing is that I ONLY sell to Canada and want ONLY to show the Provinces and nothing else... HOW do I do THAT??

Also the same as MoonWizard... what are the proper settings for Joomla, VM AND CB to make CB truely integrate within VM/Joomla combo and WORK without errors! From what I am reading there are numerous errors in truely integrating CB with Joomla/VM.

I would ALSO like to know what files need to be modified in order for me to redirect the customers to the TRUE registration page (CB) AND to ONLY list the fields that I need (ie country=Canada only, etc).
Title: Re: Community Builder integration
Post by: Charles on March 19, 2007, 06:55:34 am
Hi Gorlaz,

That's exactly what happens with me although now, after the user has registered, they cannot access the shop as it does not display any items for sale. I'm waiting to hear from the guys behind this add-on if they're able to help us out with a fix.
Title: Re: Community Builder integration
Post by: gorlaz on March 19, 2007, 06:59:57 am
Hey Charles,
I'm gald to hear I'm not the only one!

I've tried contacting the author via PM here and the discussion board at the dev forge, but haven't received a reply, so I'm not sure what's going on.

I've currently got a developer having a look at it to find out what needs to be done to fix it. If we can come up with something I'll release it, but I'm not sure how long the process will take.

Cheers
Title: Re: Community Builder integration
Post by: GilanVirtueMart on March 19, 2007, 09:53:23 am
Same problem here... Once logged in, all categories display "This Category is currently empty" ... Have had no luck in trying to fix this, so looking forward to any feedback!
(Although when logged in as admin, products DO show - admin is the only user that, when logged in, can view products)

Take care
Gil.
Title: Re: Community Builder integration
Post by: Laurelle on March 20, 2007, 01:29:41 am
Hello,

Thank you, tug, for posting your hacked version of virtuemart.php. I found that it partially solved the problem of the empty category problem reported by many people.

There seems to be two parts that are not being set when a new user registers, the user needs to be set as a shopper and their Shopper Group needs to be set to -default-. The hack supplied by tug did the part of setting the user as a shopper and also lets you now go into the the user record in CB and change the Shopper Group.

I have made 3 further hacks this file:
1. the Shopper Group is set to -default- when the user registers
2. I have fixed the bug that threw a php error when the admin tried to confirm a user.
3. I have also fixed the bug that occurred when a user tried to confirm his registration, the user is logged in properly when they confirm now, rather than getting a message about an invalid username or password.

The hacked file is attached, just replace your components > com_profiler > plugin > user > plug_virtuemart > virtuemart.php file with the attached file (needs to be unzipped first).

Hope this helps solve some of the problems that others are having with this plugin.

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: gorlaz on March 20, 2007, 02:00:53 am
Hi Laurelle,

Any chance your hack also fixes the redirection to CB during checkout/initial registration issue ?

Thanks
Title: Re: Community Builder integration
Post by: MoonWizard on March 20, 2007, 11:01:30 am
Hello!

Great work Laurelle!

Is there any way to move the registered users to the -default- group before this hack has been released?

Thank you very much!
Title: Re: Community Builder integration
Post by: Benoit Lallemand on March 20, 2007, 21:44:43 pm

Hi,

Where I can find plugin CB for virtuemart?

Benoit
Title: Re: Community Builder integration
Post by: emasstech on March 22, 2007, 05:46:13 am
It greats plugin..Suitable for me currently using joomla 1.0.12, CB 1.02 and vM 1.0.9 and plugin for CB plug_virtuemart_0.1.9-unzip-first..perfectly no problems.

But the latest update from Vm is Vm 1.0.10. i afraid to update it because the previous topic about the unsuitable  CB plugin with VM 1.0.10.

Can any one in here give any warant that the latest VM is suitable with CB plugin?
Thank you
Title: Re: Community Builder integration
Post by: emasstech on March 28, 2007, 13:04:59 pm
There is no answer in here??? so bad
Title: Re: Community Builder integration
Post by: Charles on March 28, 2007, 13:45:52 pm
I hear you man, it's like we've been completely forgotten. Please guys, can we get a response here.
Title: Re: Community Builder integration
Post by: sync on March 30, 2007, 04:28:57 am
Hi all,

You haven't been forgotten I promise! We've just been really busy lately and haven't had time to update this project.

From what I've read in the last couple of pages of forum posts, there are likely 2 separate issues which appear when running VM 1.0.10 with CB and the plugin. These are:

1. Unregistered user, goes to checkout, create account, goes back to profile page not checkout (I can confirm this works in 1.0.9)

2. After registration and logging in, all shop categories are empty (again this worked in 1.0.9).

I will look into both of these issues ASAP and also update the plugin package with a hack for VM 1.0.10.

Thanks for all the useful feedback and bug investigation everyone!

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: MoonWizard on March 30, 2007, 09:58:33 am
Thank you very much sync!  :)
Title: Re: Community Builder integration
Post by: gregdev on March 30, 2007, 19:18:45 pm
2. After registration and logging in, all shop categories are empty (again this worked in 1.0.9).

Hi Ben,

Does the CB plugin add a correct record to the jos_vm_shopper_vendor_xref table? The new filter logic in shop_browse_queries.php (VM 1.0.10) requires correct data. If a user does not have an appropriate entry in that table, this scenario will occur.
Title: Re: Community Builder integration
Post by: Prescott Paulin on April 05, 2007, 04:02:42 am
Could someone please just post whether they are using the CB login module or the VM login module to let people register and login to the site??  Thanks in advance...
Title: Re: Community Builder integration
Post by: gregdev on April 05, 2007, 04:36:25 am
Does the CB plugin add a correct record to the jos_vm_shopper_vendor_xref table? The new filter logic in shop_browse_queries.php (VM 1.0.10) requires correct data. If a user does not have an appropriate entry in that table, this scenario will occur.

I took a quick look at your code and at Laurelle's correction (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=20001.msg73897#msg73897). Great job, Laurelle! Yes, the two queries needed to be swapped in the _saveVirtuemartInfo function. That should fix the missing entry problem in the jos_vm_shopper_vendor_xref table (which in turn causes empty categories).

EDIT: It actually looks like this particular solution (swapping the queries) was actually tug's (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=20001.msg71717#msg71717). Sorry I missed that. Thanks, tug!
Title: Re: Community Builder integration
Post by: tug on April 11, 2007, 10:52:09 am
another one bugfix for Laurelle's correction (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=20001.msg73897#msg73897)
When you try to change the shopper group it may be empty until you don't enter to the virtuemart.
Here is the fix in diff and ready to use file.



[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: gregwun on April 18, 2007, 06:34:08 am
Quote
Incorrect username or password. Please try again.
Registration Complete!
You may now login.

I've replaced the virtumart.php file in my plugins folder with the virtumart.php.2 (after i renamed it). However when I am checking out and trying  as a new customer I get a javascript warning that says incorrect username and password, then when I click that off I get the above error.

The site has SSL... what's the trick to get this CB registration to work from the Virtumart shopper end?
Title: Re: Community Builder integration
Post by: Comeskey on April 25, 2007, 08:13:50 am
Guys,

I'm using Joomla 1.0.12, VM 1.0.10, and CB 1.0.2.  And I installed the plugin and Tug's patch.  The patch solved the shopper groups problem.

But I'm still having a few small issues.  The biggest being that if I set Joomla Global settings to NOT allow user registrations, then VM shoppers without existing user accounts cannot checkout.  They get a 'you are not authorized to view this resource' message during checkout.

If I set Joomla Global settings to yes allow user registrations, then they can checkout, but new user registrations that are created during VM checkout are neither automatically confirmed nor approved by CB.

I've experimented with every combination of options between the Joomla Global settings and the CB registration settings and the VM hidden registration setting.  No matter what I do, Joomla Global must be set to yes in order for VM shoppers who are not already logged-in to checkout.  And like I said above, this gets them through checkout, but with accounts that are not approved or confirmed by CB.

Has anyone else experienced this problem?  Is there a way to allow real CB registrations during VM checkout?

The second (less significant) problem is affecting users who are creating new accounts through CB registration.  If I have CB email confirmation set to no, then they get a message that says 'invalid username or password.'  (This is the same issue referenced above in prev post, I think.)  If they ignore it and click through, everything works fine.  They just get this undesirable message.  If I set CB email confirmation to yes, then no bad message, all is fine.  I can leave email set to yes, no big deal for me.  But this seems to represent a problem that could perhaps be fixed by someone smarter than me.

Please share any insight.  Thanks!!
Title: Re: Community Builder integration
Post by: Sandy on April 27, 2007, 01:15:48 am
Could someone install this for me, for a fee? :-*

PM me!
Title: Re: Community Builder integration
Post by: anthony on April 27, 2007, 04:12:38 am
I'm using Joomla 1.0.12, VM 1.0.10, and CB 1.0.2. with the VMplugin and hack.
New User -> Shops -> Checkout -> Login = Success, all good!
Registered User -> Shops -> Checkout -> Login = Success, all good!

My problem is this:
Registered User logs in using CBLogin -> Shops -> Checkout = Logged in , Empty Cart

Would downgrading to VM 1.0.9 make a difference?
Can anyone shed some light on this?
Im going postal!!!!!!!

The problem seems to be with SSL. When I set Secure URL in VM to http:// everything works.
Whe its set to https:// I get the 'empty cart' issue. ???
Title: Re: Community Builder integration
Post by: gregwun on April 28, 2007, 22:35:09 pm
Add DENEBS SSL Fix to joomla 1.0.12 index.php. It's in another post...
Title: Re: Community Builder integration
Post by: DMA on May 01, 2007, 20:49:41 pm
Hi, Forge seems to be down...
Anyone know of a alternative download of this integration?
Title: Re: Community Builder integration
Post by: MoonWizard on May 05, 2007, 17:30:42 pm
Yes, Forge is down... is there any place to download the whole CB virtuemart integration with the code done by sync and all changes done by laurelle and tug?

In this page there isn't available the download...

http://www.e-motion.com.au/general/open-source/virtuemart-plugin-for-community-builder.html

Merci bien!! :-)
Title: Re: Community Builder integration
Post by: meisay on May 24, 2007, 10:58:05 am
I will look into both of these issues ASAP and also update the plugin package with a hack for VM 1.0.10.
Any word on new version? I also have empty categories...

Also what bugs and and/or requests are going to be avail?
This one would be absolutely great:
[#4278] Show actual registration info on VM checkout, not link
http://joomlacode.org/gf/project/vmart_cb/tracker/?action=TrackerItemEdit&tracker_item_id=4278 (http://joomlacode.org/gf/project/vmart_cb/tracker/?action=TrackerItemEdit&tracker_item_id=4278)


MoonWizard - the newest version can be downloaded here -> http://joomlacode.org/gf/project/vmart_cb/frs/ (http://joomlacode.org/gf/project/vmart_cb/frs/)
Title: Re: Community Builder integration
Post by: MoonWizard on May 24, 2007, 20:03:52 pm
Thank you!! I was expecting an answer.... :-)
Title: Re: Community Builder integration
Post by: Shae on May 30, 2007, 23:18:20 pm
Looking forward to hearing whether this will work with the latest virtuemart...I'll hold off on trying an install until you are able to test and update this thread. Thanks for working on such a great addition!
Title: Re: Community Builder integration
Post by: MoonWizard on May 30, 2007, 23:24:34 pm
Unfortunately, I installed this plugin and my joomla virtuemart crashed... no registration, empty categories... a pity... looking forward to a solution.
Title: Re: Community Builder integration
Post by: Wil.I.Am on June 07, 2007, 18:29:22 pm
Hi All,

How do i get with this plugin 2 more fields in it.

1 - Chamber of commerce number
2 - VAT number



Tia,

WIlliam
Title: Re: Community Builder integration
Post by: Mike C on June 08, 2007, 21:21:27 pm
I'm getting a new site set up. Thinking about using CB and I will be using Virtuemart, it would be nice to make everything easy for the customers to just have to register once on the site for everything (the site itself, the forum and the shopping cart)  This is a pretty long thread and it appears this integration for VM is still in Beta? Does it work "out of the box" ?
Title: Re: Community Builder integration
Post by: Kelly on June 28, 2007, 18:49:05 pm
all I need is to get users who are registered and approved in CB to automatically be added to a specific shopper group in VM.  Do I need to install this plug in to do that, or is there another way?
Title: Re: Community Builder integration
Post by: Dan on July 01, 2007, 07:21:25 am
So what's the news guys?

Clearly something must be happening!
Title: Re: Community Builder integration
Post by: nektarios on July 05, 2007, 23:36:38 pm
Hi,

I'm always amazed at how I find an obstacle with VM/Joomla, and someone else not only has the same problem, but write integration code to help everyone.  all of you contributing are amazing.

to my question:  has anyone successfully used CB/VM integration successfully with VM 1.0.10?
i'm dying to hear a success story.

or do I have to downgrade somehow to 1.0.9 to get it to work?

thanks
nektarios
Title: Re: Community Builder integration
Post by: Tom on July 19, 2007, 01:41:01 am
can anyone confirm the lastest plugin and hack work with 1.0.12??  in the file I D/L it was only test up to 1.0.9

thanks
Title: Re: Community Builder integration
Post by: g on July 20, 2007, 21:22:56 pm
Hi alls,

I have a symptom and I wonder if this is familiar to you all,

I have Joomla 1.0.12, Community Builder 1.0.2, and VirtueMart 1.0.12.

I have set the flags such that an unregistered person can begin shopping, fill the cart, proceed to checkout, enter billing information (user record is created and logged in here, i believe) and continue to checkout.

An email is sent to the user's email address with that user's email address as a user name, and a generated password to be used to log in.

If I log out the user and try to log back in using the password sent in the email, it tells me that the login information is invalid.

What'd I miss?

cheers!
-g
Title: Re: Community Builder integration
Post by: joomladude on July 30, 2007, 22:01:43 pm
I guess you are not using the right Login module. Try to switch to CB login modules and disable the default Joomla! login module. CB module is not installed automatically, so install it using the module installer.

JD
Title: Re: Community Builder integration
Post by: N6REJ on August 30, 2007, 19:05:16 pm
With 1.0.13 out and 1.5 on the horizon whats the situation with this?
Title: Re: Community Builder integration
Post by: RJ Scott on September 07, 2007, 14:27:30 pm
Hello everyone-
I apologize in advance if I am posting this in the wrong thread, but it is a Community Builder/registration question so I didn't want to start a separate CB integration thread.

Our site uses Joomla! 1.0.12, SMF Forums 1.1.3, and Community Builder 1.0.2. Registration is handled by CB and login is handled by mod_cblogin 1.0.2.

-We have a publicly accessible web site with special features and access available to our members, once they log in.

-The special features include
   -menu items that only show up after members login. This is controlled via the Joomla! group "Registered"
   -DocMan files that become visible after members log in and if they are in the applicable DocMan group. This is controlled via DocMan attributes.
   -Zoom content that becomes visible after members log in. This is controlled via Zoom attributes (when they're working properly...)

-We want to sell products to the general public without giving them the ability to access these special features.

As I see it, any special features that rely on the Joomla! based "Registered" setting will be available (visible) to everyone who purchases a product from our site due to the registration requirement in VM. 

If there is a way to disassociate VirtueMart registration from Joomla! "Registered", I think that would solve my issue. However, I think the real fix would be to disassociate menus and any other members only content from Joomla! "Registered". Does anyone have any thoughts on this?

Thanks in advance for the input.
Title: Re: Community Builder integration
Post by: N6REJ on September 28, 2007, 00:24:29 am
You can easily seperate Virtuemart and Joomla logins.  Both programs come with a "Mod Login" module.  You might check on the integration though as I THINK I remember soren saying the two user bases are kept seperate now.  And that VM simply puts a link-over to the joomla user.  But I don't see any reason why you couldn't make them entirely seperate.
Title: Re: Community Builder integration
Post by: RJ Scott on September 28, 2007, 13:03:36 pm
You can easily seperate Virtuemart and Joomla logins.  Both programs come with a "Mod Login" module.  You might check on the integration though as I THINK I remember soren saying the two user bases are kept seperate now.  And that VM simply puts a link-over to the joomla user.  But I don't see any reason why you couldn't make them entirely seperate.
Hi Troy-
Are you responding to my question in the post (« Reply #104 on: September 07, 2007, 14:27:30 pm »), just before this one? If so, I am using the CB login and registration and not Joomla's or Virtuemart's.
Title: Re: Community Builder integration
Post by: matrix845 on October 04, 2007, 01:08:09 am
This is a new link for the project


http://joomlacode.org/gf/project/vmart_cb/frs/
Title: Re: Community Builder integration
Post by: sync on October 17, 2007, 07:57:03 am
Ok sorry all about the long delay, but there's a new version for testing:

http://joomlacode.org/gf/project/vmart_cb/

Tested on Joomla 1.0.13, CB 1.1, and VM 1.0.13a, this is a new release. Please test thoroughly as much has changes in the underlying components and also functionally in the plugin so there may be errors which need to be addressed.

EDIT:

A little more info (sorry I've been rushed for time and I thought it was better to get something out for feedback rather than leave it half-developed on my computer!):

- This version has been tested on the latest versions of things and seems to work well in my so far fairly limited testing.
- A couple of outstanding bugs have been fixed; the redirect to checkout bug when registering through VM at the checkout; and the login issues when using the newer versions of VM and CB together
- Several smaller items have been addressed too, like the VM ENCODE_KEY is now pulled from the VM config.
- The VM rego pages now use the actual CB rego form, which I think is a more consistant look across the site and also should make updating the plugin easier as we don't have to worry about two things editing the user details
- I've updated the JoomlaCode site so the bugtracker is now up to date. There are numerous smaller bugs still to fix and some feature requests to implement, but nothing critical so I felt a release of this version as a beta would be handy for some!
- YMMV so please be careful, as mentioned there's been a lot of changes in the underlying components used.

There are two 'hack' files for VM 1.0.13a; just copy these over the files in /administrator/components/com_virtuemart/html/.

I'll post up a tentative roadmap on the JoomlaCode site soon so everyone can see what's planned for the next releases.

Cheers all..
Title: Re: Community Builder integration
Post by: jscutler on October 17, 2007, 15:48:52 pm
Hi, thanks for helping with this.

Quick question on new plugin. I'm not sure if I'm reading your post right.

Does this fix the issue when new user registers at checkout and then gets redirected to CB profile page instead of back to cart/payment page?

I'm asking because I just installed it and had the same thing happened. I'm wondering if I did something wrong or if this fix just wasn't designed to do that specific thing.

Thanks.
Title: Re: Community Builder integration
Post by: Teodor Andrei on October 17, 2007, 21:38:35 pm
Same problem here, user are redirect to profile instead of their shopping cart

More, after user click on registration link they get both messages: "Incorrect user or password" and also "Your account has been activated. You may login now" same time ???

I use VM 1.0.13a, Joomla 1.0.13, CB latest, and cb_vm_plugin_1.0.10

Please help

Thanks
Title: Re: Community Builder integration
Post by: Teodor Andrei on October 17, 2007, 22:48:27 pm
I solve problem with redirect to user profile, must remove link for redirect at first login  from Community Builder configuration.

For second problem, I have to disable email verification to solve it

Now, everything seems to be ok..or not? How safe is to auto login users after they register and not use email verification option? Can i use this option with VM/Joomla/CB all  together?

More problems: let's say a user want to modify shipping address; after modification, user is redirect to profile instead of shopping cart

Old users cannot access checkout page, they cannot register in Virtuemart untill they complete data in profile section

Thanks
Title: Re: Community Builder integration
Post by: jscutler on October 18, 2007, 00:42:28 am
I had the same issue with users getting both conflicting status  on same page.

There is a hack done by someone on this board that fixed it for me.

I can't remember where I got it, but it had to be in one of these threads . It was a woman's user name is memory serves.

Sorry I cant be more specific.
Title: Re: Community Builder integration
Post by: jscutler on October 18, 2007, 00:59:31 am
Hi, thanks for helping with this.

Quick question on new plugin. I'm not sure if I'm reading your post right.

Does this fix the issue when new user registers at checkout and then gets redirected to CB profile page instead of back to cart/payment page?

I'm asking because I just installed it and had the same thing happened. I'm wondering if I did something wrong or if this fix just wasn't designed to do that specific thing.

Thanks.

I must have not emptied my cache the first time because I just reinstalled this plug in again and it worked great. The new user was able to register right on the same screen and then continue along with order.

 I haven't played it with too much yet to see if there are any bugs, but looks great.

I know alot people having been waiting for this CB-VM integration to finally work as it should and this solution seems like the best thing yet.

Great job, thank you!!
Title: Re: Community Builder integration
Post by: sync on October 19, 2007, 00:58:00 am
I solve problem with redirect to user profile, must remove link for redirect at first login  from Community Builder configuration.

Yes I forgot to mention that - that CB setting takes effect after logging in, so if there's a value there it will take effect after an in-checkout login.

jscutler, this may have been what was causing your problem too?

For second problem, I have to disable email verification to solve it

I thought I'd fixed that issue, but please log it as a bug on the JoomlaCode tracker and I'll check it again for the next version.

Now, everything seems to be ok..or not? How safe is to auto login users after they register and not use email verification option? Can i use this option with VM/Joomla/CB all  together?

Hmm I can't say how safe that is; that's probably up to you and the users of your site. But you should definitely be able to use these options with VM/CB/Joomla, although there may be a bug or two you've run into preventing it from working properly. However I was testing with both auto-login and verification emails on and the CB verification email was working OK for me.

More problems: let's say a user want to modify shipping address; after modification, user is redirect to profile instead of shopping cart
Ok good call I don't think I tested that, again can I get you to log this on the tracker please so I don't forget to test it on the next version!

Old users cannot access checkout page, they cannot register in Virtuemart untill they complete data in profile section
I'm not following you 100% here, can you explain a little more and if this is an issue with the plugin and not how VM works then please log on the tracker!

Thanks for the feedback all!
Title: Re: Community Builder integration
Post by: sync on October 19, 2007, 00:59:35 am
I must have not emptied my cache the first time because I just reinstalled this plug in again and it worked great. The new user was able to register right on the same screen and then continue along with order.

Thanks jscutler. It could have been a caching issue, or might have been to do with the CB first-login setting (in Config>Registration); if it's repeatable let us know here and log on the tracker, but I'm glad it's working out so far for you!

Cheers
Title: Re: Community Builder integration
Post by: Teodor Andrei on October 19, 2007, 09:26:11 am
Hello sync and thanks for sharing your work

English is not my native language so i'll try to explain best i can:

Quote

Quote
Old users cannot access checkout page, they cannot register in Virtuemart untill they complete data in profile section

I'm not following you 100% here, can you explain a little more and if this is an issue with the plugin and not how VM works then please log on the tracker!

Thanks for the feedback all!


My online store was added after i start my site; meanwhile, i have some users who are registered without filling information about their shipping address. If one of this users want to buy something from my online store, they receive this message:

You are not a Registered Customer yet. Please provide your billing information

You are not authorised to view this resource


Why i think it's about plugin: because this problem doesn't appear when i disable plugin and use old VM files (account billing and checkout register form)

Could be a problem about buyers group? New users are show different then older users (see attachement)

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: sync on October 22, 2007, 00:47:04 am
Could be a problem about buyers group? New users are show different then older users (see attachement)

Thank you very much for your clear explanation of the problem Teodor! It definitely sounds like an issue with the plugin, I'll investigate this as soon as I have time to work on the plugin for the next release.

Thanks again for all your comments!
Title: Re: Community Builder integration
Post by: jscutler on November 02, 2007, 02:55:44 am
Quote
You are not a Registered Customer yet. Please provide your billing information

You are not authorised to view this resource

I have the same issue.  A simple fix would be to be add a link right underneath that back to the profile page so user could add the necessary info.

If anyone knows how to do that please post, thanks.

Title: Re: Community Builder integration
Post by: Moofaster on November 12, 2007, 08:30:14 am
Hi there Guys

I too have this problem i have added the plugin from http://www.e-motion.com.au , it works well when i have a new user that joins the site , at the time the register for a account the have the option to add there shipping details i dont have it as a required feild, some members dont like to fill this out  as the are joining for the community side of things , on testing i found if a member didnt fill out  shipping details the could do this @ a later stage but only through the  cb plugin by emotion but the couldnt just go through to shipping check out as it asked them for the same details but as we know it doesnt work on submit. just flicks to a different page

1st 

Problems  i get is when the join the get this error
Incorrect username or password. Please try again.
Registration Complete!
  You may now login.      i can live with this for the short term

2nd 
the users that have been members since day one can not edit there shopping info though the cb plugin at  all , I can added there details through the back end of the site of virtuemart , but this does not update the cb plugin , so when the go to the cart it still asks for there address and stuff

Settings i have tried about all of them using joomla global config Using  New Account Activation on and off ,Allow User Registration to no and just use cb settings only ,

It seems to be the check out page of virtuemart  is where it all falls over , can not write to the config or talk to the cb plugin side of things
I am hoping there is a fix , i am about to ask some freelancers  to take a look in the next few days and hope the can sort it . But i thorough i would post in here if someone might have a update.

Title: Re: Community Builder integration
Post by: Darryl on November 26, 2007, 03:06:30 am
I'm taking a different approach to integrating Community Builder and Virtuemart.  Please give me feedback since I'm still in the testing phase of this change.

My goals were:

I configured everything in Joomla and Community Builder the way I wanted, then setup Virtuemart.  The issue I ran into was that the user, after checking out, was not able to edit their profile since there was no entry in the comprofiler table.  So what I did was to simply add a database trigger as shown below (must be running MySQL 5.0.2 or greater). 

Code: [Select]
CREATE TRIGGER member_after_insert AFTER INSERT ON jos_users
FOR EACH ROW INSERT INTO jos_comprofiler SET `id`=NEW.id, `user_id`=NEW.id;

I plan to add more fields from the registration based on the Virtuemart table, so please understand that this is just a start.  I will also add an AFTER UPDATE trigger once I add the extra fields.

Perhaps there are others with similar needs and objectives, so I hope this may help.  It's nice too to not have code mods which are a pain.  Of course database table changes are still a risk, although much less frequent.

Please share your thoughts.  If you think this idea merits its own thread, please let me know that as well.


thanks,

Darryl
Title: Re: Community Builder integration
Post by: ibrent on November 26, 2007, 16:46:31 pm
darryl,

Sounds like you're on the right track here. That's the way I want it to work as well. If you have a diff/tar/plugin that does this and you'd like some help with it, I'd be able to throw in a few hours of debugging or whatever.

Thanks,

Brent
Title: Re: Community Builder integration
Post by: kraksa on November 30, 2007, 11:25:51 am
Hi,
when working on the CB and VM integration have you considered to give a possibility to the registered users with storeadmin permission to insert new products to the VM shop through the CB profile panel? Just wondering if it is possible to add the VM front-end ADMIN link in the CB profile panel.

Any suggestions higly appreciated!
Thanks a lot
Title: Re: Community Builder integration
Post by: kane357 on December 05, 2007, 16:32:23 pm
Are there any new shopper group hacks for the new version of cb and virtuemart.

I really need to fix this for my new site.
Title: Re: Community Builder integration
Post by: wrongjon on December 17, 2007, 23:21:27 pm
Hi
Ive been working on my first Joomla project and in 5 weeks have had to build a community site that was meant to go live today! :-\

I really need it live this week and all good except the final integration of VM and CB.

Ive been searching these forums and am reading your posts so it sounds like you know about all this stuff.

I really would keep reading but I dont haveteh time here and just want someone to point me in the direction of teh latest solution.

My client needs:

GUESTS can browse site but not access restricted areas (forum etc) which Joomla restricts to REGISTERED ONLY.

MEMBERS sign up via AEC to one plan £45 annual fee.  They get access to all joomla, forums etc

No as their is only one REGISTERED user account type...  I;m assuming once I do find a way to get shoopers to regsietr via CB they will also become REGISTERED and thus MEMBERS so wil get free acces sto paid areas?

So what I need.....

1) VM integration to CB so shoppers can checkout.... and existing or new paid members can shop without logging in or entering name address etc again.

2) Way to stop GUEST shoppers from being REGISETRED status and getting to paid areas.  (Do I need JACL Plus fo rthis last part?)

3) I know there is an AEC MI (micro integration) that can assign new MEMBERS to shopper groups so I could assig them as gold shoppers to give discount.

Sorry to ramble but and feeling the pressure..now....  its all still running locally so have to sort all this, get it on web server test, emails, HTTPS, and havent looed at SEF yet.

So even if you can just point me in the right direction that would be a great start to save me time on that... another other advice greatly appreciated.... 

Thanks
Jonathan
Title: Re: Community Builder integration
Post by: wrongjon on December 18, 2007, 03:55:57 am
OK its 3am!!!  Been at it since 9am!  This client better pay up!  ;D

I have JACL installed now and have created a new GROUP called members, with Public/Registered access

Ive lowered the registered group to just have public access

Ive applied the VM/CB integration and hacks and looking good so far (apart from the obvious check out page glitch)

So my next task when i wake up is to try and get AEC to force people joining the club through CB registration to choose the paid PLAN and assign them to the new members group and hopefully a members VM shopping group (for discounts)

Anyone done this with AEC yet....  Im not sure if this will screw up VM if I force all regsitration to pick a plan!  unless I offer a FREE I just wanna shop plan?

ANyways - enough for one day

night guys
 ;)
Title: Re: Community Builder integration
Post by: staein on December 18, 2007, 19:43:35 pm
Is it possible to add VM user info to the Community Builder registration email sent to admins? I'd like to make it so that my client could print the e-mail that gets sent to admins after registration and have the users full contact information.

I know that you can add additional CB fields to default_language.php at lines 165ish. Is there a way to add VM fields?

Here's the code I'm referring to, and would like to mod, in default_language.php:

Code: [Select]
DEFINE ('_UE_REG_ADMIN_PA_MSG','A new user has registered at [SITEURL] and requires approval.\n'
.'This email contains their details\n\n'
.'Name - [NAME]\n'
.'e-mail - [EMAILADDRESS]\n'
.'Username - [USERNAME]\n\n\n'
.'Please do not respond to this message as it is automatically generated and is for information purposes only\n');

Thanks for any help!
Title: Re: Community Builder integration
Post by: Darryl on December 18, 2007, 22:04:38 pm
wrongjon -- did you read my post above?  if you want people who buy from the store to be automatically registered in Community Builder, this is a simple way to go.

Darryl
Title: Re: Community Builder integration
Post by: wrongjon on December 18, 2007, 22:39:34 pm
Thanks daryl
Ive now implemented the vm/cb hack as i also want CB paid members to be able to shop...  but also be put in a special JACL group called members... otherise theyll all just be registered and have access to all areas...

im about to test this  and look at AEC tonight....  if it fails ill look at your option

thanks
Title: Re: Community Builder integration
Post by: aubrey on December 19, 2007, 01:32:50 am
I am looking to hire someone to help me finish setting up a very simple VirtueMart Shopping Cart (an addition to existing joomla site) and to help with integration of Community Builder and VM.  ANy interest?  contact me admin (at) tricows.com
Title: Re: Community Builder integration
Post by: Datatonic on December 19, 2007, 20:36:31 pm
Hii, seem to have it all working nicely, but I would like to handle registration like this:-

User comes to site - registers - registration page displayed shows only Name, Username and Password fields.  Nothing else is shown.

User comes to site - puts goods in basket - goes to checkout - full virtuemart fields are shown?

Any pointers???

Many thanks.
Title: Re: Community Builder integration
Post by: Datatonic on December 19, 2007, 20:56:50 pm
Also when making the Virtuemart Fields optional, when logging in during checkout you get the following:-

You are not a Registered Customer yet. Please provide your Billing Information.
You are not authorised to view this resource.

Any pointers?
Title: Re: Community Builder integration
Post by: wrongjon on December 20, 2007, 03:10:33 am
Guys

Mine seems to be working (its another late one 2am!!)

Only issue is I also have to disable the "Email confirmation facilityin CB"

Otherwise when i register all goes well.. says check your email - which i dont do as all running locally so far...

So I log in to admin community builder area and go to that new user and mark as unblocked and confirmed....

Then if I check the VM user table - it has now removed the user from the shoppers PERMS setting.....  but they have that setting before I approve/confirm in CB?

Why would confirming the email in CB remove them from VM shopper?

Any ideas...  havent slept before 2am for weeks on this! :o)
Title: Re: Community Builder integration
Post by: wrongjon on December 20, 2007, 13:02:44 pm
Hi

I am using cb_vm_plugin_1.0.10

OK ive now realised that if I edit any user via the community builder user area and save (even a name, telephone change) it removes that virtuemart user from the default shopper perms group!

In debug mode I get this error "components\com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 212 Notice: Undefined index: perms in"

and com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 240 Notice: Undefined index: vmart_shopper_group_id in

and com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 263 Notice: Undefined index: vmart_customer_number in

I dont have any shopper group drop downs in the CB admin so is that why... its missing that data?

This line is the error in virtuemart.php

// Include perms data if sent from admin section
      if ( $isAdmin ) {
         $q .= ' , `perms` = "'. $_REQUEST['perms'] . '"';
      }



Is there another fix ive missed... please help going live any day!



Title: Re: Community Builder integration
Post by: Datatonic on December 20, 2007, 13:45:16 pm
I've managed to hack my way around this.  I would still like to be able to authorise users but you can't win them all.

Would appreciate any comments on my implementation.

http://www.instantspeedreading.co.uk

Many thanks.
Title: Re: Community Builder integration
Post by: El Fanjo on December 21, 2007, 13:46:19 pm
Hi everyone,

I have a solution to submit, this is not perfect so far but it works. I will update it later but basically when someone registers through the shop it automatically sync community builder on email confirmation (the sync is pretty much the one you would use in CB administration).

Backup first... here goes :
- First you need to remove the joomla login module from ALL the pages and only use CB one (I suppose that everyone is doing just that as we are all trying to integrate VM to CB...)

- Next open components/com_registration/registration.php, around line 270
BEFORE
Code: [Select]
if ($result) {
$query = "UPDATE #__users"
. "\n SET block = 0, activation = ''"
. "\n WHERE activation = " . $database->Quote( $activation )
. "\n AND block = 1"
;
$database->setQuery( $query );
if (!$database->query()) {
if(!defined(_REG_ACTIVATE_FAILURE)) {
DEFINE('_REG_ACTIVATE_FAILURE', '<div class="componentheading">Activation Failed!</div><br />The system was unable to activate your account, please contact the site administrator.');
}
echo _REG_ACTIVATE_FAILURE;
} else {
echo _REG_ACTIVATE_COMPLETE;
}
} else {
echo _REG_ACTIVATE_NOT_FOUND;
}
AFTER
Code: [Select]
if ($result) {
$query = "UPDATE #__users"
. "\n SET block = 0, activation = ''"
. "\n WHERE activation = " . $database->Quote( $activation )
. "\n AND block = 1"
;
$database->setQuery( $query );
if (!$database->query()) {
if(!defined(_REG_ACTIVATE_FAILURE)) {
DEFINE('_REG_ACTIVATE_FAILURE', '<div class="componentheading">Activation Failed!</div><br />The system was unable to activate your account, please contact the site administrator.');
}
echo _REG_ACTIVATE_FAILURE;
} else {
/* HACK TO TIE VM REGISTRATION TO CB */

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

/* END OF HACK */
echo _REG_ACTIVATE_COMPLETE;
}
} else {
echo _REG_ACTIVATE_NOT_FOUND;
}

Basically what it does is launch the sync process after confirmation , now CB tables are automatically updated wherever people register  ;D

I haven't tested it much so please let me know how it goes for you guys.
Title: Re: Community Builder integration
Post by: staein on December 23, 2007, 22:51:48 pm
Also when making the Virtuemart Fields optional, when logging in during checkout you get the following:-

You are not a Registered Customer yet. Please provide your Billing Information.
You are not authorised to view this resource.

Any pointers?


I had the same issue but have made a temporary work around. If you go to /administrator/components/com_virtuemart/languages/<language>.php at around line 69:

Code: [Select]
var $_PHPSHOP_NO_CUSTOMER = 'You are not a Registered Customer yet. Please provide your Billing Information.'
I just changed what was between the 2 ' to:

You have not yet provided your address. Please do so by clicking on <a href="CB Profile Edit link">Edit Your Contact Info</a> from the Community menu. Then click on the Store menu item to return. If you have any questions, please e-mail us at <e-mail address link> or call <phone number>.

So my line 69 looks like:

Code: [Select]
var $_PHPSHOP_NO_CUSTOMER = 'You have not yet provided your address. Please do so by clicking on <a href="CB Profile Edit link">Edit Your Contact Info</a> from the Community menu. Then click on the Store menu item to return. If you have any questions, please e-mail us at <e-mail address link> or call <phone number>.'
Title: Re: Community Builder integration
Post by: Datatonic on December 28, 2007, 21:48:20 pm
@STAEIN

Exactly what I did - should have posted this but under a deadline.

Thanks.

Rowan.
Title: Re: Community Builder integration
Post by: JonathanNZ on January 06, 2008, 14:28:22 pm
Thanks Staein,
Looks like a good way to get around this.
Cheers,
Jonathan
Title: Re: Community Builder integration
Post by: MGLorencin on January 19, 2008, 20:41:20 pm
I am not some developer but I tried what I could to solve this problem many here have.

1.) When you click on conformation link you get two messages.
Your name and password are not correct
You activation is successful, you can login.

To solve this I went to
>> components\com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php

at line 591
Code: [Select]
// Get the default setting
$afterRegoLogin = $this->params->get('afterRegoLogin' , 1);
// If we set this to 'no', don't do anything in this function

and only changed to that number  1    to   number   0

Code: [Select]
// Get the default setting
$afterRegoLogin = $this->params->get('afterRegoLogin' , 0);
// If we set this to 'no', don't do anything in this function

2.) This didn't help when you wanted to do your first login. I still got the message that I am not authorized to view this page, please log-out. Of course if I didn't log out and would only navigate around everything would be OK, but I had to do some work around. Unfortunaly that hack in registers.php didn't help me ...so for now the only temporary solution was to assign some redirect URL when you first log.

In my case I just had to go to in administration to  modules menu > find module   mod_roklogin   as I am using that one for login, and I just entered URL where to redirect when you sing in.

Unfortunaly now I always get redirected to same URL when I log-in, I choose URL for user profile...

Anyway I am happy for now, seems to work ok on my site. Maybe my solution will help some of you ...but I still find it amazing that this thread goes in circles. I searched everywhere; all sites seem to refer to this thread.

Title: Re: Community Builder integration
Post by: kevalin on January 22, 2008, 12:00:36 pm
The Differences of 1's and 0's. 
When I use the code wtihout modification from the above post

// Get the default setting
$afterRegoLogin = $this->params->get('afterRegoLogin' , 1);
// If we set this to 'no', don't do anything in this function

People get the error message your name and password are not correct, but if they press ok they are logged in and have the cart that transfered with them and they log out.

When I apply the code change from the 1 to the 0. Now people are taken back to the login area and have to login, but they lose their cart contents and have to repopulate the cart. Right now I have had to decide between the two evils, and decided to leave it at 1.

If someone has a fix for this, I would ultimately like to have it where people can fill out the registration, have their cart ported with them when it logs them in, and they can just check out. Right now I have that, minus the error message that comes that says incorrect username and password.

I have looked around the board and have tried various hacks, and so far no luck. So any advice is welcomed.

I am using Joomla! 1.0.13 Stable , VirtueMart 1.0.13a stable, Community Builder 1.1, Simple machine forums, and the hack to bridge VM and CB together. Everything is working, except the issue I posted above

Title: Re: Community Builder integration
Post by: Trinners on January 24, 2008, 02:57:07 am
Hi, I've been trying to implement the vm plugin for cb and have the following issue that I'm hoping someone might be able to help solve or shed some light upon.

Prior to the plugin installation, there were ~1400 users in *_users and *_comprofiler. Since implementing, a few users have been added. These new users work great with the plugin, however, prior users that were not already in the perms>shopper group seem to be exiled from being able to order. In total there are ~380 users in *_vm_user_info.

Neither the user nor the admin is able to go into cb and modify the user profile to include the perms group>shopper or add the shipping information since none of these users exist in *_vm_user_info. The only way around this at the moment is to go into the Joomla Admin backend > VM > Users and change the perms group in the contact tab. The page associated with this function is admin.user_login.php.

I've looked at the sql in that file, but am unable to determine if there is a query that can be constructed that would compare the id in *_vm_user_info with the ids in *_users, ignore the duplicate ids, and insert the appropriate information into *_vm_user_info for each users in the backlog so that they are sync'd.

Did I do something wrong or is this normal? Does anyone know how to sync the user ids in *_users and *_vm_user_info?
Title: Re: Community Builder integration
Post by: Laurelle on January 26, 2008, 05:23:25 am
Hello,

Here are the code changes needed to get the shopper group working properly. Currently, when a new user record is added, the user is not added to the vm_shopper_vendor_xref table, so they don't have a shopper group and in the admin area you can't update it.

In components/com_profiler/plugin/user/plug_virtuemart/virtuemart.php make the following addition after line 170:
You will currently see this code:
Code: [Select]
if ( $insert ) {
// Insert record into Virtuemart users
$q = 'INSERT INTO #__vm_user_info SET `user_id` = "'. $user->id .'" , `user_info_id` = "'. md5( uniqid( _ENCODE_KEY )) .'" , `address_type` = "BT"';
$database->setQuery( $q );
$database->query();
}
Before the end curly bracket add this code, so you have the following code:
Code: [Select]
if ( $insert ) {
// Insert record into Virtuemart users
$q = 'INSERT INTO #__vm_user_info SET `user_id` = "'. $user->id .'" , `user_info_id` = "'. md5( uniqid( _ENCODE_KEY )) .'" , `address_type` = "BT"';
$database->setQuery( $q );
$database->query();

// addition - we also need to add a record to the shopper group table for this user
// Prepare default shopper group
$q = "SELECT * FROM #__vm_shopper_group WHERE `default`=1";
$database->setQuery($q);
$database->query();
$database->loadObject( $result );
$vm_sgi = $result->shopper_group_id;
$vm_cn = uniqid( rand() ); // Prepare default customer number
$q  = "INSERT INTO #__vm_shopper_vendor_xref ";
$q .= 'SET user_id="'.$user->id.'", vendor_id="1", shopper_group_id="'.$vm_sgi.'", customer_number="'.$vm_cn.'"';
$database->setQuery( $q );
$database->query();
}

You also need to fix the admin Insert command for the shopper group:
at line 270 you have the following code:
Code: [Select]
if( sizeof($database->loadRowList()) < 1 ) {
// Insert Shopper -ShopperGroup - Relationship
$q  = "INSERT INTO #__vm_shopper_vendor_xref ";
$q .= "(user_id,vendor_id,shopper_group_id,customer_number) ";
$q .= "VALUES (".$user->id.", $vendor_id,".$vm_sgi.", ".$vm_cn.")";
}
Change it to:
Code: [Select]
if( sizeof($database->loadRowList()) < 1 ) {
// Insert Shopper -ShopperGroup - Relationship
$q  = "INSERT INTO #__vm_shopper_vendor_xref ";
$q .= 'SET user_id="'.$user->id.'", vendor_id="'.$vendor_id.'", shopper_group_id="'.$vm_sgi.'", customer_number="'.$vm_cn.'"';
}

One other problem that I found was to do with the "You are not allowed to view this resource" message the user receives when they are in checkout, they login but don't have their billing information filled in yet.
In administrator/components/com_virtuemart/html/checkout_register_form.php, this hacked file assumes that this code is only called on new registration, but it is also executed when a current user logs in, but has no billing information. To get the billing information tab to display, so the user can update it you need to change line 6 from this:
Code: [Select]
$task = 'registers';

to this:
Code: [Select]
if ( $my->id ) {
$task = 'userDetails'; // Update billing information
} else {
$task = 'registers'; // Register the new user
}

This solution still has the problem that the user is returned to their profile after they add their billing information instead of staying in the checkout flow. If anyone has solved that problem yet, please post it.

Good luck.
Title: Re: Community Builder integration
Post by: Trinners on January 29, 2008, 03:52:15 am
Wow! Thank you so much. I have made the changes to the pages and will be testing tomorrow. I am most appreciative of the time and effort you spent on this and for sharing!  ;D
Title: Re: Community Builder integration
Post by: Acker on January 29, 2008, 13:15:29 pm
Hi!

Thx for this great plugin. I have question concerning the country selection. Is it possible to define a country, that will be preselected when a customer starts the registration? At the moment no country is selected by default.

Best regards,
Acker
Title: Re: Community Builder integration
Post by: Comeskey on January 29, 2008, 15:57:02 pm
Laurelle,

Thanks for the fixes!

I wonder if you might be able to help me with another matter with the plugin.

I am trying to add a county drop-down list to the plugin's user registration form so that I can comply with my state's (OH) destination-based sales tax law.

So far, I have been successful in creating an array to pull counties as a function of state.  And I was successful in creating a county field and a drop-down box.  But so far, my drop-down box is empty.  I cannot manage to populate the box with the array data.  I'm guessing that I am missing something in the onchange function from the state list.

Full details of my efforts are posted here:
http://forum.virtuemart.net/index.php?topic=35464.0 (http://forum.virtuemart.net/index.php?topic=35464.0)

I am stuck, so any insight at all is greatly appreciated!  Thanks!!
Title: Re: Community Builder integration
Post by: Laurelle on February 02, 2008, 19:19:44 pm
Hello,

I found another problem with the plugin. When an admin edits a user in CB in the backend, their 'Group' permission as 'shopper' is removed (not their 'Shopper Group' as '-default-'). Then when the user tries to login they will get the login form coming up again asking them to login even though they are already logged in.

In my case, I do not have different permissions for the Group, just the 'shopper' permission, so this fix will default everyone to 'shopper'. If you are using different permissions for Groups, then you will have to modify this fix. Edit virtuemart.php in the plugin/user/plug_virtuemart file. After this code (around line 216):

Code: [Select]
// Make sure we meet the minimal requirements
if ( $firstname == '' ) $firstname = '.';
if ( $lastname == '' ) $lastname = '.' ;

Add the following code, so you have:
Code: [Select]
// Make sure we meet the minimal requirements
if ( $firstname == '' ) $firstname = '.';
if ( $lastname == '' ) $lastname = '.' ;

if ( !isset($_REQUEST['perms']) ) {
$_REQUEST['perms'] = 'shopper'; // set default shopper permission
}

Note, if you want to default any of the fields to a particular value, like the country or state, you can add similar code as defaulting the shopper permission above. For example:

Code: [Select]
if ( !isset($_REQUEST['vmart_address_state']) ) {
$_REQUEST['vmart_address_state'] = 'XX'; // set default province - change XX to the proper state code
}

Good luck.
Title: Re: Community Builder integration
Post by: akerman on February 03, 2008, 16:05:24 pm
Hi,

question to "El Fanjo":

"Next open components/com_registration/registration.php, around line 270"

I was trying to find the equivalent location/file (registration.php) in my setup of Joomla 1.5 Stable, VM 1.1.0-beta2 and CM 1.1 - Do you have any idea where I can find it?

I've implemented "Laurelle" hacks and most things seems to work ok.
There are some glitches here and there though, which is expected. The most serious one I have right now is when
trying to reach the "cashier", after I've been shopping without logging in. I get thrown out to a blank page that states:

New customer? Fill in your accountinformation below

Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/components/com_comprofiler/comprofiler.php on line 31

Title: Re: Community Builder integration
Post by: El Fanjo on February 04, 2008, 13:32:33 pm
@Akerman :
That is a good question... I wasn't aware that com_registration has changed on 1.5  :-\ Try to make a search on elements of the original code maybe.
Please note that the solution I posted is a standalone one and might not work with others solutions mentionned in this thread. Yet this one works ok for me on J! 1.0.13.

One more thought : I think that VM 1.1 is improving its registration field management i.e. it will allow decent sync with CB. With J! 1.5 all those hacks might not work the same / work at all. There might be a "cleaner" method to do it with the latest release of VM & CB.
Title: Re: Community Builder integration
Post by: sync on February 05, 2008, 02:46:59 am
Hi all,

Thanks so much for the great input everyone.

Firstly, sorry about the delays on this, we've been so busy! I'm hoping to get time to continue work on this either today or later this week, but in case I don't here's a quick release with some bugfixes.

Although I haven't had time to reply in a while, I've been reading everything and incorporating fixes where I can. There's a new 1.0.11 release up, the main items here are Laurelle's numerous shopper group/incomplete user info fixes (these were *awesome*, thanks Laurelle!), Jim's ENCODE_KEY typo, and I think I've nailed down and fixed the issue with activation errors. As noted above it's an issue with the postRegoLogin function which worked previously; I've disabled this function completely, and if activation is off login during checkout seems seamless. With activation on it works ok although users are taken back to the homepage, which I hope to fix soon (see tracker item - ideally I'd like them to be taken back to the page they registered on).

http://joomlacode.org/gf/download/frsrelease/6664/21619/cb_virtuemart_plugin_0.1.11-unzip-first.zip

YMMV so make sure to test first! It's been tested on CB1.1/Joomla1.0.13/VM1.0.14 and a site with VM1.0.13a as well, but that's no guarantee it will work on your particular setup :|

Also, some people have applied to join the project - I've tried to accept these but there's an issue with JoomlaCode, the admins are trying to fix it for me. As soon as it works I'll approve all join requests.

Cheers!
Title: Re: Community Builder integration
Post by: Comeskey on February 14, 2008, 06:09:35 am
Ben,

First, I think the new plugin is mislabeled.  You mean 1.0.11, not 0.1.11, right?

Second, using 1.0.11 with VM 1.0.14 and J1.0.13, I am getting this error when a logged user checks his/her profile:
Quote
Fatal error: Call to undefined function vmIsAdminMode() in /usr/www/users/belnet/sps/administrator/components/com_virtuemart/classes/ps_html.php on line 241

I guess this is probably a problem with VM 1.0.14, not the plugin!  Will check it out...
Title: Re: Community Builder integration
Post by: sync on February 14, 2008, 06:18:35 am
Ben,

First, I think the new plugin is mislabeled.  You mean 1.0.11, not 0.1.11, right?

Second, using 1.0.11 with VM 1.0.14 and J1.0.13, I am getting this error when a logged user checks his/her profile:
Quote
Fatal error: Call to undefined function vmIsAdminMode() in /usr/www/users/belnet/sps/administrator/components/com_virtuemart/classes/ps_html.php on line 241

Hey Comeskey,

No 0.1.11 is right; I began versioning at 0.1.x. When it's decently stable I might bump it to 0.2 - but it's still in beta AFAIAC.

Re that error - I haven't seen that and I've tested with the same versions. Are you sure the plugin caused the error? Could you try unpublishing the plugin/uninstalling it and seeing if the error still exists?

Thanks!
Title: Re: Community Builder integration
Post by: Comeskey on February 14, 2008, 06:26:22 am
You are reading my mind - that is what I just finished!  ;D

Unpublishing the plugin removed the error.

I found another recent post in the forum from somebody with the same issue.  I'll go find it and then update this post with the link.
Here it is:
http://forum.virtuemart.net/index.php?topic=36203.0 (http://forum.virtuemart.net/index.php?topic=36203.0)

Quote
No 0.1.11 is right; I began versioning at 0.1.x.

Sure enough, sorry about that.  I must have mislabeled it when I saved 0.1.10.  Now I have both of them mislabeled...At least I am consistent, I guess.
Title: Re: Community Builder integration
Post by: Comeskey on February 14, 2008, 07:03:10 am
Ben,

Another thing about this error is that I only get it from the CB login module, not from the store.

Maybe a function of the upgrade?  I'll try unpublishing and republishing the CB login module...
Nope, no luck.  My thinking was that I changed the CB login when I uninstalled and reinstalled the plugin (in that the VM info tab went away).  But in retrospect, the CB login module probably does not know the difference...
Title: Re: Community Builder integration
Post by: sync on February 14, 2008, 22:56:17 pm
Hey Comeskey,

My mistake with the versions; I'd named 0.1.10 1.0.10 (easy to do!). But 0.1.x are meant to be the real version numbers.

I've attached a file (for the components/com_comprofiler/plugin/user/plug_virtuemart/ directory) which I think will fix the problem. I haven't had a chance to test this yet and may not for a few days but if it works then this will be the 0.1.12 release.

Cheers,
Ben.

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: Comeskey on February 14, 2008, 23:12:56 pm
Yep, that fixed it for me!!  Thanks Ben!! :)
Title: Re: Community Builder integration
Post by: sync on February 14, 2008, 23:15:09 pm
Sweet, thank you for your help figuring out the issue!

Cheers
Title: Re: Community Builder integration
Post by: sync on February 15, 2008, 01:39:41 am
Proper 0.1.12 release: http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip

Comeskey, don't bother with this, all changes are contained in that file you replaced.

0.1.12
Fixed default value of 'show title' parameter
Fixed vmIsAdminMode undefined error
Title: Re: Community Builder integration
Post by: MGLorencin on February 16, 2008, 20:39:33 pm
I don't know if anyone has this problem, but in CB profile, when you go to EDIT profile and look for SHOP info tab, I get fields without tittle names next to it?

The same happens at registration form, I get virtuemart fields vithout tittles next to it.

But if you try to register through Virtuemart while making a purchase, then those tittle names next to the fields are displayed correctly.

I have Joomla 1.0.13 anv VM 1.0.14 installed. I must test more before I move to Joomla 1.0.14 ...don't know if this has something to do with it?

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: Comeskey on February 17, 2008, 03:11:29 am
I am also using J1.0.13 and VM1.0.14 and do not have this problem.

Did you try re-installing the plugin and making sure that the VM file replacements were done correctly?  Just a guess...

Although, I got to version 0.1.12 of the plugin by starting with 0.1.11 and upgrading only the virtuemart.php file.  So if there is a problem elsewhere in 0.1.12, then I would not know about it.

You could try starting with 0.1.11 and replacing the virtuemart.php file that Ben posted above.  That would duplicate my setup.
Title: Re: Community Builder integration
Post by: MGLorencin on February 17, 2008, 09:16:55 am
Thank you. I will try again like you said, in the meantime i also upgraded to Joomla 1.0.14 but that didn't have any effect on it.
Title: Re: Community Builder integration
Post by: MGLorencin on February 17, 2008, 09:52:24 am
Really strange, I tried with versions 1.0.11 and even 1.0.10 but I always get the same problem.

However I know that this wasn't a problem some time ago when I was still on J1.0.13 and VM 1.0.13 ...perhaps it's VM thing? Like I said in VM regitration form I can see everything like it's supposed to be, but in CB I don't see any filed tittles. I checked it's not some CSS thing ...there is no text there where it should be.

Perhaps it's not a plugin problem but something else, I hope someone here is smart enough figure what could this be.
Title: Re: Community Builder integration
Post by: Comeskey on February 17, 2008, 18:42:29 pm
I probably should have started with this last night.

Those field labels are stored in the administrator/components/com_virtuemart/languages/english.php file.

So the first thing you should do is to check your language file and make sure that the labels are appearing correctly there.  Perhaps the language file is messed up?

Quote
I know that this wasn't a problem some time ago when I was still on J1.0.13 and VM 1.0.13

There is a new english.php file for the VM1.0.14 upgrade.  You might make sure that you installed it with your upgrade.

Although, if that were the problem, you would expect the labels to be missing from VM's own regis form too.  Is there some reason that the plugin would be looking to the wrong language file?
Title: Re: Community Builder integration
Post by: Comeskey on February 17, 2008, 21:07:06 pm
Ben,

Would it benefit the plugin project to build in support for the VM user registration extra fields?  I know I am hoping to utilize the extra fields in my current application, so perhaps others are too.

Attached below is a modified virtuemart.php file with support for VM's extra fields.  I just simply cut, pasted, and modified your existing code.  I included instructions for activating the extra fields and for naming the fields in the language file.  For now, I commented out the extra fields so that they do not appear automatically.  If you want to, please consider including this in version 0.1.13.

The only thing is, I don't understand much PHP code.  At best, I can sort of pick my way through someone else's existing code.  I'm guessing that this is the reason that fields 4 and 5 (with the drop-down functionality) are buggy.  As is now, they display properly in the regis form, but the selection does not stick in the database.

So before this is included in the next version, someone smarter then me should probably take a look at the extra_field_4 and extra_field_5 code and fix it so that the selection sticks.


[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: MGLorencin on February 17, 2008, 21:33:18 pm
I probably should have started with this last night.

Those field labels are stored in the administrator/components/com_virtuemart/languages/english.php file.

So the first thing you should do is to check your language file and make sure that the labels are appearing correctly there.  Perhaps the language file is messed up?

Quote
I know that this wasn't a problem some time ago when I was still on J1.0.13 and VM 1.0.13

There is a new english.php file for the VM1.0.14 upgrade.  You might make sure that you installed it with your upgrade.

Although, if that were the problem, you would expect the labels to be missing from VM's own regis form too.  Is there some reason that the plugin would be looking to the wrong language file?

I did a clean install of VM 1.0.14 at my test site, so everything is there. Something must be messed up somewhere in CB files. Like I said if I use VM registration form, then all filed labels show ...only if I use CB registration they don't and also in edit CB profile section labels don't show.
Title: Re: Community Builder integration
Post by: MGLorencin on February 17, 2008, 21:34:16 pm
Ben,

Would it benefit the plugin project to build in support for the VM user registration extra fields?  I know I am hoping to utilize the extra fields in my current application, so perhaps others are too.


I am one of those also interested :)
Title: Re: Community Builder integration
Post by: Comeskey on February 18, 2008, 05:13:16 am
MG,

Are you using CB version 1.1?
Title: Re: Community Builder integration
Post by: MGLorencin on February 18, 2008, 08:34:53 am
Yes CB 1.1. and beside that everything works ok.
Title: Re: Community Builder integration
Post by: sync on February 18, 2008, 22:54:00 pm
I don't know if anyone has this problem, but in CB profile, when you go to EDIT profile and look for SHOP info tab, I get fields without tittle names next to it?

What is your Joomla language setting? Is there a VM language setting, and if so what is it too? Those fields should be loaded from the english language file, but if you've set the Joomla language it loads that language file. The code *should* load the english one if your specified language is not available (and currently only English / Brazilian / Brazilian-Portugese are), but that could be the issue.

I'll post this as a bug on the tracker..
Title: Re: Community Builder integration
Post by: sync on February 18, 2008, 22:56:33 pm
Would it benefit the plugin project to build in support for the VM user registration extra fields?  I know I am hoping to utilize the extra fields in my current application, so perhaps others are too.

Attached below is a modified virtuemart.php file with support for VM's extra fields.  I just simply cut, pasted, and modified your existing code.  I included instructions for activating the extra fields and for naming the fields in the language file.  For now, I commented out the extra fields so that they do not appear automatically.  If you want to, please consider including this in version 0.1.13.

Great idea! I'll put this in the tracker and it's definitely something I think the plugin should cope with. I haven't had a look at the code yet but from what you describe we'd definitely need to fix that issue with the fields saving, but that shouldn't be too hard, hopefully we can tie in to the existing VM code..
Title: Re: Community Builder integration
Post by: MGLorencin on February 18, 2008, 23:05:35 pm
I don't know if anyone has this problem, but in CB profile, when you go to EDIT profile and look for SHOP info tab, I get fields without tittle names next to it?

What is your Joomla language setting? Is there a VM language setting, and if so what is it too? Those fields should be loaded from the english language file, but if you've set the Joomla language it loads that language file. The code *should* load the english one if your specified language is not available (and currently only English / Brazilian / Brazilian-Portugese are), but that could be the issue.

I'll post this as a bug on the tracker..

I have Slovenian language for Joomla, CB ...and English for VM at the moment, I was still testing so I didn't came up to it to upload Slovenian language also for VM. So you think it could be language issue?
Title: Re: Community Builder integration
Post by: Comeskey on February 19, 2008, 04:03:32 am
Quote
I haven't had a look at the code yet but from what you describe we'd definitely need to fix that issue with the fields saving, but that shouldn't be too hard, hopefully we can tie in to the existing VM code..

Yeah, sorry.  Believe me, I REALLY wish I could get it working.   :)

At first, I was not sure if the problem was related to the plugin or if VM has a problem with extra fields 4 and 5.  In searching the forum, I found posts that indicated both success and failure with using fields 4 and 5 even in VM's own regis form.

So I installed a fresh VM 1.0.14 on a new J 1.0.14 site and activated extra_field_5 in the VM regis form.  The extra_field_5 has a number of problems (like appearing outside the form box, displaying only one digit of the response and omitting the drop-down arrow in the account update window) but the selection posts in the VM_user_info table just fine.

So at this point, I have no reason to believe that it is a problem with VM.  I think it is a problem with my code in the plugin.  Also, I want to emphasize that extra fields 1, 2, and 3 all save to the table.  Only 4 and 5 have a problem.

Here are the relevant code sections that I created via the cut, paste, and modify method.

Lines 234-256:
Code: [Select]
$q = ' UPDATE #__vm_user_info SET '
. ' `title` = "'.$_REQUEST['title'] . '"'
. ' , `company` = "'.$_REQUEST['vmart_company'] . '"'
. ' , `address_1` = "'.$_REQUEST['vmart_address_street'] . '"'
. ' , `address_2` = "'.$_REQUEST['vmart_address_street2'] . '"'
. ' , `city` = "'.$_REQUEST['vmart_address_city'] . '"'
. ' , `zip` = "'.$_REQUEST['vmart_address_postcode'] . '"'
. ' , `country` = "'.$_REQUEST['vmart_address_country'] . '"'
. ' , `state` = "'.$_REQUEST['vmart_address_state'] . '"'
. ' , `phone_1` = "'.$_REQUEST['vmart_address_phone'] . '"'
. ' , `phone_2` = "'.$_REQUEST['vmart_address_mobile'] . '"'
. ' , `extra_field_1` = "'.$_REQUEST['vmart_address_extra_field_1'] . '"'
. ' , `extra_field_2` = "'.$_REQUEST['vmart_address_extra_field_2'] . '"'
. ' , `extra_field_3` = "'.$_REQUEST['vmart_address_extra_field_3'] . '"'
. ' , `extra_field_4` = "'.$_REQUEST['vmart_address_extra_field_4'] . '"'
. ' , `extra_field_5` = "'.$_REQUEST['vmart_address_extra_field_5'] . '"'
. ' , `fax` = "'.$_REQUEST['vmart_address_fax'] . '"'
. ' , `first_name` = "'.$firstname . '"'
. ' , `middle_name` = "'.$middlename . '"'
. ' , `last_name` = "'.$lastname . '"'
. ' , `user_email` = "'.$_REQUEST['email'] . '"'
. ' , `cdate` = "'. $timestamp . '"'
. ' , `mdate` = "'. $timestamp . '"' ;

Lines 345-370:
Code: [Select]
$vm_title = '';
$vm_company = '';
$vm_address_street = '';
$vm_address_street2 = '';
$vm_address_city = '';
$vm_address_postcode = '';
$vm_address_country = '';
$vm_address_state = '';
$vm_address_phone = '';
$vm_address_mobile = '';
$vm_address_fax = '';
$vm_address_extra_field_1 = '';
$vm_address_extra_field_2 = '';
$vm_address_extra_field_3 = '';
$vm_address_extra_field_4 = '';
$vm_address_extra_field_5 = '';
$vm_bank_holder = '';
$vm_bank_number = '';
$vm_bank_code = '';
$vm_bank_name = '';
$vm_bank_type = '';
$vm_bank_iban = '';
$vm_perms = '';
$pad = '';

$rv = '';

Lines 376-398:
Code: [Select]
// If we are showing this page on a reload (due to a Joomla error for example), populate the fields
if ( isset($_REQUEST['vmart_company']) ) $vm_company = $_REQUEST['vmart_company'];
if ( isset($_REQUEST['title']) ) $vm_title = $_REQUEST['title'];
if ( isset($_REQUEST['vmart_address_street']) ) $vm_address_street = $_REQUEST['vmart_address_street'];
if ( isset($_REQUEST['vmart_address_street2']) ) $vm_address_street2 = $_REQUEST['vmart_address_street2'];
if ( isset($_REQUEST['vmart_address_city']) ) $vm_address_city = $_REQUEST['vmart_address_city'];
if ( isset($_REQUEST['vmart_address_postcode']) ) $vm_address_postcode = $_REQUEST['vmart_address_postcode'];
if ( isset($_REQUEST['vmart_address_country']) ) $vm_address_country = $_REQUEST['vmart_address_country'];
if ( isset($_REQUEST['vmart_address_state']) ) $vm_address_state = $_REQUEST['vmart_address_state'];
if ( isset($_REQUEST['vmart_address_phone']) ) $vm_address_phone = $_REQUEST['vmart_address_phone'];
if ( isset($_REQUEST['vmart_address_mobile']) ) $vm_address_mobile = $_REQUEST['vmart_address_mobile'];
if ( isset($_REQUEST['vmart_address_fax']) ) $vm_address_fax = $_REQUEST['vmart_address_fax'];
if ( isset($_REQUEST['vmart_address_extra_field_1']) ) $vm_address_extra_field_1 = $_REQUEST['vmart_address_extra_field_1'];
if ( isset($_REQUEST['vmart_address_extra_field_2']) ) $vm_address_extra_field_2 = $_REQUEST['vmart_address_extra_field_2'];
if ( isset($_REQUEST['vmart_address_extra_field_3']) ) $vm_address_extra_field_3 = $_REQUEST['vmart_address_extra_field_3'];
if ( isset($_REQUEST['vmart_address_extra_field_4']) ) $vm_address_extra_field_4 = $_REQUEST['vmart_address_extra_field_4'];
if ( isset($_REQUEST['vmart_address_extra_field_5']) ) $vm_address_extra_field_5 = $_REQUEST['vmart_address_extra_field_5'];
if ( isset($_REQUEST['vmart_bank_holder']) ) $vm_bank_holder = $_REQUEST['vmart_bank_holder'];
if ( isset($_REQUEST['vmart_bank_number']) ) $vm_bank_number = $_REQUEST['vmart_bank_number'];
if ( isset($_REQUEST['vmart_bank_code']) ) $vm_bank_code = $_REQUEST['vmart_bank_code'];
if ( isset($_REQUEST['vmart_bank_name']) ) $vm_bank_name = $_REQUEST['vmart_bank_name'];
if ( isset($_REQUEST['vmart_bank_type']) ) $vm_bank_type = $_REQUEST['vmart_bank_type'];
if ( isset($_REQUEST['vmart_bank_iban']) ) $vm_bank_iban = $_REQUEST['vmart_bank_iban'];

Lines 413-428:
Code: [Select]
$vm_title = $row->title;
$vm_company = $row->company;
$vm_address_street = $row->address_1;
$vm_address_street2 = $row->address_2;
$vm_address_city = $row->city;
$vm_address_postcode = $row->zip;
$vm_address_country = $row->country;
$vm_address_state = $row->state;
$vm_address_phone = $row->phone_1;
$vm_address_mobile = $row->phone_2;
$vm_address_fax = $row->fax;
$vm_address_extra_field_1 = $row->extra_field_1;
$vm_address_extra_field_2 = $row->extra_field_2;
$vm_address_extra_field_3 = $row->extra_field_3;
$vm_address_extra_field_4 = $row->extra_field_4;
$vm_address_extra_field_5 = $row->extra_field_5;

And finally, my attempt to display the form on the regis page:
Code: [Select]
$rv .= '<tr><th class="titleCell">' . $pad . $vmart_lang->_PHPSHOP_USER_FORM_EXTRA_FIELD_5 . '</th>';
$rv .= '<td class="fieldCell">';
ob_start();
$onchange .= ' mosReq="'.$regoRequired.'" mosLabel="'.$vmart_lang->_PHPSHOP_USER_FORM_EXTRA_FIELD_5.'" ';
$vmart_html->list_extra_field_5( 'vmart_address_extra_field_5' , $vm_address_extra_field_5 , "id=\"extra_field_5\" " );
$rv .= ob_get_contents();
ob_end_clean();
$rv .= getFieldIcons(1,$regoRequired,false,$vmart_lang->_PHPSHOP_USER_FORM_EXTRA_FIELD_5,$vmart_lang->_PHPSHOP_USER_FORM_EXTRA_FIELD_5);
$rv .= '</td></tr>';

Does anybody see anything obvious?  If so, just point me in the right direction and I will test it and report back here ASAP.

Thanks!
Title: Re: Community Builder integration
Post by: MGLorencin on February 22, 2008, 18:40:38 pm
I don't know if anyone has this problem, but in CB profile, when you go to EDIT profile and look for SHOP info tab, I get fields without tittle names next to it?

What is your Joomla language setting? Is there a VM language setting, and if so what is it too? Those fields should be loaded from the english language file, but if you've set the Joomla language it loads that language file. The code *should* load the english one if your specified language is not available (and currently only English / Brazilian / Brazilian-Portugese are), but that could be the issue.

I'll post this as a bug on the tracker..

I have Slovenian language for Joomla, CB ...and English for VM at the moment, I was still testing so I didn't came up to it to upload Slovenian language also for VM. So you think it could be language issue?

Solution was really simple :) ...I had to go to administrator/components/com_virtuemart/languages     and just insert  slovenian.php  file because I have slovenian language set as local language.

That was it.
Title: Re: Community Builder integration
Post by: mergebow on February 23, 2008, 07:27:14 am
Hello Sync,

First of all  I know all this development is done for free, so I hope everyone who's worked on or helped with this plugin is very rich or soon to be someday- you all are amazing!

Questions:
1.  Several people have asked this and I don't think I've seen an obvious answer.  With CB  and VM installed plus the VM/CB plugin, which registration module should be used?  CB or VM?

2.  Any issues this using the the VM/CB plugin on Joomla 1.0.11, CB 1.0.2, and VM 1.0.14? Pr with CB 1.1 (which I plan to upgrade to soon)

Thanks again to everyone for their efforts on this plugin.

- John
Title: Re: Community Builder integration
Post by: Comeskey on February 24, 2008, 03:00:26 am
Quote
1.  Several people have asked this and I don't think I've seen an obvious answer.  With CB  and VM installed plus the VM/CB plugin, which registration module should be used?  CB or VM?

CB

Quote
2.  Any issues this using the the VM/CB plugin on Joomla 1.0.11, CB 1.0.2, and VM 1.0.14? Pr with CB 1.1 (which I plan to upgrade to soon)

Who knows?  You test it and let us know.  In most cases, when people are installing the latest version of the plugin, we are also using the latest versions of Joomla, CB, and VM.  One might even go so far as to say that keeping your versions up to date is good practice regardless.
Title: Re: Community Builder integration
Post by: busman on February 24, 2008, 17:12:35 pm
Hello!

I use CB 1.1, Joomla! 1.5 and VirtueMart 1.1.0. The CB here proposed is not for VirtueMart 1.1.0 (now in RC).
Anyone have tested some modified version for that? (VirtueMart 1.1 + CB 1.1).

Thanks, Busman
Title: Re: Community Builder integration
Post by: mergebow on February 25, 2008, 20:02:57 pm
Thanks Comeskey.

That helps.

If I encounter any issues I will report back.

- John
Title: Re: Community Builder integration
Post by: matrix845 on February 26, 2008, 00:02:09 am
Ben,

Would it benefit the plugin project to build in support for the VM user registration extra fields?  I know I am hoping to utilize the extra fields in my current application, so perhaps others are too.


I am one of those also interested :)


Hi guys there is the possibility to insert extra fields in Virtuemart or CB for using they in the shopping process?

I must to insert some extra fields!!  ;)


Thanks for yor help


Bye


Pierpaolo
Title: Re: Community Builder integration
Post by: Comeskey on February 26, 2008, 03:54:28 am
Yes, you can make use of VM's extra fields - as long as you don't need a drop-down function.

The virtuemart.php file that I posted a few posts up will allow you to start using extra fields 1, 2 and 3.  Because I suck at php, I have been unable to get extra fields 4 and 5 to save to the user_info table.  But sync will get that working when he gets a chance.

To utilize fields 1-3 in the plugin, replace your plugin's virtumart.php file with the one that I posted above.  Then use JoomlaXplorer to edit the file.  You will need to remove the comment symbols from the relevant code sections about 2/3rds of the way down.  And you will need to add a label to the extra fields in your VM language file.  Just follow the instructions that I included in the virtuemart.php file.

If you need a drop-down, then I can't help you yet.  I am working on it, but have hit a wall in my skills at the moment.
Title: Re: Community Builder integration
Post by: Comeskey on February 28, 2008, 20:28:40 pm
Guys,

I just noticed a problem with my extra field additions in my previous virtuemart.php file.

On my original file, I followed the plugin's protocol for defining the field names from the language file's PHPSHOP_USER_FORM fields.  But the VM extra fields are defined in the PHPSHOP_SHOPPER_FORM fields.

So in order for the field names to appear in our plugin form, we would need to change the code accordingly.  Like this, for example:

Code: [Select]
$rv .= '<tr><th class="titleCell">' . $pad . $vmart_lang->_PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1 . '</th>';
$rv .= '<td class="fieldCell"><input class="inputbox" name="vmart_address_extra_field_1" type="text" size="40" maxlength="255" value="'.$vm_address_extra_field_1.'" />';
$rv .= getFieldIcons(1,false,false,$vmart_lang->_PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1,$vmart_lang->_PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1);
$rv .= '</td></tr>';

Ben, does that have any negative impacts on the rest of the system?  Is there a reason that your original code used the USER_FORM instead of the SHOPPER_FORM?

The other possibility is that we can change the instructions to tell people to add the extra fields to the USER_FORM... 
Title: Re: Community Builder integration
Post by: matrix845 on February 29, 2008, 01:39:49 am
@Comeskey

First of all thanks for your work and help.

But I don't undetstand one think.

I only must to use one of the extrafield of virtuemart , the better things is that this filed must to be required , but I don't understand your explanation about the use of the normal extrafield (not drop down) 1, 2 ,3 of Virtuemart used with Community Builder and their plugin.

Can you please explain to me?

Thanks a lot

Br


Pierpaolo  :)
Title: After user subscription by email , the site must to syncro the user
Post by: matrix845 on February 29, 2008, 01:47:45 am
Hi guys ,

I have a strange idea:
I'm using Virtuemart 1.0.14 with community builder 1.1 and their plugin , but only using the account.billing.php hacks , not the checkout_register_form.php becuase using the CB form in the registration isn't god for design ,

In this way I have the Virtuemart information in the Cb user profile ( for a demo see www.bikorn.com and try to buy something , the site it's a demo) , but if the person submit to my site not by the Cb module but from the Virtuemart , later the subscription they cound't login to my site.

I must to go in the site backend and to Community Builder --> Plugin --> Syncornize User

later this all was perfect.

My idea it's to create a hack , that later user submit with link in the email , the site do the syncro that it's something like this


yourdomain.com/administrator/index2.php?option=com_comprofiler&task=syncUsers


Do you kinow how I can do this?

Thanks for youe help

Pierpaolo
Title: Re: Community Builder integration
Post by: Comeskey on February 29, 2008, 02:52:23 am
Quote
I only must to use one of the extrafield of virtuemart , the better things is that this filed must to be required , but I don't understand your explanation about the use of the normal extrafield (not drop down) 1, 2 ,3 of Virtuemart used with Community Builder and their plugin.

Can you please explain to me?

Sure.  Virtuemart has already built-in 5 extra fields to the registration process.  To activate these in VM for use with the VM registration function, you simply go to the VM language file (administrator/components/com_virtuemart/languages/english.php).  Near the top of the language file, you will find a section called PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1= ' ';.  You will notice that there is no label in the quotes for extra field 1.  In order to make this extra field show up on the stock VM regis form, you need to add a label within the quotes.  Like this:
PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1= ' My Field Name';.

But when you use the plugin, it takes over the task of creating the user regis form.  And the latest official version of the plugin (0.1.12) did not include support for the extra fields.  So a few posts up, I posted a modified virtuemart.php file for the plugin that included support for VM's extra fields so that they would show up on the plugin's regis form.  However, my modification was designed to leave the extra fields turned off.  In order to turn them on, the user still needs to do some extra work - as explained in the instructions written within the virtuemart.php file.  Specifically, you need to 'comment in' the code that creates the fields on the form (ie: remove the "/*" and "*/" symbols from the start and end of the code sections).  And you need to get into the language file and add a field name to the extra field (as described above).

My question that I posted earlier today relates to the fact that there are several field types listed in the language file, specifically, PHPSHOP_USER_FORM and PHPSHOP_SHOPPER_FORM. 

When you activate the extra fields within VM (when NOT using the plugin), you need to add a label to the extra field within the SHOPPER FORM (PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1, for example).  But the plugin is not looking at the Shopper Form, it is looking at the USER FORM (PHPSHOP_USER_FORM_EXTRA_FIELD_1, for example) - which does not exist within the stock VM file.

So as a result, the instructions that I included in my modified virtuemart.php file are incorrect.  Either I need to tell people to add a line in the language file for PHPSHOP_USER_FORM_EXTRA_FIELD_1, or else I need to rewrite my modification in the virtuemart.php file to use the existing PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1 reference.

And at the moment, I don't know which is better.

Does that help?  Or make it worse?  I've almost confused myself with this "explanation"... ???


Title: Re: Community Builder integration
Post by: platothefish on March 01, 2008, 19:09:38 pm
Hi I just tried to load the plug in  CB and got this error:

Upload showPlugins - Failed

SQL error: moscomprofilerplugin::store failed
Unknown column \'backend_menu\' in \'field list\' SQL=INSERT INTO jos_comprofiler_plugin ( `name`,`element`,`type`,`folder`,`backend_menu`,`access`,`ordering`,`iscore`,`client_id` ) VALUES ( \'Virtuemart\',\'virtuemart\',\'user\',\'plug_virtuemart\',\'\',\'0\',\'99\',\'0\',\'0\' )

Ant ideas?

Platothefish
Title: Re: Community Builder integration
Post by: El Fanjo on March 02, 2008, 23:56:22 pm
@matrix :
you should try my hack, thats exactly what it does, when someone registers I just force the synchonisation and it works great. it is explained few pages before in that thread.

Hope this helps.
Title: Re: Community Builder integration
Post by: MGLorencin on March 03, 2008, 10:28:33 am
@matrix :
you should try my hack, thats exactly what it does, when someone registers I just force the synchonisation and it works great. it is explained few pages before in that thread.

Hope this helps.

@El Franjo that tip really saved my day, thank you :)
Title: Re: Community Builder integration
Post by: matrix845 on March 03, 2008, 11:52:52 am
@matrix :
you should try my hack, thats exactly what it does, when someone registers I just force the synchonisation and it works great. it is explained few pages before in that thread.

Hope this helps.

Hi ElFanjo later I search in this big thread and I hope to find your information.

If I have some question , can I ask to you?

Thanks for your help


Br

Pierpaolo
Title: Re: Community Builder integration
Post by: El Fanjo on March 03, 2008, 14:13:07 pm
@matrix:
course you can, we are here to help each others
the post is in the top of page 10

@MGLorencin:
you're welcome !
Title: Re: Community Builder integration
Post by: matrix845 on March 04, 2008, 03:41:25 am
Quote
I only must to use one of the extrafield of virtuemart , the better things is that this filed must to be required , but I don't understand your explanation about the use of the normal extrafield (not drop down) 1, 2 ,3 of Virtuemart used with Community Builder and their plugin.

Can you please explain to me?

Sure.  Virtuemart has already built-in 5 extra fields to the registration process.  To activate these in VM for use with the VM registration function, you simply go to the VM language file (administrator/components/com_virtuemart/languages/english.php).  Near the top of the language file, you will find a section called PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1= ' ';.  You will notice that there is no label in the quotes for extra field 1.  In order to make this extra field show up on the stock VM regis form, you need to add a label within the quotes.  Like this:
PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1= ' My Field Name';.

But when you use the plugin, it takes over the task of creating the user regis form.  And the latest official version of the plugin (0.1.12) did not include support for the extra fields.  So a few posts up, I posted a modified virtuemart.php file for the plugin that included support for VM's extra fields so that they would show up on the plugin's regis form.  However, my modification was designed to leave the extra fields turned off.  In order to turn them on, the user still needs to do some extra work - as explained in the instructions written within the virtuemart.php file.  Specifically, you need to 'comment in' the code that creates the fields on the form (ie: remove the "/*" and "*/" symbols from the start and end of the code sections).  And you need to get into the language file and add a field name to the extra field (as described above).

My question that I posted earlier today relates to the fact that there are several field types listed in the language file, specifically, PHPSHOP_USER_FORM and PHPSHOP_SHOPPER_FORM. 

When you activate the extra fields within VM (when NOT using the plugin), you need to add a label to the extra field within the SHOPPER FORM (PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1, for example).  But the plugin is not looking at the Shopper Form, it is looking at the USER FORM (PHPSHOP_USER_FORM_EXTRA_FIELD_1, for example) - which does not exist within the stock VM file.

So as a result, the instructions that I included in my modified virtuemart.php file are incorrect.  Either I need to tell people to add a line in the language file for PHPSHOP_USER_FORM_EXTRA_FIELD_1, or else I need to rewrite my modification in the virtuemart.php file to use the existing PHPSHOP_SHOPPER_FORM_EXTRA_FIELD_1 reference.

And at the moment, I don't know which is better.

Does that help?  Or make it worse?  I've almost confused myself with this "explanation"... ???





Thanks tomorrow I will truy your helps


@El Fanjo

I begin to try your hack and I seems to work very well!!


Thanks to all guys!!

B

Pierpaolo
Title: Re: Community Builder integration
Post by: MGLorencin on March 10, 2008, 00:54:57 am
@EL Franjo: have you tried your hack or would it be hard to modify it to make it work synchronize with new VM 1.1?
Title: Re: Community Builder integration
Post by: El Fanjo on March 10, 2008, 20:36:28 pm
Haven't tried with VM1.1 but for what I understood of it it would be much easier, especially to add fields.
Try it and see what happens.... o and btw BACKUP FIRST  ;D
Title: Re: Community Builder integration
Post by: matrix845 on March 11, 2008, 13:05:53 pm
Hi everyone,

I have a solution to submit, this is not perfect so far but it works. I will update it later but basically when someone registers through the shop it automatically sync community builder on email confirmation (the sync is pretty much the one you would use in CB administration).

Backup first... here goes :
- First you need to remove the joomla login module from ALL the pages and only use CB one (I suppose that everyone is doing just that as we are all trying to integrate VM to CB...)

- Next open components/com_registration/registration.php, around line 270
BEFORE
Code: [Select]
if ($result) {
$query = "UPDATE #__users"
. "\n SET block = 0, activation = ''"
. "\n WHERE activation = " . $database->Quote( $activation )
. "\n AND block = 1"
;
$database->setQuery( $query );
if (!$database->query()) {
if(!defined(_REG_ACTIVATE_FAILURE)) {
DEFINE('_REG_ACTIVATE_FAILURE', '<div class="componentheading">Activation Failed!</div><br />The system was unable to activate your account, please contact the site administrator.');
}
echo _REG_ACTIVATE_FAILURE;
} else {
echo _REG_ACTIVATE_COMPLETE;
}
} else {
echo _REG_ACTIVATE_NOT_FOUND;
}
AFTER
Code: [Select]
if ($result) {
$query = "UPDATE #__users"
. "\n SET block = 0, activation = ''"
. "\n WHERE activation = " . $database->Quote( $activation )
. "\n AND block = 1"
;
$database->setQuery( $query );
if (!$database->query()) {
if(!defined(_REG_ACTIVATE_FAILURE)) {
DEFINE('_REG_ACTIVATE_FAILURE', '<div class="componentheading">Activation Failed!</div><br />The system was unable to activate your account, please contact the site administrator.');
}
echo _REG_ACTIVATE_FAILURE;
} else {
/* HACK TO TIE VM REGISTRATION TO CB */

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

/* END OF HACK */
echo _REG_ACTIVATE_COMPLETE;
}
} else {
echo _REG_ACTIVATE_NOT_FOUND;
}

Basically what it does is launch the sync process after confirmation , now CB tables are automatically updated wherever people register  ;D

I haven't tested it much so please let me know how it goes for you guys.




Hi El Fanjo ,


I'm using this hack on a prelive site , i'm doing the final test , but now I have a problem!!!

The syncronization doesn't work beacuase I have this error:


Parse error: parse error, unexpected T_ELSE in /var/www/vhosts/bikorn.com/subdomains/domenico/httpdocs/components/com_registration/registration.php on line 284



This is my registration.php

Code: [Select]
<?php
/**
* @version $Id: registration.php 7813 2007-06-29 06:04:09Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined'_VALID_MOS' ) or die( 'Restricted access' );

global 
$mosConfig_frontend_login;

require_once( 
$mainframe->getPath'front_html' ) );

if ( 
$mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === || $mosConfig_frontend_login === '0')) {
echo _NOT_AUTH;
return;
}

switch( 
$task ) {
case 'lostPassword':
lostPassForm$option );
break;

case 'sendNewPass':
sendNewPass$option );
break;

case 'register':
registerForm$option$mosConfig_useractivation );
break;

case 'saveRegistration':
saveRegistration();
break;

case 'activate':
activate$option );
break;
}

function 
lostPassForm$option ) {
global $mainframe;

$mainframe->SetPageTitle(_PROMPT_PASSWORD);

HTML_registration::lostPassForm($option);
}

function 
sendNewPass$option ) {
global $database;
global $mosConfig_live_site$mosConfig_sitename;
global $mosConfig_mailfrom$mosConfig_fromname;

// simple spoof check security
josSpoofCheck();

$_live_site $mosConfig_live_site;
$_sitename  $mosConfig_sitename;

$checkusername stripslashesmosGetParam$_POST'checkusername''' ) );
$confirmEmail stripslashesmosGetParam$_POST'confirmEmail''') );

$query "SELECT id"
"\n FROM #__users"
"\n WHERE username = " $database->Quote$checkusername )
"\n AND email = " $database->Quote$confirmEmail )
;
$database->setQuery$query );
if (!($user_id $database->loadResult()) || !$checkusername || !$confirmEmail) {
mosRedirect"index.php?option=$option&task=lostPassword&mosmsg="._ERROR_PASS );
}

$newpass mosMakePassword();
$message _NEWPASS_MSG;
eval ("\$message = \"$message\";");
$subject _NEWPASS_SUB;
eval ("\$subject = \"$subject\";");

mosMail($mosConfig_mailfrom$mosConfig_fromname$confirmEmail$subject$message);

$salt mosMakePassword(16);
$crypt md5($newpass.$salt);
$newpass $crypt.':'.$salt;

$sql "UPDATE #__users"
"\n SET password = " $database->Quote$newpass )
"\n WHERE id = " . (int) $user_id
;
$database->setQuery$sql );
if (!$database->query()) {
die("SQL error" $database->stderr(true));
}

mosRedirect'index.php?option=com_registration&mosmsg='_NEWPASS_SENT );
}

function 
registerForm$option$useractivation ) {
global $mainframe;

if (!$mainframe->getCfg'allowUserRegistration' )) {
mosNotAuth();
return;
}

  
$mainframe->SetPageTitle(_REGISTER_TITLE);

HTML_registration::registerForm($option$useractivation);
}

function 
saveRegistration() {
global $database$acl;
global $mosConfig_sitename$mosConfig_live_site$mosConfig_useractivation$mosConfig_allowUserRegistration;
global $mosConfig_mailfrom$mosConfig_fromname$mosConfig_mailfrom$mosConfig_fromname;

if ( $mosConfig_allowUserRegistration == ) {
mosNotAuth();
return;
}

// simple spoof check security
josSpoofCheck();

$row = new mosUser$database );

if (!$row->bind$_POST'usertype' )) {
mosErrorAlert$row->getError() );
}

$row->name trim$row->name );
$row->email trim$row->email );
$row->username trim$row->username );
$row->password trim$row->password );

mosMakeHtmlSafe($row);

$row->id  0;
$row->usertype  '';
$row->gid  $acl->get_group_id'Registered''ARO' );

if ( $mosConfig_useractivation == ) {
$row->activation md5mosMakePassword() );
$row->block '1';
}

if (!$row->check()) {
echo "<script> alert('".html_entity_decode($row->getError())."'); window.history.go(-1); </script>\n";
exit();
}

$pwd  $row->password;

$salt mosMakePassword(16);
$crypt md5($row->password.$salt);
$row->password $crypt.':'.$salt;

$row->registerDate  date'Y-m-d H:i:s' );

if (!$row->store()) {
echo "<script> alert('".html_entity_decode($row->getError())."'); window.history.go(-1); </script>\n";
exit();
}
$row->checkin();

$name  trim($row->name);
$email  trim($row->email);
$username  trim($row->username);

$subject  sprintf (_SEND_SUB$name$mosConfig_sitename);
$subject  html_entity_decode($subjectENT_QUOTES);

if ($mosConfig_useractivation == 1){
$message sprintf (_USEND_MSG_ACTIVATE$name$mosConfig_sitename$mosConfig_live_site."/index.php?option=com_registration&task=activate&activation=".$row->activation$mosConfig_live_site$username$pwd);
} else {
$message sprintf (_USEND_MSG$name$mosConfig_sitename$mosConfig_live_site);
}

$message html_entity_decode($messageENT_QUOTES);

// check if Global Config `mailfrom` and `fromname` values exist
if ($mosConfig_mailfrom != '' && $mosConfig_fromname != '') {
$adminName2  $mosConfig_fromname;
$adminEmail2  $mosConfig_mailfrom;
} else {
// use email address and name of first superadmin for use in email sent to user
$query "SELECT name, email"
"\n FROM #__users"
"\n WHERE LOWER( usertype ) = 'superadministrator'"
"\n OR LOWER( usertype ) = 'super administrator'"
;
$database->setQuery$query );
$rows $database->loadObjectList();
$row2  $rows[0];

$adminName2  $row2->name;
$adminEmail2  $row2->email;
}

// Send email to user
mosMail($adminEmail2$adminName2$email$subject$message);

// Send notification to all administrators
$subject2 sprintf (_SEND_SUB$name$mosConfig_sitename);
$message2 sprintf (_ASEND_MSG$adminName2$mosConfig_sitename$row->name$email$username);
$subject2 html_entity_decode($subject2ENT_QUOTES);
$message2 html_entity_decode($message2ENT_QUOTES);

// get email addresses of all admins and superadmins set to recieve system emails
$query "SELECT email, sendEmail"
"\n FROM #__users"
"\n WHERE ( gid = 24 OR gid = 25 )"
"\n AND sendEmail = 1"
"\n AND block = 0"
;
$database->setQuery$query );
$admins $database->loadObjectList();

foreach ( $admins as $admin ) {
// send email to admin & super admin set to recieve system emails
mosMail($adminEmail2$adminName2$admin->email$subject2$message2);
}

if ( $mosConfig_useractivation == ){
echo _REG_COMPLETE_ACTIVATE;
} else {
echo _REG_COMPLETE;
}
}

function 
activate$option ) {
global $database$my;
global $mosConfig_useractivation$mosConfig_allowUserRegistration;

if($my->id) {
// They're already logged in, so redirect them to the home page
mosRedirect'index.php' );
}


if ($mosConfig_allowUserRegistration == '0' || $mosConfig_useractivation == '0') {
mosNotAuth();
return;
}

$activation stripslashesmosGetParam$_REQUEST'activation''' ) );

if (empty( $activation )) {
echo _REG_ACTIVATE_NOT_FOUND;
return;
}

$query "SELECT id"
"\n FROM #__users"
"\n WHERE activation = " $database->Quote$activation )
"\n AND block = 1"
;
$database->setQuery$query );
$result $database->loadResult();

if ($result) {
$query "UPDATE #__users"
"\n SET block = 0, activation = ''"
"\n WHERE activation = " $database->Quote$activation )
"\n AND block = 1"
;
$database->setQuery$query );
if (!$database->query()) {
if(!defined(_REG_ACTIVATE_FAILURE)) {
DEFINE('_REG_ACTIVATE_FAILURE''<div class="componentheading">Activation Failed!</div><br />The system was unable to activate your account, please contact the site administrator.');
}
echo _REG_ACTIVATE_FAILURE;
} else {

$sql_sync "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();
}
echo _REG_ACTIVATE_COMPLETE;
}
} else {
echo _REG_ACTIVATE_NOT_FOUND;
}
}
?>



I'm not using the Cb and virtuemart plugin because have some problems about the navigation , your solution it's perfect for my site.

The demo is on http://domenico.bikorn.com can you please help me?

Thansk a lot



Br


Pierpaolo
Title: Re: Community Builder integration
Post by: Comeskey on March 12, 2008, 01:09:33 am
Quote
still has the problem that the user is returned to their profile after they add their billing information instead of staying in the checkout flow. If anyone has solved that problem yet, please post it.

My 'solution' for this is to make a copy of the 'My Shopping Cart' module and to publish it in my banner position (which in my template is directly above the main content area) and assigned it to all Virtuemart menu items in the main menu.

This way, even though they get transferred to the profile page, they can't miss the link back into their cart.
Title: Re: Community Builder integration
Post by: Laurelle on March 13, 2008, 18:31:31 pm
Hello,

I have another problem with this integration.

It works fine if the user is registered from the front end using the CB registration form. But if an administrator enters a new user in CB backend, that is they go to CB User Manager and hit New. In this case the virtuemart plugin routines don't seem to be getting called and a VM user record is not being created for the new user. The new user therefore has not shopper permissions or group set for them.

Does anyone know how to fix this problem? The majority of users that get added to my site are getting added in CB backend and this is causing a problem, not having a corresponding VM record for them.

Any ideas would be appreciated.

Thanks.
Title: Re: Community Builder integration
Post by: Comeskey on March 13, 2008, 19:01:15 pm
Looks like I have the same problem.  It seems to be a one way street.  If I enter the VM account info from the backend in CB, then it does not stick.  (Only the basic regis info sticks.)   But if I enter it from the backend in VM, then it sticks and I can see it from the backend of CB.

Short term, you can enter it in 2 places from the backend - both VM and CB.  Or better yet, couldn't you just enter them yourself from the CB frontend?

As far as fixing the plugin is concerned, I don't understand enough about what is the difference between the CB frontend functions and the CB backend functions.  I see in the virtuemart.php file where we are updating the VM tables.  But it is not obvious to me how or why these update functions differ between frontend or backend.

Anybody know what I should be looking for?
Title: Re: Community Builder integration
Post by: El Fanjo on March 13, 2008, 19:08:54 pm
@matrix :
What are your VM and J! versions ?
Title: Re: Community Builder integration
Post by: gregdev on March 13, 2008, 19:22:06 pm
Quote
It works fine if the user is registered from the front end using the CB registration form. But if an administrator enters a new user in CB backend, that is they go to CB User Manager and hit New. In this case the virtuemart plugin routines don't seem to be getting called and a VM user record is not being created for the new user. The new user therefore has not shopper permissions or group set for them.

I haven't looked at the plugin in a while, but it seems like the function saveEditTab() (in virtuemart.php) does something like this:

Code: [Select]
$this->_saveVirtuemartInfo( $user );
But, _saveVirtueMartInfo() allows a second parameter to say whether to insert a new user into the VM tables. Of course, you could just add 'true' for the second parameter, but I think that might not be sufficient. You might need to check whether the user already exists in the vm_user_info table. There is a section of code in _saveVirtueMartInfo() that could be modified to do this.

I hope that points you in the right direction.

Greg
Title: Re: Community Builder integration
Post by: beatle on March 13, 2008, 23:17:37 pm
I thought I would try to install it on VM 1.1RC2 just for the heck of it.  Install went ok followed the rest of the instructions but got this error message.
Quote
Fatal error: Class 'vmAbstractObject' not found in /home/public_html/administrator/components/com_virtuemart/classes/ps_shopper_group.php on line 22
Title: Re: Community Builder integration
Post by: Laurelle on March 14, 2008, 05:37:24 am
@matrix :
What are your VM and J! versions ?
We are using Joomla 1.0.12 and VM 1.0.13a.
Title: Re: Community Builder integration
Post by: El Fanjo on March 15, 2008, 15:11:03 pm
hum the VM version you are using is an alpha, it is highly recommended you use 1.0.12 which is the latest stable version as far as I know.
Title: Re: Community Builder integration
Post by: Comeskey on March 15, 2008, 18:52:17 pm
Laurelle and El Fanjo,

I think you guys might be having a confused conversation.  Laurelle, you responded to a question that was directed to @matrix regarding El Fanjo's hack.  And I'm not sure that El Fanjo has yet realized that you are not @matrix and that you are dealing with a problem that is not related to his hack.

EF, the latest Joomla version is 1.0.15 and coincidentally, the latest VM version is also 1.0.15.
Title: Re: Community Builder integration
Post by: El Fanjo on March 15, 2008, 21:05:46 pm
hum quite possibly...
well spoted comeskey  ;D
Title: Re: Community Builder integration
Post by: LarsLB on March 17, 2008, 11:21:54 am
anyone know what version I need to use and even where I could find it..
CB 1.1 - Joomla 1.0.13 - VM 1.0.12

would love to to get this to work and reading a few success stories allows me to go to sleep with some hope (3.20am :( ..

whoever will have my answer.
thank you so much

lars

Title: Re: Community Builder integration
Post by: Comeskey on March 17, 2008, 18:37:52 pm
Lars.

The latest plugin version is here:
http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip (http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip)

It should work fine for you - though for security reasons, you should consider upgrading your Joomla version and Virtuemart version.  (Both are now 1.0.15 I believe.)

The only things that I think will give you problems are:
1.  using the VM extra user info fields
2.  if a user registers during checkout, they will be redirected to their profile page (I posted a workaround for this a few pages back)

Otherwise, I think it works great.  Post any problems here and we will try to help you.
Title: Re: Community Builder integration
Post by: LarsLB on March 17, 2008, 21:30:38 pm
funny enough .. 0.1.09 works like a charm :)
and for the redirection (haven't done the workaround yet), I'll just posted a cart module on the users profile page .. so, at least they're not all lost ..

however.. I will update everything later ..


now I just have to figure out how I can make all required fields but name, username and pw optional ..
I only need those since I'll offer mp3 downloads mostly ..


thank you again,
lars


Title: Re: Community Builder integration
Post by: Comeskey on March 17, 2008, 22:17:12 pm
Lars,

Look at the plugin's virtuemart.php file.

About 2/3rds of the way down, you will see the code sections that create and control the user registration fields on the regis form.

If you compare the ones that are currently required with the ones that are currently optional, then you will see what you need to change.

The "mosReq="'.$regoRequired.'"" part in the second line of the field code actually makes the field required.  The "$rv .= getFieldIcons(1,$regoRequired..." part a couple of lines down just displays the icon on the form.

Does that make sense?
Title: Re: Community Builder integration
Post by: CavySpirit on March 17, 2008, 23:38:48 pm
I thought I would try to install it on VM 1.1RC2 just for the heck of it.  Install went ok followed the rest of the instructions but got this error message.
Quote
Fatal error: Class 'vmAbstractObject' not found in /home/public_html/administrator/components/com_virtuemart/classes/ps_shopper_group.php on line 22

I'm getting this exact same error.
I'm running Joomla 1.0.12, VM 1.1.0 RC2 and CB 1.1

I've installed the latest plugin to CB. I would really like to get this working with this combination of versions.
Title: Re: Community Builder integration
Post by: CavySpirit on March 18, 2008, 23:08:48 pm
Is it possible to please, please, pretty please get a fix for this?

Thanks,
Teresa
Title: Re: Community Builder integration
Post by: Comeskey on March 18, 2008, 23:53:35 pm
The plugin is not designed to work with VM 1.1.
Title: Re: Community Builder integration
Post by: Laurelle on March 19, 2008, 17:55:18 pm
Hello,

Thank you Greg for pointing me in the right direction.

If anyone else that would like to fix the problem, that users created in the backend of CB User Manager are not getting a VM user record created here is a solution:

in function _saveVirtuemartInfo around line 175 change this line:
Code: [Select]
if ($insert)  {
// Insert record into Virtuemart users

to this code:
Code: [Select]
// The insert new user flag is not set, so make sure we have a VM user record for this user
if (!$insert) {
// Check if this user is already in the VM user database
$q = 'SELECT user_id FROM #__vm_user_info WHERE `user_id`="'.$user->id .'"';
$database->setQuery( $q );
$database->query();
$vm_user_id = $database->loadResult();
}

// If the user needs to be inserted or doesn't already have a VM user record, create it now
if ( $insert || ($vm_user_id == '') ) {
// Insert record into Virtuemart users

This will check if there is a VM record for the user already and if not create a VM user record and setup the shopper vendow xref, so the new user will have the correct shopper group and privileges.
Title: Re: Community Builder integration
Post by: Comeskey on March 19, 2008, 19:08:48 pm
Awesome Laurelle!!  Thanks for the fix!

This seems to be working great for me.

FYI to all others installing this fix, the file she is referring to is the plugin's virtuemart.php file.
Title: Re: Community Builder integration
Post by: causedry on March 20, 2008, 01:54:06 am
When will there be a version for Joomla 1.5???
Title: Re: Community Builder integration
Post by: matrix845 on March 21, 2008, 22:47:13 pm
@matrix :
What are your VM and J! versions ?

Hi El Fanjo , the error it'a about my modification , I don't remember to put some { and } on the php file.

I'm thinking two thing about the integration between Community Builder and Virtuemart :

- the best thing it's to leave this two component distinguished and use El fanjo hacks that syncornyze the user , so I can upgrade Cb and VM without problem .

-One better idas it's to put in the CB user profile the products that they have bought in the shop , with the selection for the user to shown or not this product.
What do you think about?


Best regards


Pierpaolo
Title: Re: Community Builder integration
Post by: BritishAgent on March 22, 2008, 18:46:11 pm
Lars.

The latest plugin version is here:
http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip (http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip)

It should work fine for you - though for security reasons, you should consider upgrading your Joomla version and Virtuemart version.  (Both are now 1.0.15 I believe.)

The only things that I think will give you problems are:
1.  using the VM extra user info fields
2.  if a user registers during checkout, they will be redirected to their profile page (I posted a workaround for this a few pages back)

Otherwise, I think it works great.  Post any problems here and we will try to help you.

Hello

Amazing work, guys.  Is this compatible with Joomla 1.5 in legacy?  If not, any idea when a 1.5 version will come out or does anyone have any additional hacks?

BA
Title: Re: Community Builder integration
Post by: Comeskey on March 22, 2008, 19:38:08 pm
Quote
Is this compatible with Joomla 1.5 in legacy?

Well, as I understand it, the plugin is not designed to work with VM 1.1.  And VM 1.1 is the only version of VM that is designed to work with J 1.5.  So through the transitive property of mathematics, the answer is presumably no.

Most of the original fundamental logic and coding on this deal was designed by sync.  I don't know if he has started thinking about a 1.1 version yet or not.  I hope so.  I have no idea how different are the 1.1 regis functions.  My guess is, quite different...

I am embarrassed to admit that I have not even installed 1.1 yet.  So I have zero familiarity with it at this moment.
Title: Re: Community Builder integration
Post by: BritishAgent on March 22, 2008, 20:51:32 pm
Thanks.  I hope so too.

I started with 1.1 so I can't fill you in on what's different.  I like it though!
Title: Re: Community Builder integration
Post by: korb on March 28, 2008, 23:21:04 pm
well I guess I will ask another stupid question:
can this plugin for virtuemart and comunity builder user integration can be done or implemented on the next generation of comunity builder and virtuemart 1.1 stable? ...and joomla 1.5?  :D

thanks a lot, this is an additional idea/request.... and maybe an advantage of virtuemart over every other competition of shopping cart
Title: Re: Community Builder integration
Post by: lord_lethris on April 02, 2008, 21:14:41 pm
It would be cool if someone could do it for VM 1.1.  I'm trying to use it now, I have a shop all setup, its just that because the user registration is being controled by CB, I can't use the cart!!!
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 06, 2008, 07:42:07 am

I have a solution to submit, this is not perfect so far but it works. I will update it later but basically when someone registers through the shop it automatically sync community builder on email confirmation (the sync is pretty much the one you would use in CB administration).

@El Fanjo

I loved the simplicity of this solution. This is what I really need. To automatically "sync" the users registering through VM into CB. I tried this solution and it works but only when the global configuration is set to "Use New Account Activation" (i.e. when the user has to confirm his registration by clicking on a link that gets sent to their email).

However, I don't use that setting. So, the user is automatically approved and they can continue shopping without the hassle of going back to their email and confirming their registration. Thus, the solution (hack) doesn't work for me :(

Would you (or anyone else) know how I could make it work?

Thanks so much!

Carlos
Title: Re: Community Builder integration
Post by: El Fanjo on April 06, 2008, 15:49:00 pm
I can have a look yeah, the thing is the hack might still work but the piece of code has to go elsewhere too.
Well spotted indeed !
Title: Re: Community Builder integration
Post by: Diannef on April 06, 2008, 16:42:46 pm
No field names when registering through CB.  I'm running CB 1.1 and VM 1.0.15.  I know this issue came up earlier but involved another language however I'm using English only.

Any ideas how to resolve this?

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 07, 2008, 00:24:57 am
I can have a look yeah, the thing is the hack might still work but the piece of code has to go elsewhere too.
Well spotted indeed !

@El Fanjo

I tried copying your code in the same "components/com_registration/registration.php" file at the end of the "saveRegistration()" function, around line 232:
Code: [Select]
foreach ( $admins as $admin ) {
// send email to admin & super admin set to recieve system emails
mosMail($adminEmail2, $adminName2, $admin->email, $subject2, $message2);
}

if ( $mosConfig_useractivation == 1 ){
echo _REG_COMPLETE_ACTIVATE;
} else {
/* HACK TO TIE VM REGISTRATION TO CB */

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

/* END OF HACK */
echo _REG_COMPLETE;
}

Unfortunately, that didn't work. So, I'm not sure which is the right function to place the code to sync with CB as I don't know which one is called right after the user registers through VM. Any ideas?

By the way, when using your piece of code (your "hack"), I consistently get the following message:
"No valid database connection".

If I enable "Use New Account Activation" global configuration, this happens when the user clicks on the confirmation link. The good thing is that the user is able to login (which is a good indication that CB sync happened successfully) but he/she gets that message which is still a bit concerning.

Thanks for your help on this!

Carlos
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 07, 2008, 06:45:41 am
By the way, when using your piece of code (your "hack"), I consistently get the following message:
"No valid database connection".

I just found out that the "No valid database connection" was due to a bug in JoomFish, not in your code :)  Here's the link on how to solve it for those interested:
http://forum.virtuemart.net/index.php?topic=35052.msg107053#msg107053

I still haven't found the right place to place the "hack" and sync the users registering through VM into the CB tables :(

Regards,

Carlos
Title: Re: Community Builder integration
Post by: gadabout on April 07, 2008, 10:43:47 am
Hello,

Quote
The latest plugin version is here:
http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip

It should work fine for you - though for security reasons, you should consider upgrading your Joomla version and Virtuemart version.  (Both are now 1.0.15 I believe.)


I have already upgraded to both JOOMLA 1.0.15 and VM 1.0.15...I already have this version of the plugin installed, and prior to my upgrade it worked great...now it doesn't work. People can't register or check out now at my site...

Do you know, will this plugin be updated for the new 1.0.15 versions of JOOMLA and VM?  As I'd still like to have my CB and VM synched and not make my users go through two registration processes...

thanks for the info?
best
M
Title: Re: Community Builder integration
Post by: El Fanjo on April 07, 2008, 21:28:05 pm
@carlos :

the code you posted might be in the proper area but try that :

Code: [Select]
foreach ( $admins as $admin ) {
// send email to admin & super admin set to recieve system emails
mosMail($adminEmail2, $adminName2, $admin->email, $subject2, $message2);
}

if ( $mosConfig_useractivation == 1 ){
/* HACK TO TIE VM REGISTRATION TO CB */

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

/* END OF HACK */
echo _REG_COMPLETE_ACTIVATE;
} else {...

I'll have a look later today and I'll let you know
Title: Re: Community Builder integration
Post by: El Fanjo on April 07, 2008, 21:41:02 pm
OK I've had a look, the above might work.

If it doesn't, I haven't tried it, but my guess would be to try something like :
line 249 :
Code: [Select]
if ($mosConfig_allowUserRegistration == '0' || $mosConfig_useractivation == '0') {


/* HACK TO TIE VM REGISTRATION TO CB */

$sql_sync = "INSERT IGNORE INTO #__comprofiler(id,user_id) SELECT id,id FROM #__users";
$database->setQuery($sql_sync);
$database->query();

/* END OF HACK */
mosNotAuth();
return;
}

It depends if function activate is called everytime or just when email confirmation is needed.
Sry for my lack of clues on that one has been a long time I haven't looked at J! and VM... I should definitely get back to it !!
Hope it will work, if it doesn't let me know and I'll write a proper hack for that.
Also, even though it is not specified, make sure you have something in your code to handle the failure of the query, you never know...
Title: Re: Community Builder integration
Post by: Comeskey on April 07, 2008, 21:48:17 pm
Hello,
Quote
The latest plugin version is here:
http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip
It should work fine for you - though for security reasons, you should consider upgrading your Joomla version and Virtuemart version.  (Both are now 1.0.15 I believe.)
I have already upgraded to both JOOMLA 1.0.15 and VM 1.0.15...I already have this version of the plugin installed, and prior to my upgrade it worked great...now it doesn't work. People can't register or check out now at my site...
Do you know, will this plugin be updated for the new 1.0.15 versions of JOOMLA and VM?  As I'd still like to have my CB and VM synched and not make my users go through two registration processes...
thanks for the info?
best
M

So you upgraded VM after installing the plugin.  So the VM upgrade probably overwrote plugin files.  Just reinstall the plugin again and see what happens.
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 07, 2008, 22:20:27 pm
@El Fanjo

Unfortunately none of those places seem to work. Actually, the "saveRegistration()" function in the "components/com_registration/registration.php" file does not seem to be called at all when a user registers through VM. I tested this by commenting out the lines:
echo _REG_COMPLETE_ACTIVATE;
and
echo _REG_COMPLETE;

Even after this, after a user registers, the following message appears:
"Registration Complete!You may now login."

This message is the value of _REG_COMPLETE defined in the VirtueMart language files (i.e. "administrator/components/com_virtuemart/languages/english.php"), not in the default Joomla language files modifiable via the Language manager (I figured this out by modifying the value of _REG_COMPLETE in both places).

So, the right file to place the "hack" is the one having the function with an "echo _REG_COMPLETE;" invoking the _REG_COMPLETE defined in the VM language files. The "registration.php" doesn't seem to be the right one. Thus, the question is "which is the correct file/function that VM calls when someone registers?" Does anybody know?

Carlos
Title: Re: Community Builder integration
Post by: El Fanjo on April 08, 2008, 21:54:08 pm
@carlos :
hum I did a search and it is the only occurence of _REG_COMPLETE.
I'll have a look and write the hack for that, the good thing is that both hacks can be applied without interfering with each others. Once applied you then could switch to the registration type you like then.

I'll do it when I get the chance, prob this w-e.
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 08, 2008, 21:58:27 pm
@El Fanjo

Yeah, I don't understand, that's the only _REG_COMPLETE I found too but the function where it is located doesn't seem to be the one being called. I wrote several "echo" statements all over that function and they never showed up on the screen :(

So, that makes me believe that the file registration.php is Not the one being called... but which one else?

Thanks for taking a look at this!

Carlos
Title: Re: Community Builder integration
Post by: El Fanjo on April 09, 2008, 23:32:16 pm
I know it is weird but I think I know where it is coming from.
anyway leave it with me I'll sort this out m8
Title: Re: Community Builder integration
Post by: korb on April 10, 2008, 23:44:51 pm
maybe the VM dewveloper team shall look at this code after the final and stable release of VM, fix it and make it ready to use.
Thanks
Title: Re: Community Builder integration
Post by: carlosleon0615 on April 14, 2008, 08:03:08 am
@El Fanjo

Any luck getting it to work?

Thx,

Carlos
Title: Re: Community Builder integration
Post by: korb on April 15, 2008, 17:04:58 pm
hei
what anout the comunity builder 1.2 release anounced in april..what can we do about that?
Title: Re: Community Builder integration
Post by: Uriel on April 15, 2008, 22:16:59 pm
Hey Guys...

Any chance of a working download link ?  :)
Title: Re: Community Builder integration
Post by: mckayc on April 15, 2008, 23:46:12 pm
I installed this plugin but it is not working!  It is driving me nuts because it will work on some names but not on others.  On most of the names, I will add the VirtueMart shipping information and it will say that it saved the information but when I go back, nothing was saved.  Any ideas?
Title: Re: Community Builder integration
Post by: Comeskey on April 16, 2008, 02:48:33 am
I installed this plugin but it is not working!  It is driving me nuts because it will work on some names but not on others.  On most of the names, I will add the VirtueMart shipping information and it will say that it saved the information but when I go back, nothing was saved.  Any ideas?

Most of the time, if nothing is saving to the database, its because I messed up the database table.

More often than not, the number of fields must match.  So if there is an extra field in either the table or the form, then nothing will save.  I've screwed it up both ways so far at different times.

Have you added any fields?  You mention shipping information - does that mean that it is saving the billing info but not extra shipping addresses?  Are you using any of the built-in VM extra fields?

Which versions of Joomla, Virtuemart, and the plugin are you using?

Is this a live site?  Or do you have the luxury of uninstalling and starting over?

By the way, just to be clear: The modification that El Fanjo and Carlos are discussing is NOT the plugin.  El Fanjo, you might consider moving your discussion to a new thread to avoid confusion...
Title: Re: Community Builder integration
Post by: Comeskey on April 16, 2008, 02:55:41 am
Hey Guys...
Any chance of a working download link ?  :)

I don't understand the question.  What do you wish to download?
Title: Re: Community Builder integration
Post by: Uriel on April 16, 2008, 10:07:42 am
The Community Builder plug in please. :)
Title: Re: Community Builder integration
Post by: korb on April 16, 2008, 12:29:49 pm
Here is the author's page, and a direct link to this plugin
http://www.e-motion.com.au/index.php?option=com_content&task=view&id=69&Itemid=74

Here is the link for download the latest 0.1.12 version
http://joomlacode.org/gf/download/frsrelease/6770/22212/cb_virtuemart_plugin_0.1.12-unzip-first.zip
Cheers
Title: Re: Community Builder integration
Post by: Uriel on April 16, 2008, 15:20:14 pm
Thank you kindly.....
Title: Re: Community Builder integration
Post by: mckayc on April 17, 2008, 15:34:57 pm
Thanks comesky for the explanation.  I think you may be right.  I used a component that imported and exported users with passwords and such.  I wonder if that is the culprit of my problems.  I have tried optimizing tables and repairing tables and such in phpMyAdmin, but I am not really sure how I would go about fixing database tables.

I have added fields;  I think what I may do now is try to go back to a backup of a week ago and see what happens with that.  This is not a live site, so I CAN potentially start over.
Title: Re: Community Builder integration
Post by: Comeskey on April 17, 2008, 18:12:20 pm
mckay,

There are 2 things that I would look for:
1.  make sure that the number of fields match between your form and the table
2.  make sure that the field names match exactly between your form and the table

Use phpmyadmin to check the vm_user_info table and use JoomlaXplorer to check the plugin's virtuemart.php file.  (components/comprofiler/plugin/user/plug_virtuemart/virtuemart.php.) 

At about line 245 or so, you should see a list of database fields that the plugin will try to fill.  Make sure that this list matches the fields in your table.

If not, you can use phpmyadmin to delete a field or to change a field name.

One last thing, I have had bad luck trying to add my own new fields to the table.  So I am instead using VM's built-in extra fields.  I have so far been unable to get extra fields 4 and 5 to save to the table with their drop-down functions.  But fields 1, 2, and 3 are simple text forms and they work great.  Just rename them in the VM language file (english.php).  This has allowed me to collect some extra data without adding any new fields to the table.  The VM extra fields are already in there.

Let me know if you need help adding the VM extra fields to the plugin form.
Title: Re: Community Builder integration
Post by: mckayc on April 17, 2008, 21:59:50 pm
Comeskey, I played around with the tables and did a bunch of weirdness experimenting with things.  I think I have finally got it working.  I can't say specifically what got it working because I tried doing so many different things.

Now if I could just get the Acajoom plugin to work...

Thanks for your help!
Title: Re: Community Builder integration
Post by: Comeskey on April 17, 2008, 22:25:10 pm
Cool! :)
Title: Re: Community Builder integration
Post by: craftyweb on April 18, 2008, 10:59:38 am
I'm using Joomla 1.0.15
VE V1.0.15
CB V1.1
and the integration plug in

When a user registers they fill in the Name, username, e-mail and password fields and then an email is sent out t the admins to authorize the user before they can log in.

I can get the info from these fields sent to the admins exactly how I want it by editing the CB language file but cannot seem to get any of the virtuemart info, which is also collected at registration time, into the admin notification email no matter what I do with the language file.
 
Is it possible to include the virtuemart information in an admin email and do I have to edit other files rather than just the language file?

Thanks
Title: Re: Community Builder integration
Post by: Comeskey on April 18, 2008, 17:00:50 pm
You need to disable the Joomla login from site global config and turn on CB login from CB config.

Also, make sure that the VM plugin is published from the CB plugin management screen.
Title: Re: Community Builder integration
Post by: Comeskey on April 24, 2008, 22:20:46 pm
Quote
still has the problem that the user is returned to their profile after they add their billing information instead of staying in the checkout flow. If anyone has solved that problem yet, please post it.
My 'solution' for this is to make a copy of the 'My Shopping Cart' module and to publish it in my banner position (which in my template is directly above the main content area) and assigned it to all Virtuemart menu items in the main menu.
This way, even though they get transferred to the profile page, they can't miss the link back into their cart.

It's funny what you find when you read the instructions sometimes.

I just found this in Sync's plugin readme:
"Blank the setting on CB's registration tab for 'first login URL' to ensure a seamless login during checkout with activation disabled."

Components/Community_Builder/Configuration, then select the 'Registration' tab, then scroll to the bottom.
Title: Re: Community Builder integration
Post by: it on April 26, 2008, 03:54:48 am
Hi

Does this plugin work with Joomla 1.5.2 and Virtuemart 1.1.0 and CB 1.1
Title: Re: Community Builder integration
Post by: Datatonic on April 26, 2008, 13:01:03 pm
I have just installed the plug-in on a system.

I have joomla registration disabled.
I have CB registration enabled.
I have authorization turned off in both.
The return url on first login is blank in CB.

Auto-login at checkout fails.  I get the Registration is now complete! You may now login then a 1 screen.

I have trawled everywhere looking for a solution, which maybe staring me in the face due to a lack of sleep!

How can I ensure that a user is registered, logged in and returned to checkout?

Many thanks.
Title: Re: Community Builder integration
Post by: Fred on April 30, 2008, 13:47:08 pm
Same issue here - Joom 1.0.15, VM 1.0.14, CB 1.1, CBVM plugin 1.12

Workflow is ugly...

1 - Customer adds a product to the cart before registering
2 - Clicks "Checkout" in VirtueMart
3 - Presented with a VM/CB registration page
4 - Registers
5- Get's the "Registration Complete! - you may now login" message - loses Virtuemart page...
6 - Login In - is presented with Profile Page *groan*
7 - Clicks Shows Cart & then Checkout
8 - continues ok...

Some of this is fixable (Step 6) - if I add to the Component/CB/Configuration/URL for first login visit field the following..."index.php?page=checkout.index&cartReset=N&option=com_virtuemart&Itemid=48"
at least when they log back on - they are back at their cart...

I also prefer to "require email confirmation" (not really prefer - but it makes the workflow look slightly better) but even then something is amiss... once the user has clicked the confirmation link and logged in - they get passed back to the Cart - and have to log in AGAIN? hmmm?? Is that the Synch issue people were talking about - not being a coder - my head exploded when the PHP started getting spewed onto the page! ;)
Title: Re: Community Builder integration
Post by: johnnybravo on May 13, 2008, 21:24:24 pm
I have a small problem with my VirtueMart and community builder integration. The system works fine its just that the status icons differ slightly depending where the user registers from.  There are two ways to register on my site, through the normal registration form or when the user has added a product to their basket and proceeds to checkout.

If the user registers through the registration form the status icons in com builder are all correct when the user approves their email address and they can login and purchase products. But if the user registers during checkout, rather than sending an email to require email confirmation the system sends an email requesting account approval (to the customer) - after they approve their account they can login and purchase products as normal, but the status icons in the back end still say the email address still requires confirming.

the user can use their account normally but my client is complaining that the status icons arent correct.

Im using old versions im afraid, cb v 1.0.1 / joomla 1.0.11 / vm 1.0.7

hope someone can help?
Title: Re: Community Builder integration
Post by: Comeskey on May 13, 2008, 22:15:13 pm
I have a small problem with my VirtueMart and community builder integration. The system works fine its just that the status icons differ slightly depending where the user registers from.  There are two ways to register on my site, through the normal registration form or when the user has added a product to their basket and proceeds to checkout.
If the user registers through the registration form the status icons in com builder are all correct when the user approves their email address and they can login and purchase products. But if the user registers during checkout, rather than sending an email to require email confirmation the system sends an email requesting account approval (to the customer) - after they approve their account they can login and purchase products as normal, but the status icons in the back end still say the email address still requires confirming.
the user can use their account normally but my client is complaining that the status icons arent correct.
Im using old versions im afraid, cb v 1.0.1 / joomla 1.0.11 / vm 1.0.7
hope someone can help?

What happens if you don't require email confirmation?
Title: Re: Community Builder integration
Post by: johnnybravo on May 14, 2008, 15:09:01 pm
Hi,

I have just tried it will email approval turned off and its the same, if the user uses the login form through cb it approves the account and all ticks are shown, if the user registers through vm it shows Enabled=Tick, Confirmed=Cross, Approved=Timer

thanks
John
Title: Re: Community Builder integration
Post by: Comeskey on May 14, 2008, 22:22:00 pm
Hi,
I have just tried it will email approval turned off and its the same, if the user uses the login form through cb it approves the account and all ticks are shown, if the user registers through vm it shows Enabled=Tick, Confirmed=Cross, Approved=Timer
thanks
John

I don't know why it is doing that.  But if it were me, I would start by upgrading to the newest versions of Joomla, CB, and VM - and the plugin too.  For security reasons, you should upgrade anyway.  Maybe you will get lucky and the upgrades will fix this problem too.
Title: Re: Community Builder integration
Post by: jplata on May 15, 2008, 21:11:30 pm
Hey everyone, thanks for all the work on this, its a great feature.  Anyways, I do have a few bugs and am not sure how to fix (been searching through this thread for awhile, don't believe a fix is here for the problems).

Firstly, when a non-registered user (or non-logged in user) is trying to shop, then attempts to checkout, i get this error:

New? Please Provide Your Billing Information

Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/components/com_comprofiler/comprofiler.php on line 31


I also get the above error when I go (on the VM module) Account Maintence -> Account Information

I get blank page with the same Fatal error....

My second 'bug' is when a registered user attempts to update their billing information, the information is not saved.  Explained more indepth:

a) a new user can enter billing information upon registration, it is saved
b) a current user attempts to update/change billing information, information is not updated/changed, user is redirected to homepage.

In the backend of VM i can successfully change an individuals billing information, that creates quite a hassel though.

Any help?

And this is all on... Joomla 1.5, VM 1.0.15 and latest CB/VM plugin.
Title: Re: Community Builder integration
Post by: Comeskey on May 15, 2008, 21:18:31 pm
Hey everyone, thanks for all the work on this, its a great feature.  Anyways, I do have a few bugs and am not sure how to fix (been searching through this thread for awhile, don't believe a fix is here for the problems).
Firstly, when a non-registered user (or non-logged in user) is trying to shop, then attempts to checkout, i get this error:
New? Please Provide Your Billing Information
Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/components/com_comprofiler/comprofiler.php on line 31

I also get the above error when I go (on the VM module) Account Maintence -> Account Information
I get blank page with the same Fatal error....
My second 'bug' is when a registered user attempts to update their billing information, the information is not saved.  Explained more indepth:
a) a new user can enter billing information upon registration, it is saved
b) a current user attempts to update/change billing information, information is not updated/changed, user is redirected to homepage.
In the backend of VM i can successfully change an individuals billing information, that creates quite a hassel though.
Any help?
And this is all on... Joomla 1.5, VM 1.0.15 and latest CB/VM plugin.
Is it a bug?  Or just a matter that the plugin was not designed for and has not been tested in J1.5?
Title: Re: Community Builder integration
Post by: jplata on May 15, 2008, 21:21:45 pm
Thats quite possible, I was under the impression to use everything at its most updated release.  I already downgraded from the newest version of VM.  I'm wondering if I want to go through the trouble downgrading the entirety of Joomla.  If that is the issue, then I guess its my only choice.

Thanks
Title: Re: Community Builder integration
Post by: Comeskey on May 15, 2008, 21:34:27 pm
Thats quite possible, I was under the impression to use everything at its most updated release.  I already downgraded from the newest version of VM.  I'm wondering if I want to go through the trouble downgrading the entirety of Joomla.  If that is the issue, then I guess its my only choice.
Thanks

Latest release of the 1.0 platform, yes.  I am using J1.0.15 with no problems.  But 1.5 is a new animal.

Also, as I understand it, CB1.1 only works with J1.5 if the legacy bot is enabled.  CB1.2 will be native to 1.5.

I need to get more experience with 1.5.  But my current install has some sort of permission problems.  It will not let me install any templates or extensions.  Sort of hoping that the problems will magically go away when I upgrade to 1.5.4...
Title: Re: Community Builder integration
Post by: sam on May 17, 2008, 17:25:40 pm
Hi.

Is anyone working on this plugin so that it will work with:
VM 1.1
cb 1.1
and joomla 1.0.x preferably 1.0.13

i see this plugin as being so important and im surprised there arent more people who request the same as me.

please if anyone could help with this i would be very greatful. the new features in VM are impressive but they are useless to me unless my cb registered users can go straight to the shop and pay.

many thanks

Sam.
Title: Re: Community Builder integration
Post by: royceh on May 25, 2008, 07:10:37 am
Wow.

I guess I got spoiled all these years with a pretty seamless integration between J!/CB/VM.  But with all the new configurations coming out, it seems we are in for a period of rough seas!  ;)

Even though I try to contribute to all open source products, I can't help but feel a bit guilty 'expecting' these free products from different development teams to work together flawlessly forever and ever.

That being said, I'm on J! 1.0.15, CB 1.1, and VM 1.1.  When I installed the CB/VM plugin, I get
Code: [Select]
Fatal error: Class 'vmAbstractObject' not found in C:\wamp\www\...\administrator\components\com_virtuemart\classes\ps_shopper_group.php on line 22
No clue what that means, and my system isn't quite live yet, but it would be great to get things back to normal.  I read a few pages back that the plugin doesnt work with VM 1.1 so I guess I'll try downgrading VM (ouch) but if its the only way to get all these things working in the short term, I may have no choice!

Title: Re: Community Builder integration
Post by: Comeskey on May 25, 2008, 19:13:18 pm
That being said, I'm on J! 1.0.15, CB 1.1, and VM 1.1.  When I installed the CB/VM plugin, I get
Code: [Select]
Fatal error: Class 'vmAbstractObject' not found in C:\wamp\www\...\administrator\components\com_virtuemart\classes\ps_shopper_group.php on line 22No clue what that means, and my system isn't quite live yet, but it would be great to get things back to normal.

I have not looked at it, but my guess is that the ps_shopper_group.php file probably references a function on line 22 called vmAbstractObject - and that this function exists in VM 1.0.X but does not exist (or exists with a different name) in VM 1.1.
Title: Re: Community Builder integration
Post by: lord_lethris on May 29, 2008, 17:03:08 pm
Hi.
Is anyone working on this plugin so that it will work with:
VM 1.1
cb 1.1
and joomla 1.0.x preferably 1.0.13
i see this plugin as being so important and im surprised there arent more people who request the same as me.

Me too.. I also know of atlest 20 other people using CB 1.1, VM 1.1, and joomla 1.0.x/1.5

What I can't understand is There is a plugin called "AdsManager".  They have CB intergration by "you" simply creating a set of address fields in CB (which is pi$$ easy to do), and then the "AdsManager" fields setup page simply requests the CB field names... simple.  So you basicly pair up the fields.

For example, you create a field in CB called "CB_Address_1", then in AdsManager goto the fields section, select address, then halfway down the page ther is a "CB" option box, select "CB_Address_1"... presto! instant intigration. Rince and repeat for other fields.

I don't understand why the VM/CB community haven't thought of this.  I don't understand why it has to be so complicated. If I was code savy I would probably do this myself.
Title: Re: Community Builder integration
Post by: andimorton on May 29, 2008, 23:30:05 pm
Hi, I've used the community builder integration with Virtuemart but now my client wants to remove it.  I tried just unpublishing the plugin but that doesn't remove it from the virtuemart registration. I don't remember how I integrated it. does someone have a quick tip for me? I still need community builder for wholesalers to sign up, but not for general customers. It's kind of urgent. Thanks, Andi.
Title: Re: Community Builder integration
Post by: Comeskey on May 31, 2008, 03:50:32 am
Hi, I've used the community builder integration with Virtuemart but now my client wants to remove it.  I tried just unpublishing the plugin but that doesn't remove it from the virtuemart registration. I don't remember how I integrated it. does someone have a quick tip for me? I still need community builder for wholesalers to sign up, but not for general customers. It's kind of urgent. Thanks, Andi.

You will need to restore the original VM files: account.billing.php and checkout_register_form.php.
Title: Re: Community Builder integration
Post by: andimorton on May 31, 2008, 06:24:26 am
Thanks for that... that's basically what I did... copied all the original virtuemart files across because I couldn't remember what had changed. andi.
Title: Re: Community Builder integration
Post by: allegra on June 03, 2008, 09:23:33 am
Hello,

This is exactly my problem: "I have not looked at it, but my guess is that the ps_shopper_group.php file probably references a function on line 22 called vmAbstractObject - and that this function exists in VM 1.0.X but does not exist (or exists with a different name) in VM 1.1."

I installed the plugin withwm 1.1 and joomla 1015 and I have this warning above . How can we solve that problem? Because right now, I cannot use the check out at all. I also have another warning concerning the english.php which cannot find another code. I am sure it's joomla or VM version but I really really have to solve that problem and I don;t want to down grade neither vm or joomla.

Please anyone would have a tip for that?

Thank you so much for your help.
Title: Re: Community Builder integration
Post by: Dysier on June 20, 2008, 03:35:26 am
Joomla! 1.0.15 Stable [ Daytime ] 22 February 2008 23:00 UTC
VirtueMart 1.1.0 stable
Community Builder version is : 1.1

Fatal error: Class 'vmAbstractObject' not found in /home/... .../administrator/components/com_virtuemart/classes/ps_shopper_group.php on line 22

Only other component installed is AEC (latest).

Any hope for a fix?

~Dysier
Title: Re: Community Builder integration
Post by: Dysier on June 21, 2008, 18:21:49 pm
Out of curiosity.  If you just shot yourself in the foot by installing the components mentioned in my previous email and you're using Paypal WPP, what are your options for a shopping card?
Title: Re: Community Builder integration
Post by: angel@verve on July 14, 2008, 23:09:44 pm
Hi all!

Here's how to correctly display (show the selected value) and write into the database virtuemart's extra field 4:

In virtumart.php (line 577), replace:
Code: [Select]
$vmart_html->list_extra_field_4( 'vmart_address_extra_field_4' , $vmart_address_extra_field_4 , "id=\"extra_field_4\"");
Code: [Select]
$vmart_html->list_extra_field_4($vm_address_extra_field_4 , "id=\"extra_field_4\"");

In administrator/components/com_virtuemart/classes/ps_html.php (line 409), replace
Code: [Select]
function list_extra_field_4($t, $extra="") {
(..)
echo "<select class=\"inputbox\" name=\"extra_field_4\" $extra>\n";
(..)
}


with

Code: [Select]
function list_extra_field_4($t, $extra="") {
(..)
echo "<select class=\"inputbox\" name=\"vmart_address_extra_field_4\" $extra>\n";
(..)
}
Title: Re: Community Builder integration
Post by: mknz on July 15, 2008, 21:31:30 pm
Hi.
Is anyone working on this plugin so that it will work with:
VM 1.1
cb 1.1
and joomla 1.0.x preferably 1.0.13
i see this plugin as being so important and im surprised there arent more people who request the same as me.
please if anyone could help with this i would be very greatful. the new features in VM are impressive but they are useless to me unless my cb registered users can go straight to the shop and pay.
many thanks
Sam.


Good God, we need this bad!
VM 1.1
CB 1.1
J! 1.0.15
Please Help!
Title: Re: Community Builder integration
Post by: richm on July 21, 2008, 22:54:56 pm
Is anyone working on this plugin so that it will work with:
VM 1.1
cb 1.1
and joomla 1.0.x preferably 1.0.13
i see this plugin as being so important and im surprised there arent more people who request the same as me.

If someone wants to create this or update the existing project, I will be happy contribute to the development costs.
Title: Re: Community Builder integration
Post by: webgobe on July 22, 2008, 07:05:50 am
Me too.
Title: Re: Community Builder integration
Post by: matrix845 on July 23, 2008, 02:19:52 am
I'm searching another person for the development.


I have 2 choice:

1 it's to find another person and contribute to the development cost

2 to do this job I .... what person are intested in the second choice?



Br


Bye

Pierpaolo
Title: Re: Community Builder integration
Post by: webgobe on July 23, 2008, 07:15:29 am
Any choice is interesting for me, if works with CB 1.1+, VM 1.0.* (That's essential, I need it for a Multiple Vendors Hack powered shop) and Joomla 1.0.*.
The actual one reads correctly the data from database, but any attempt to save the data - even if unmodified - ends up in wiping the data from database.
Title: Re: Community Builder integration
Post by: kubbah on July 27, 2008, 00:16:44 am
I have installed already virtuemart on my website...
I would like to install CB now...
please... anybody could help me with it???
how to make them live together??
I know they are not fully compatible...
but is there a way to use them together, and have the community function with shop on the same web??

Vm 1.1
cb. 1.2 rc2
joomla 1.5
thank you very very much!
Title: Re: Community Builder integration
Post by: charles33 on August 16, 2008, 09:24:17 am
My question is, 1. can CB co-exist with Virtuemart? Other than CB basics, like replacing the joomla user registration we wouldn't need CB to do anything fancy; I'll explain.

I have searched and searched for a question similar to mine with no success, so rather than starting a new thread I thought I ask you guys in this one.

Because our users are growing, we are trying to integrate a phpBB forum into our VirtueMart 1.0.13a and Joomla 1.0.13 Stable, we have modified Virtuemart beyond belief, everything is 100% stable and working. In order for us to integrate phpBB we need CB, along with cb connector (forum bridge) (http://"http://cbconnector.com/index.php?option=com_content&task=view&id=15&Itemid=31"), as you can see the requirements.

We have tried and researched other bridges, but none will work with our environment. There was one; joomphpbb by elearningforce, but it doesn't support phpBB 3, which is the latest version with all the bells and whistles.

2. Can anyone elaborate on CBs basic role in this integration process? 3. And will we encounter any speed bumps (resistance)?

Thanks in Advance!

Kind Regards,

Charles
Title: Re: Community Builder integration
Post by: Carlos Sousa on August 19, 2008, 15:50:12 pm
Hello to all!

Something is hapening on my site and I can't figure it out.

I have Joomla 1.0.15, Virtuemart 1.1.2 and CB 1.1 and tryed to inslatall the CB plugin 1.12.
I read this Thread and tried justa about everithing but I keep getting a:
Code: [Select]

Fatal error: Class 'vmAbstractObject' not found in /home/sousac/public_html/pictogramsrus.com/administrator/components/com_virtuemart/classes/ps_shopper_group.php on line 22

every time I do anything related to the users profiles.

Can anyone help me? What did I do wrong?

Carlos
Title: Re: Community Builder integration
Post by: unformatted on August 27, 2008, 21:32:55 pm
Hi!

Please I need to integrate CB1.2 with VM1.1 (J!1.5.6)

Can anyone help me please?
Title: Re: Community Builder integration
Post by: sync on September 02, 2008, 08:25:16 am
Hi all,

Sorry about the long delay, we haven't had time to keep the component updated as often as we would have liked. But we've found some time recently and I've got a version which may be suitable for testing - I was developing on

Joomla 1.5.6
Community Builder 1.1
Virtuemart 1.1.2

Due to some large changes in the components I've had to change the way the plugin works; at the moment, it doesn't replace the two virtuemart user information screens with the community builder ones, but it does allow for the same virtuemart tab in the community builder profile, and also handles synchronisation of users from virtuemart registrations into the CB user table.
 At the moment it handles this in an inefficient way by running a CB sync-users command through a module which can be shown on any page the CB login box is shown.
 One benefit of this change in architecture is that the plugin no longer requires hacking of any components; you install a CB plugin and a Joomla module, configure some options and it should be ok.

This hasn't been well tested at all, but considering the demand for this plugin I thought I'd release what's been done to the community and see if #1 there are any bug reports relating to different server/Joomla/component configurations, and #2 if there are any feature suggestions or ideas.

I'll be placing this on the JoomlaCode site right now, it'll be version 0.2.1. It should be treated as an Alpha/Beta release, please don't install it on your live site in case it breaks! Test it on a development site first and ensure that things work correctly for your particular setup.

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: ejde on September 09, 2008, 18:58:18 pm
Personally, I would just like to see Virtuemart be able to accept the basic set of fields from Community Builder so that users don't need to enter all their information a second time in Virtuemart.

username
password
firstname
lastname
email
address
city
state
zip
country
phone
fax

What's in order, before anything else, is a simple plugin that can simply map the table data from CB into VM's equivalent table data.
Title: Re: Community Builder integration
Post by: sync on September 10, 2008, 01:49:24 am
Hi Ejde,

That's about the state of the plugin right now - it shows the Virtuemart info in Community Builder, so if a user registers with CB their VM info is filled from the rego page, and their CB profile lets them maintain their VM info too.
  If a user registers in VM, then (with the CB sync module which 'pushes' this VM registration into CB) their VM info is filled but not any other CB tabs when they enter CB.
  This VM-rego is the section that I've had to change with the latest version, it's not as fully integrated as I would like, but as it is it allows integration between the two which is half the problem.

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: willowtree on September 27, 2008, 11:20:15 am
Is this likel;y to work on J1.0?

I have to stay on J1.0 for another componant which is Vital to my site, but I'm on VM 1.1 and I really need to integrate CB with it.
Title: Re: Community Builder integration
Post by: sync on September 29, 2008, 03:33:14 am
Is this likel;y to work on J1.0?

Hi Willowtree,

I wouldn't think so anymore - the old version was built for Joomla 1.0 but the new one was only tested with 1.5. If you've got a development site you could test it - it may work ok as long as CB and VM are both on the required versions, as I recall most of the changes (perhaps all?) were related in updates to VM and CB and not to Joomla - but I wouldn't be too hopeful and I definitely wouldn't do this on a live server.

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: willowtree on September 29, 2008, 13:15:24 pm
I think i''ve got some kind of version working.

I had CB 1.0 and VM1.0 working on Jm 1.0, but then upgraded VM and it all went wrong.

I've hacked at the virtuemart.php file in the CB plugin that was throwing an error when people tried to register, so now my file looks like this:

I also had to grab a copy of the vm 1.0 file language.class.php and rename it to cblanguage.class.php and upload it to /administrator/components/com_virtuemart/classes/cblanguage.class.php

I think thats it,

hope it helps anyone, usual disclaimers apply!

Oh, I had to disable the select State field. Not a problem for me as I'm in the UK and it's pretty redundant, perhaps someone else can fix it? it seemed to be a problem that the cb plugin couldn't work out a value for $mm_action_url so it couldn't load the correct script?
Title: Re: Community Builder integration
Post by: willowtree on September 29, 2008, 13:16:21 pm
Had to attache the file as too lareg to post,


[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: testbot on September 29, 2008, 17:19:42 pm
simple question: does this work or not?

i just don't have time today to read this entire thread to find out if it works or not.

we have cb installed and need to add a shopping cart but if integration doesn't work forget it.

i can't believe this thread was started in 2006 and it's just a mess.  there really needs to be better support for cb integration since it's probably the most widely used component in joomla.

i hate to say it but anything that ties in with user registration needs to think about building cb integration into the core of their product.

also, if this thread is stickied and has the title "Community Builder Integration", the first post should stay updated with how to use this plug-in and the current steps on how to use it.  it's very misleading and discouraging entering a thread like this.  i'm guessing this thread is riddled with attachments and code snippets and there's no way for someone to know what's really current unless they read 20+ pages. :(

the developers/owners of viruemart need to respond to fix this thread or make a new one imo. :)

ps- sorry abt spelling/grammar.  i'm very busy today and had to post this at lighting speed.
Title: Re: Community Builder integration
Post by: virtualbiz4u on October 03, 2008, 22:09:51 pm
Is anyone working on integrating Community Builder 1.2 with Virtuemart?
I do not want to go back to 1.1 to use this integration plug in.

Title: Re: Community Builder integration
Post by: willowtree on October 06, 2008, 17:19:36 pm
1.2 is only available for subscribers at the moment so there may not be a huge demand until it is freely available,
Title: Re: Community Builder integration
Post by: swacks on October 12, 2008, 23:07:51 pm
1 have it working on 1.1.2 vm latest stable at 12oct08

using the subscription CB
an unmodified/unhacked version of joomlaforge even thoughh its supposed to be for j15 it works on my j1.0.15


[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: carlosleon0615 on October 14, 2008, 23:53:28 pm
1 have it working on 1.1.2 vm latest stable at 12oct08
using the subscription CB
an unmodified/unhacked version of joomlaforge even thoughh its supposed to be for j15 it works on my j1.0.15
I am using Joomla 1.0.15, VM 1.1.2 and CB 1.1. I just installed the attachment "Swacks" included in his reply and it WORKS!!
FINALLY, A SOLUTION TO THIS ISSUE! I've been looking for this solution for a loooong time!
I just needed a way to automatically sync users that register through VirtueMart and publishing a "hidden" module that does the CB sync is easy enough!
No more emails from customers complaining they can't login. And no more worries about customers Never returning because of this!
THANK U, THANK U, THANK U!
Carlos
Title: Re: Community Builder integration
Post by: sync on October 15, 2008, 00:35:55 am
1 have it working on 1.1.2 vm latest stable at 12oct08
using the subscription CB
an unmodified/unhacked version of joomlaforge even thoughh its supposed to be for j15 it works on my j1.0.15

Hi Swacks,

That sounds great - what did you need to change to get it working? Hopefully we could work those changes into the main release! Do you remember if it was the new virtuemart that needed some changes, or Joomla?

Cheers,
Ben.
Title: Re: Community Builder integration
Post by: korb on October 15, 2008, 11:34:52 am
Does this plugin work with Joomla 1.5 also and CB 1.2?

Or this is just for VM 1.1 and Joomla 1.0?

Danny
Title: Re: Community Builder integration
Post by: sfpkent on October 17, 2008, 06:09:12 am
Hi,

Great, it works great for me! :)

Kent
Title: Re: Community Builder integration
Post by: sfpkent on October 17, 2008, 06:26:31 am
Hi,

The plugin is great but I have problem after user registered, verified the account.

When customer wants to login, error popup:

"Unsupported operand types in /home/myprint1/public_html/daimingjewellery/includes/router.php on line 140"

what should i do to solve it?

Thanks & God bless!
Kent
Title: Re: Community Builder integration
Post by: thefbi on October 17, 2008, 12:09:32 pm
Hello,
i have joomla! 1.5.6 and virtuemart 1.1.2 and cb 1.2.
The plugin is ok but problem with module cb sync, when i publy it, my site is out and the error :

Fatal error: Call to undefined method stdClass::getCfg() in D:\xampp\htdocs\sitejoomlafred-votre-site\administrator\components\com_comprofiler\library\cb\cb.database.php on line 544


Can somebody help me ?
tanks,
Frédéric.
Title: Re: Community Builder integration
Post by: thefbi on October 17, 2008, 12:10:36 pm
Hello,
i have joomla! 1.5.6 and virtuemart 1.1.2 and cb 1.2.
The plugin is ok but problem with module cb sync, when i publy it, my site is out and the error :

Fatal error: Call to undefined method stdClass::getCfg() in D:\xampp\htdocs\sitejoomlafred-votre-site\administrator\components\com_comprofiler\library\cb\cb.database.php on line 544


Can somebody help me ?
tanks,
Frédéric.
Title: Re: Community Builder integration
Post by: Bob Bloom on October 19, 2008, 22:39:58 pm
I have the plug_virtuemart_0.2.1_unzip_first.zip working at http://autobody.net (still finishing up the live site).

This is awesome.

The state field does not display on the CB registration page. The code looks fine.

Does the CB plugin assume that a JS script is already loaded (in the html header)? If so, what is the JS script so I can add it to my Joomla template (eg, IF $option == com_profiler echo "whatever the link is!")

I'm using Joomla 1.0.15 (unfortunately -- not Joomla 1.5.7).

I'm also using CB 1.2 RC3  --> Yes, that's RC3!

This integration works with RC3!

Awesome!

-Bob
Title: Re: Community Builder integration
Post by: Bob Bloom on October 24, 2008, 01:56:13 am
I found the problem, and now the State/Province field works in CB's registration form.

My fix is at http://southlasalle.com/forum/viewtopic.php?f=5&t=41.

-Bob
Title: Re: Community Builder integration
Post by: scubabyss on October 27, 2008, 17:16:48 pm
How did you install the VM_plugin on J1.0.15, VM1.1.2 and Cb1.1 ?
It is refused by CB plugin backend management
Did you load the files manually ? I tried to load them in Com_Profiler/plugin/users and them com_profiler/plugin. No result.
In which directory should each file be located ?

Thank for your help
Title: Re: Community Builder integration
Post by: Bob Bloom on October 27, 2008, 18:38:57 pm
Scubabyss,

I installed it on Joomla 1.5.7, VM 1.1.2, and CB 1.2RC3; and, Joomla 1.0.15, VM 1.1.2, and CB 1.2RC3.

I've not, and do not intend to, install it with CB 1.1.
-Bob
Title: Re: Community Builder integration
Post by: scubabyss on October 27, 2008, 18:54:07 pm
Hi Bob
Thanks for the extremely prompt reply. Reason of the impossibility to install the plugin is may be CB 1.1 works differently.
I am going to upgrade to CB1.2 RC3. At least I am sure you installed the plugin with normal procedure.
Kind Regards
Scubabyss
Title: Re: Community Builder integration
Post by: lord_lethris on October 31, 2008, 15:54:00 pm
Not all of us have access to CB 1.2RC3

It worries me that Joomla + CB + Fireboard + VirtuMart are the most common used components, yet there is STILL not a single plugin that bridges the lot.

Whats gonna happen now Jommla is concentrating on v1.5 development only and de-comissioning v1.0?
Title: Re: Community Builder integration
Post by: Bob Bloom on October 31, 2008, 19:18:21 pm
Everyone,

Joomla 1.0.x is done. The last RocketTheme.com template for 1.0 is December. Joomla is ceasing all Joomla 1.0.x efforts July 22nd.

Integration exists for Joomla 1.5.7 + VM 1.1.2 + CB 1.2(RC3) + phpBB3 -- that's something!

-Bob
Title: Re: Community Builder integration
Post by: scubabyss on October 31, 2008, 22:54:03 pm
Upgrade to CB RC3 done and integration works fine.
Once I will be sure that all the modules I am using are working fine with it, I will jump to Joomla 1.5.
Thanks to the persons that are developing these products. As a non profit organization, I benefit from this large effort and I am very grateful

Kind Regards
Scubabyss
Title: Re: Community Builder integration
Post by: Christofer on November 12, 2008, 15:03:01 pm
hy guys now i read thise whole thread and then i tried to use this plugin for my website. but without any success.

I'm using
Joomla 1.0.15
VM 1.0.13
and CB 1.1

When i want to register i got this error message

Code: [Select]
Warning: getVirtuemartTab::include_once(C:/xampplite/htdocs/playground/administrator/components/com_virtuemart/classes/mainframe.class.php) [function.getVirtuemartTab-include-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\playground\components\com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 354

Warning: getVirtuemartTab::include_once() [function.include]: Failed opening 'C:/xampplite/htdocs/playground/administrator/components/com_virtuemart/classes/mainframe.class.php' for inclusion (include_path='.;\xampplite\php\pear\') in C:\xampplite\htdocs\playground\components\com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 354

Fatal error: Class 'vmLanguage' not found in C:\xampplite\htdocs\playground\components\com_comprofiler\plugin\user\plug_virtuemart\virtuemart.php on line 371
Title: Re: Community Builder integration
Post by: snazzyperry on November 25, 2008, 21:48:31 pm
It's great that SWAKS changed, but I also need to see and select the "group" as I have customers that are in different groups with different levels of pricing. This now does NOT allow me to change that unless I go into VM Users itself and do this change. The OLD plugin used to allow this for me in the past. Is there a way to easily add this and to remove the User Banking information on the Account Maintenance/registration page??

Thanks
Snazzyd
Title: Re: Community Builder integration
Post by: Prova99 on December 01, 2008, 05:31:02 am
Is anyone using this extension on Joomla 1.5 NATIVE?  I'm using:

Joomla 1.5.8 Native
CB 1.2 RC3
VM 1.1.2

And I can't even get this extension to install, automatically.  I've just recently installed everything fresh, so I haven't hacked it up.  I've read this thread, but can't deduce if people are using it on J! 1.5 native.  It looks like everyone up until a few posts ago is definitely using it on Legacy or older versions of Joomla.

Anyone have advice on getting this to work on 1.5 native? 
Thanks,
-David

Also, any ideas why under VM's admin/configuration: User Registration Type: No account creation doesn't seamlessly & silently allow a person to checkout without registering (like it says it's supposed to on the Tip!)??
Title: Re: Community Builder integration
Post by: ssnobben on December 11, 2008, 16:29:25 pm
Everyone,
Joomla 1.0.x is done. The last RocketTheme.com template for 1.0 is December. Joomla is ceasing all Joomla 1.0.x efforts July 22nd.
Integration exists for Joomla 1.5.7 + VM 1.1.2 + CB 1.2(RC3) + phpBB3 -- that's something!
-Bob

Agree binding it with Jfusion http://www.jfusion.org
Title: Re: Community Builder integration
Post by: marianaf on December 12, 2008, 01:19:40 am
Hi to all!

I followed this thred but I´m still having some problems in inserting the extra  VM fields in the plugin registration.

For example, I have 1 extra field (a select list) identified with "vm_reg" name. In the virtuemart.php file (CB plugin) I added these lines:

(around line 250)

. ' , `phone_1` = "'.$_REQUEST['vmart_address_phone'] . '"'
. ' , `phone_2` = "'.$_REQUEST['vmart_address_mobile'] . '"'
. ' , `fax` = "'.$_REQUEST['vmart_address_fax'] . '"'
. ' , `vm_reg` = "'.$_REQUEST['vmart_vm_reg'] . '"'

(around line 370)

 $vm_bank_iban = '';
 $vm_perms = '';
 $pad = '';
  $vm_reg = '';


(around line 380)

if ( isset($_REQUEST['vmart_company']) ) $vm_company = $_REQUEST['vmart_company'];
if ( isset($_REQUEST['title']) ) $vm_title = $_REQUEST['title'];
if ( isset($_REQUEST['vmart_vm_reg']) ) $vm_reg = $_REQUEST['vmart_vm_reg'];

(around line 420)

 $vm_address_mobile = $row->phone_2;
 $vm_address_fax = $row->fax;
$vm_reg = $row->vm_reg;

(around line 520)

 $rv .= '<tr><th class="titleCell">' . $pad . $VM_LANG->_('PHPSHOP_USER_FORM_FAX') . '</th>';
                        $rv .= '<td class="fieldCell"><input class="inputbox" name="vmart_address_fax" type="text" size="40" maxlength="32" value="'.$vm_address_fax.'" />';
                  
                  
// Extra Fields when defined in the language file
$rv .= '<tr><th class="titleCell">' . $pad . 'Tipo de Registo' . '</th>';
$rv .= '<td class="fieldCell"><select class="select" name="vmart_vm_reg" type="select" value="'.mosGetParam( $_REQUEST, 'vm_reg').'" />';
$rv .= getFieldIcons(0,false,false);



I got a new select list BUT THE VALUES ARE NOT SHOWING UP...


Did any one have the same issue?
How do I insert all my new fields in the registration process / Virtuemart information?

I use joomla 1.5, cb 1.1 and vm 1.2

Thank you...

Mariana         

[attachment cleanup by admin]
Title: Re: Community Builder integration
Post by: dlawler on January 15, 2009, 02:24:22 am
Bob,

I downloaded your fixed plugin and installed it and everything works fine except the state province field.

If you could tell me how you fixed it I would really appreciate it.

Thanks
Title: Re: Community Builder integration
Post by: Bob Bloom on January 15, 2009, 03:46:42 am
Yes, the state/province field. Well, I fixed it, and prettied up the formatting a touch.

But there are problems, and the reason I haven't released it is the notion that I'm going to fix the problems first.

This is such an ongoing project that I registered http://CBintegrationVM.com.

dlawler, can I ask you a favour? Can you email me at info@southlasalle.com.

-Bob
Title: Re: Community Builder integration
Post by: enap on January 15, 2009, 07:02:43 am
I installed the the package today, ran into a few issues:

- state/country dropdown's aren't populating.
- seems _no_ drop downs (field type select, show in reg, required, etc) are populating in backend (could be same issue as first)
- when trying to register, was getting:
Fatal error: Call to undefined function shopmakehtmlsafe() in /public_html/administrator/components/com_virtuemart/classes/ps_html.php on line 62
- in checkout, Bill To user info doesn't show

To fix the dropdown issues, I just made them text fields (low traffic site) via phpMyAdmin.
Removed reference to shopmakehtmlsafe() from that file. Seems it only strips out dodgy characters.
Hardcoded mysql queries into customer_info.tpl.php to show correct user info, queries in ps_checkout.php don't seem to be working?

Only got to step 1 of the checkout, continuing work on it tomorrow. I'll be putting a bypass shipping mod on anyway, but VM needs its user details.

I'm running Joomla 1.5.8, VirtueMart 1.1.2, Community Builder 1.2 RC4 (with jLord's PHPList integration) & Fireboard 1.0.5RC2. Was running sh404SEF but disabled during dev.

All seem to be working together now, just gotta clean it all up.
Title: Re: Community Builder integration
Post by: faridx82 on January 15, 2009, 13:04:53 pm
Bob,
I downloaded your fixed plugin and installed it and everything works fine except the state province field.
If you could tell me how you fixed it I would really appreciate it.
Thanks

I have a solution for you. I face exactly the same problem and got it fixed.

step1: search joomla.javascript.js in your website files.

step2: put joomla.javascript.js to your website root

step3: edit file name virtuemart.php inside \components\com_comprofiler\plugin\user\plug_virtuemart

step4: look for line -->

/* ==============================================================================================
   START: ADD THE JS LINE THE ORIGINAL HACKER LEFT OUT --Bob Bloom
   ============================================================================================== */
  print("<script type=\"text/javascript\" src=\"http://prodrive.websitewelcome.com/~gst/vm112/includes/js/joomla.javascript.js\"></script>");
/* ==============================================================================================
   END: ADD THE JS LINE THE ORIGINAL HACKER LEFT OUT --Bob Bloom
   ============================================================================================== */

change the link to http://yourwebsitename/joomla.javascript.js\.

your state will show up :D

This problem happens because file http://prodrive.websitewelcome.com/~gst/vm112/includes/js/joomla.javascript.js

is no longer there. By directing it to your website, it will come back to work.



Title: Re: Community Builder integration
Post by: dlawler on January 16, 2009, 00:38:55 am
Thanks so much farid for your quick and in depth response.  At the rate at which I figure things out you probably saved me about 20 hours of shouting at my computer screen.

Works Great! :)
Title: Re: Community Builder integration
Post by: faridx82 on January 16, 2009, 16:41:25 pm
Youre welcome! :D
Title: Re: Community Builder integration
Post by: bulesz on January 19, 2009, 12:13:55 pm
Is there anybody with working integration with J1.5 + VM 1.1.2 + CB 1.2 ???

Thanks,
Bulesz
Title: Re: Community Builder integration
Post by: bulesz on January 19, 2009, 14:10:49 pm
When I publish the CB plugin, I have got this error, while trying registering or udate my profile..

Fatal error: Call to undefined function shopMakeHtmlSafe() in /mnt/backup/hosting/web/neuroweb-ftp/www.neuroweb.hu/hollei_work/administrator/components/com_virtuemart/classes/ps_html.php on line 62

The module is turned off. I am using ONLY the plugin.
But no success..

(strange that the VM tab doesnt show up on the user profile!)

J1.58 + VM 1.1.2 + CB 1.2 RC4

I hope you could help me!

Thanks,
B.
Title: Re: Community Builder integration
Post by: bulesz on January 19, 2009, 18:36:52 pm
Using CB1.1 get the same error message:

Fatal error: Call to undefined function shopMakeHtmlSafe() in /mnt/backup/hosting/web/neuroweb-ftp/www.neuroweb.hu/hollei_work/administrator/components/com_virtuemart/classes/ps_html.php on line 62
Title: Re: Community Builder integration
Post by: enap on January 21, 2009, 05:21:44 am
Had the same issue with shopMakeHtmlSafe(), I just removed it from the code. I assume its for pulling out dodgy characters from strings. Didn't seem to have any effect on the site (other than letting it work).
Title: Re: Community Builder integration
Post by: bulesz on January 21, 2009, 07:21:26 am
I have tried the same, but the country / state selector dropdown is empty...tried the fix what mentioned here but the same result..:(

any idea?

thanks,
b.
Title: Re: Community Builder integration
Post by: bulesz on January 23, 2009, 22:40:22 pm
Thanks, I have killed that line..
But the country state issue still there and irritate my eyes..:)

Is there any cure for that?

Cheerz,
B.
Title: Re: Community Builder integration
Post by: enap on January 27, 2009, 05:06:23 am
I had the same issue, re-installing VirtueMart fixed it & re-installing the integrator fixed it. However when the plugin is enabled I can't edit CB user details in the backend, I just get a blank white page. Any ideas on this?
Title: Re: Community Builder integration
Post by: carlosleon0615 on January 27, 2009, 06:13:29 am
I have a similar problem as enap. I have Joomla 1.0.15, CB 1.1 and had VM 1.1.2. Everything was working until I upgraded to VM 1.1.3. After that, I'm no longer able to edit "user details" in CB. If I try to do it from the backend, I get the error:
Fatal error: Call to undefined function shopMakeHtmlSafe() in <Joomla Root>/administrator/components/com_virtuemart/classes/ps_html.php on line 62

If I login as a user in the frontend and try to edit my details, I simply get a blank page.

I tried to "remove" the call to shopMakeHtmlSafe() function in "ps_html.php" (as enep suggested) by replacing the following line:

Code: [Select]
$html .= "<option value=\"$key\" $selected>".shopMakeHtmlSafe($val);
with this:

Code: [Select]
$html .= "<option value=\"$key\" $selected>".$val;
I'm not sure if that's correct but at least my users can now edit their info from the frontend instead of getting a blank page. However, I still cannot edit any user details from the backend as I now get a new error:

Fatal error: Class 'vmCommonHTML' not found in <Joomla Root>/administrator/components/com_virtuemart/classes/mainframe.class.php on line 120

I've been using version 0.2.1 that I had downloaded from a previous post from "swacks":
1 have it working on 1.1.2 vm latest stable at 12oct08
using the subscription CB
an unmodified/unhacked version of joomlaforge even thoughh its supposed to be for j15 it works on my j1.0.15

Is there a new version of this plugin that works with VM 1.1.3? Or any suggestions on how to fix this?

Carlos
Title: Re: Community Builder integration
Post by: enap on January 27, 2009, 07:01:01 am
I've done a fair amount of work on getting everything working (J1.5.8/VM1.1.2/CB1.2RC4 + others), and its a bit of a shamble. They 'work' but as forementioned, various things give errors & the white page of death.

Considering VM & CB would have to be two of the biggest/most popular extensions for Joomla, one would assume there'd be atleast _some_ kind of integration between the 2. And seeing as the first post of this thread is a few years old, and stable integration still hasn't been developed (for current verions), I don't see this happening in the near future.

Should I be looking for a new CMS/eCommerce solution?
Title: Re: Community Builder integration
Post by: bulesz on January 28, 2009, 02:58:02 am
Serious bug was found!

You can demolish the site within the frontend with a normal user!

Logged in with CB login, and goto VM my account maintenance, add an additional shipping address, make some order...

and crash...template not found, fatal errors...etc.. the database was went out..:(

I have tested at first on Joomla ecommerce pack, and after in a brand new installation of Joomla 1.5.9 + VM 1.1.3 + CB 1.2Rc4

So avoid!
Title: Re: Community Builder integration
Post by: ILJ on January 28, 2009, 17:03:16 pm
Fatal error: Class 'vmCommonHTML' not found in /home/xxxxxx/public_html/administrator/components/com_virtuemart/classes/mainframe.class.php on line 119

i commment out this line 119 

//echo vmCommonHTML::scriptTag($url);

and the error seeems stopped,
i am not sure if this ok to do so.

pls advice. tks

update: i dont think its ok to do so. cause it wil disable the rest of the  javascript on the site. :(
it seems the error is related to overlib scripts.




Title: Re: Community Builder integration
Post by: ILJ on January 31, 2009, 01:28:18 am
any help pls  :( :(
Title: Re: Community Builder integration
Post by: fl3tch3r on February 05, 2009, 04:52:28 am
Did a search but didn't find this issue discussed.

Joomla! 1.5.9 Production/Stable
Virtuemart/Community Builder plugin 0.1.12
VirtueMart 1.1.3 stable
Community Builder 1.2 RC3

When I got to install the "plugin" I get "Direct Access to this location is not allowed."

Any idea's what's up? Man I wish this worked. You guys are doing a great job though.
Title: Re: Community Builder integration
Post by: Bob Bloom on February 05, 2009, 05:51:26 am
Is anyone working on CB 1.2 "stable" with VM 1.1.3?

Yes.

Now that "stable" is out, I want to finish this integration.

I have a new site http://CBintegrationVM.com, where I intend to have my demo. Not much there right now. There will be.

Do you have any wish lists? Please leave 'em at my blog post http://www.southlasalle.com/blog/updates-gst-community-builder/.

-Bob
Title: Re: Community Builder integration
Post by: pollo on February 05, 2009, 14:35:07 pm
Hi all i have fix the "Fatal error: Call to undefined function shopMakeHtmlSafe() in <Joomla Root>/administrator/components/com_virtuemart/classes/ps_html.php on line 62 problem" adding this line: require_once ("htmlTools.class.php");
in ps_html.php

Cya.
Title: Re: Community Builder integration
Post by: enap on February 06, 2009, 06:50:31 am
After alot of time spent messing with this, Bob Bloom posted on _his_ forum that the VM/CB integrator (specifically the sync module) is designed for CB1.1. I came to the conclusion that using CB 1.1 is the only option (without code redesign).

I now have the following working together, with no errors/issues.

Joomla 1.5.9 (upgraded from 1.5.6, no issues)
Community Builder 1.1
VirtueMart 1.1.2
Fireboard 1.0.5RC2
PHPList 2.10.9 (using jLord PHPList Int. 1.5.0.3RC1)

I may attempted to update VirtueMart soon, but as they say.. if it ain't broke.. :)
Title: Re: Community Builder integration
Post by: carlosleon0615 on February 06, 2009, 15:58:20 pm
Thank you pollo for sharing your fix. Although that works in the frontend, in the backend I got a different error:
"Fatal error: Call to undefined class vmRequest() in <Joomla Root>/administrator/components/com_virtuemart/classes/htmlTools.class.php"

Therefore, I followed your approach and found that the vmRequest class was defined in the file "request.class.php". Thus, I also added the following line:

Code: [Select]
require_once( CLASSPATH."request.class.php");
That got rid of that error, but I got yet again another error about another undefined class, which I solved by adding the following line:
Code: [Select]
require_once( CLASSPATH."phpInputFilter/class.inputfilter.php");
And that did it! No more errors. So, in summary, the complete solution to get rid of the error "Fatal error: Call to undefined function shopMakeHtmlSafe()", in both the frontend and the backend is the following:

1. Edit the file "<Joomla Root>/administrator/components/com_virtuemart/classes/ps_html.php"
2. Look for the "function selectList" and add the above mentioned 3 lines of code, so that it looks like this:
Code: [Select]
function selectList($name, $value, &$arr, $size=1, $multiple="", $extra="") {
require_once( CLASSPATH."htmlTools.class.php");
require_once( CLASSPATH."request.class.php");
require_once( CLASSPATH."phpInputFilter/class.inputfilter.php");

$html = '';
if( empty( $arr ) ) {
$arr = array();
}

Notes:
1. I am using VM 1.1.3, CB 1.1, Joomla 1.0.15
2. This VM-CB integration plugin was working perfectly for me without any changes with VM 1.1.2, but when upgrading to VM 1.1.3, I started getting a blank page on the frontend and the following error on the backend:
"Fatal error: Call to undefined function shopMakeHtmlSafe()"

The fixes in this post is especifically for this error, and thus, it seems that this plugin now works with VM 1.1.3, CB 1.1 and Joomla 1.0.15.

I hope this helps other people!

Carlos
Title: Re: Community Builder integration
Post by: ILJ on February 07, 2009, 07:03:44 am
Is anyone working on CB 1.2 "stable" with VM 1.1.3?

Yes.

Now that "stable" is out, I want to finish this integration.

I have a new site http://CBintegrationVM.com, where I intend to have my demo. Not much there right now. There will be.

Do you have any wish lists? Please leave 'em at my blog post http://www.southlasalle.com/blog/updates-gst-community-builder/.

-Bob

hi bob,

do u got any working version for vm1.1.2, cb 1.1 and Joomla 1.01.15.?

i see ur site u mention the final attemp is not working?

this error

Fatal error: Class 'vmCommonHTML' not found in /home/myserver/public_html/administrator/components/com_virtuemart/classes/mainframe.class.php on line 119

is driving me crazy bob.

thanks
Title: Re: Community Builder integration
Post by: ILJ on February 07, 2009, 07:18:13 am

hi bob,

do u got any working version for vm1.1.2, cb 1.1 and Joomla 1.01.15.?

i see ur site u mention the final attemp is not working?

this error

Fatal error: Class 'vmCommonHTML' not found in /home/myserver/public_html/administrator/components/com_virtuemart/classes/mainframe.class.php on line 119

is driving me crazy bob.

thanks
[/quote]

what i understand is some function in vmCommonHTML that being used by the plugins  that not found in  mainframe.class.php..

line 119
echo vmCommonHTML::scriptTag($url);

im  nt coder. cant proceed further. :( :(
Title: Re: Community Builder integration
Post by: revive on February 17, 2009, 14:32:07 pm
Anyone still using J1.0 should prepare for migration to J1.5.x asap, as J1.0 is end of life in a short while.. meaning, nada, zip, zero updates, patches, support, etc.. and for the hard work, you'll be finely rewarded with a better CMS that is more feature rich, robust and extensible.

Cheers.
Title: Re: Community Builder integration
Post by: Bob Bloom on February 18, 2009, 22:45:45 pm
Hello! Thank you for your comments here.

YES, I HAVE THE CB SIDE OF THE INTEGRATION WORKING.

It works in VM 1.1.3 - CB 1.2 "stable", in Joomla 1.5.9 NATIVE!

Now, I have the VM side to do. The crux right now is using CB site registration only, which suppresses VM's cart in checkout.

I guess-timate that I'll have this done by the weekend.

I'll have updates on my site's "micro-blog" at the top.

-Bob
Title: Re: Community Builder integration
Post by: revive on February 19, 2009, 02:45:15 am
@bulesz - language my friend, language
Title: Re: Community Builder integration
Post by: bulesz on February 19, 2009, 09:17:48 am
OFF:

@revive - So if you have seen only the "bad" words in my reply, and not the cure, what everybody was seeking, so it is your business...I have removed it...to not hurt your sensitive eyes...

I thought that it isnt a langugae or etiquette school...

Please next time focus on the ontopic question... or keep silence... or goto another forum for babies...and leave us alone! If you havent any important message please keep the steam inside!

ON:

for all who needs the cure: put the sync module to the top template position. It hepled me with VM 1.1.3 and CB 1.2 on J1.5.9 so I have fully working integration using the CB or/and VM login too at the checkout...;)
Title: Re: Community Builder integration
Post by: revive on February 19, 2009, 10:11:29 am
@bulesz,

No, this is not an etiquette school by any means ;) valid point, but it is a public space where courtesy and appropriate language are appreciated by all.

Regarding:
Quote
Please next time focus on the ontopic question... or keep silence...
Your response was both inappropriate and off topic, hence my comment regarding it. I did not overlook your contribution in the post, it's great and thank you for posting it for the community. And there is never a need to tell someone to keep quite - did I tell you to keep quite? No, not in the least, your input, as with everyone else, is what makes this community thrive. I simply pointed out that there is probably a better choice of words more appropriate and better suited to all audiences.

I see from your profile pic that you have a lil one as well; we never know when they're looking at our screens,.. and I'm sure you wouldn't appreciate someone using that language around them.

And as for my sensitive eyes, :) not sure about that, but I have no doubt we've covered this topic fairly well,.. unless you feel there is more to say about it, I say let's get on with helping each find solutions and make VM better each day.

Cheers
Title: Re: Community Builder integration
Post by: jenkinhill on February 19, 2009, 11:57:16 am
C'mon guys, this is a forum for sharing VirtueMart uses, problems and solutions. As such I would not expect to see bad language or flaming. That sort of thing can take place in private should you wish, but not on a public forum.

Thanks.
Title: Re: Community Builder integration
Post by: Christofer on February 27, 2009, 12:57:54 pm
Hello!

I have installed the CB VirtueMart Sync + Plugin

However, when I turn CB Sync Module ON. i'm running this config

Joomla 1.0.15
VM 1.0.13 + MVS
CB 1.2

I get the following error on the site:

Fatal error: Call to undefined method stdClass::getCfg() in /www/administrator/components/com_comprofiler/library/cb/cb.database.php on line 544

Can anyone help me out on this? Thanks!
Title: Re: Community Builder integration
Post by: Bob Bloom on March 10, 2009, 03:56:03 am
My Community Builder 1.2 "stable" - Virtuemart 1.1.3 Integration is now available for free download.

I appreciate your support and encouragement, and so have released it sooner than later. In so doing, there are a few things that need polishing.

However, the integration works, so I want it in your hands now.

http://www.southlasalle.com/blog/four-free-new-virtuemart-add-ons-for-vm-113/

-Bob
Title: Re: Community Builder integration
Post by: crony on March 16, 2009, 14:19:42 pm
Hello,

Seems great and so needed ! I'll test it as soon as I can ! :)
Title: Re: Community Builder integration
Post by: xpmaulik on March 23, 2009, 08:06:12 am
Hi Bob,

I tried using your integrator but I am getting the follow error on registration page


Notice: Undefined index: mosConfig_debug in C:\wamp\www\VirtueMart\administrator\components\com_virtuemart\classes\language.class.php on line 129

any ideas guys...

thanks in advance

Maulik
Title: Re: Community Builder integration
Post by: savanteye on March 26, 2009, 17:06:28 pm
hello

the plugin which make the bridge between comunity builder and virtuemart. I installed this plugin on a site and it goes well, but there is a problem which prevent for the design of the site. When i publish the plugin in inscription of comunity builder, the bar of navigation located on the right is  moved in bottom of the site, which does not occur when the plugin is not published. does anybody knows this or knows to solve this problem.

thank you
Title: Re: Community Builder integration
Post by: webgobe on April 17, 2009, 19:23:37 pm
I'm using
         Joomla 1.0.15
         VM 1.0.15 with multi vendor hack
         CB 1.2, and
         cb_virtuemart_plugin_0.1.12
On registration side everything works just fine.
I have two problems in the user profile tough:
a. The field names aren't populated from VM lang file (same code at registration works well)
b. The title dropdown is also populated with empty options. The plugin also works correctly here too, just the lang variables aren't inserted.
Any ideeas on what I should look for is highly appreciated!!!
Title: Re: Community Builder integration
Post by: kurt boeker on June 13, 2009, 19:49:19 pm
Hi have the latest version of everything as of 6/09 and I still can't get the states or country to show up in the select lists. I have tried everything on this topic. still nothing. Anyone had any luck?
Title: Re: Community Builder integration
Post by: Comeskey on June 30, 2009, 18:49:23 pm
After the recent announcement of security vulnerabilities in CB 1.0 and 1.1, I decided to upgrade a couple of old J1.0.15/VM1.0.15 sites to CB 1.2.1. When I did this, it adversely affected sync's Virtuemart CB plugin.

After much searching, I found this post that solved most of my problems:
http://www.joomlapolis.com/index.php?option=com_joomlaboard&Itemid=38&func=view&catid=64&id=79512

So fabf, if you're still out there, thanks a million! You helped me greatly!

My one remaining problem is that the CB regis form is not displaying on the VM checkout page for non-logged-in users. I have temporarily addressed this by modifying the VM language file to add a link to the CB registration page in the line that says, 'New? Please provide your billing information.' But if anyone knows the proper fix to display the fields on that page, please advise.

Thanks!
Title: Re: Community Builder integration
Post by: ThizzParty on July 04, 2009, 21:06:28 pm
Hi All,

      I'm wondering if there will be any problem with me have two diffenent cb login modules?  I have 1 that is assigned to a general position for all pages.  I have a second that displays only on 1-2 pages of the entire website.  It displays on the other side of the side in order to make more room for my forums.

My question is will this cause any problems?  Do I copy the sync module twice, and assign the second sync module to the 2nd cb login?

Thanks
Ty
Title: Re: Community Builder integration
Post by: Comeskey on July 05, 2009, 00:18:51 am
My question is will this cause any problems?

No problem.  You can enable as many login modules as you want.  Makes no difference.

Quote
Do I copy the sync module twice, and assign the second sync module to the 2nd cb login?

Sync's tool is a CB plugin, not a module.  You can only install it once.
Title: Re: Community Builder integration
Post by: rowberry on July 14, 2009, 12:24:56 pm
Hi all
I need to integrate VM & CB. Any ideas how I can do this please?
I have read the forums and found a plugin for an older version of cb & vm.  Would it still work?
Title: Re: Community Builder integration
Post by: rowberry on July 14, 2009, 12:46:44 pm
I found this:
http://www.southlasalle.com/forum/viewtopic.php?f=5&t=81&start=0&st=0&sk=t&sd=a

Has any one else used it please?
People seem to be having a few problems with it that I dont think I would know where to start with them! Any thoughts?
Title: Re: Community Builder integration
Post by: Comeskey on July 14, 2009, 19:05:28 pm
krileon from the CB forums has also released a CB plugin to integrate VM here: http://www.allmysocials.com/index.php?option=com_phocadownload&view=category&id=11:plugins&Itemid=8.

I have played around with it a little bit, but not much.  I'm not sure what versions it is designed for.
Title: Re: Community Builder integration
Post by: rowberry on July 15, 2009, 10:27:39 am
Thanks, I'll take a look.
You say you've played around with it, what did you think?
Title: Re: Community Builder integration
Post by: Comeskey on July 15, 2009, 19:00:01 pm
Thanks, I'll take a look.
You say you've played around with it, what did you think?

I liked the basic logic.  You use the plugin parameters to map your CB fields to the VM fields.  That part is simple, logical, and flexible.  I like being able to control the field mapping through the parameters.  However, I got confused on the workflow when a non-logged user gets to checkout.
Title: Re: Community Builder integration
Post by: opsanger on July 22, 2009, 22:43:12 pm
How can I choose wich fields that are shown with the plugin? I got the "company", "adress 1",..."fax", but these are not the one I have configured in VM...
Title: Re: Community Builder integration
Post by: Comeskey on July 22, 2009, 23:26:15 pm
How can I choose wich fields that are shown with the plugin? I got the "company", "adress 1",..."fax", but these are not the one I have configured in VM...
I think that you need to create the same fields in CB and then match them up in the plugin parameters.
Title: Re: Community Builder integration
Post by: opsanger on July 22, 2009, 23:30:06 pm
I think that you need to create the same fields in CB and then match them up in the plugin parameters.

Hmmm... But the fields that are represented now. I want some fields I have created in CB.
It does not seems that the plug-in care about which fields I choose in VM.. i.e. the fax-field has all parameters to "No", but it still displays...


Where are the plugin parameters? Can't find a place to match fields..
Title: Re: Community Builder integration
Post by: Comeskey on July 22, 2009, 23:40:39 pm
Where are the plugin parameters? Can't find a place to match fields..
Go to Components->Community Builder->Plugin Management.  Then open the VM plugin.  Parameters are on the right side.
Title: Re: Community Builder integration
Post by: opsanger on July 22, 2009, 23:50:00 pm
Go to Components->Community Builder->Plugin Management.  Then open the VM plugin.  Parameters are on the right side.
It only says: "There are no parameters for this item"
Title: Re: Community Builder integration
Post by: Comeskey on July 23, 2009, 04:31:54 am
It only says: "There are no parameters for this item"
We must be talking about different plugins.
Title: Re: Community Builder integration
Post by: baddkar on August 06, 2009, 01:42:39 am
I'm currently having problems integrating VM and CB.
User registering from VM (customer) instead of main page (membership) does not get entered into the CB user table when deciding to register for membership.

1. Non-user can become one of two types of users; either customer or membership.
2. Customer (register only for vm). Later this same customer wants to become a member. They sign up and pay, but now the CB and VM tables are outta sync, which throws an error.
3. Members have their registration info posted to VM user table automatically using AEC. So it works fine.
 
When publishing the 'mod_cb_sync' module I get the following error:

"Call to undefined method stdClass::getCfg()"

Info:
VM 1.1.3
Joomla 1.5.9
CB = 1.2.1

Title: Re: Community Builder integration
Post by: Ken Lyle on August 29, 2009, 13:53:33 pm
Is the latest version of the plugin the one attached to the first post in this thread?

Thanks,
K
Title: Re: Community Builder integration
Post by: Comeskey on August 30, 2009, 04:26:58 am
Is the latest version of the plugin the one attached to the first post in this thread?
Well, we ended up discussing more than one plugin here - which is partly my fault.

The original plugin can be found here:
http://joomlacode.org/gf/project/vmart_cb/

But I think we have concluded that this does not work with CB 1.2.

The other one is here:
http://www.allmysocials.com/index.php?option=com_phocadownload&view=sections&Itemid=8
Title: Re: Community Builder integration
Post by: vanaiem on September 05, 2009, 04:12:14 am
Does the one on the allmysocials.com work? 
Title: Re: Community Builder integration
Post by: inthysite on September 10, 2009, 21:10:44 pm
Does the one on the allmysocials.com work? 

I searched the Joomlapolis site and discovered the link to allmysocials for this plugin.  It appears to have been written by a member of the CB team (I may be wrong).

The only issue I have is you have to subscribe to their site ($35 for a year) to be able to download it.  I just can't justify paying $35 just to download something that is labeled as BETA.

Just my 2 cents.
Title: Re: Community Builder integration
Post by: dirtypants on October 07, 2009, 22:43:01 pm
www.GXI.co.za is new in the Joomla development game but we will be brining you many new free hacks, developments and designs shortly - This is just our first contribution

But what does this do?  I can't figure it out.  And I'm not an idiot....
Title: Re: Community Builder integration
Post by: ihoii on October 08, 2009, 10:07:41 am
I am using Bob's integration.

It worked great, but with 2 problems

1. My site is Bi-Lingual, during registration, the virtuemart fields are not translated (It stays in English)
2. I can't modify the user fields in virtuemart, like when I trying to make mobile number as Required, it doesn't work.

When i turn on the debug mode, the get the following error when registering

Notice: Undefined index: xxx/administrator/components/com_virtuemart/classes/language.class.php on line 129

I read in CB forum, that we can change the user fields in PHP, which file I should change?

Help on this is highly appreciated.

Thanks
Title: Re: Community Builder integration
Post by: ihoii on October 09, 2009, 08:28:03 am
Ok. Here is my conclusion on CB and VM integration,

Don't use plugins unless you get support.

The following method works like a charm - I used the method 2

http://forum.virtuemart.net/index.php?topic=60217.0
Title: Re: Community Builder integration
Post by: Norbert Miskei on October 21, 2009, 19:27:25 pm
I have just published the VM login module instead of the CB login module. It seems like it works fine for the shop and the rest of the site except I can not change my details until I synchronize the users in CB. After that it works fine. Until that it gives this error: WARNING: This is not your profile. As a moderator, you are editing the profile of user: Unnamed user.

If there was a way to send the registration data also to the CB database when registering it would solve all my problems. I guess it would also be possible to show the avatar somehow in the VM login module.

Would anybody know how to achieve any of these?
Title: Re: Community Builder integration
Post by: Norbert Miskei on October 21, 2009, 20:20:20 pm
Oops, that didn't work out. Almost immediately I started to get strange sign ups, one after the other although I don't see any hits. Put back the CB module after all.
Title: Re: Community Builder integration
Post by: crony on October 21, 2009, 20:37:19 pm
Actually, there's a working plugin from good boys of Community Builder team that have created this new site :
http://www.allmysocials.com/

It's beta, I found 1 or 2 things to suggest to add, but it's working quite fine...Needs to pay a little fee, indeed...

Enjoy  ;D
Title: Re: Community Builder integration
Post by: amrosama on June 07, 2010, 10:54:59 am
hi guys heres the fix for the virtue mart plugin in comprofiler
the problem was that some files were not included.
i added these lines after the " function _showVirtuemartInfo( $user = null , $tab = null )" function at line 315:
Code: [Select]
  if( file_exists(JPATH_BASE.'/components/com_virtuemart/virtuemart_parser.php' )) {
require_once( JPATH_BASE.'/components/com_virtuemart/virtuemart_parser.php' );
} else {
require_once(JPATH_BASE.'/components/com_virtuemart/virtuemart_parser.php' );
}

require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'virtuemart.cfg.php';
require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'global.php';
require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'classes'.DS.'ps_database.php';
require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'classes'.DS.'ps_product.php';
require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'classes'.DS.'ps_product_attribute.php';
i got the plugin working fine :)
but the module is full of crappy errors and i dont need it anyways
Title: Re: Community Builder integration
Post by: Norbert Miskei on June 07, 2010, 12:14:00 pm
Quote
added these lines after the " function _showVirtuemartInfo( $user = null , $tab = null )" function at line 315:

I have this on line: 287. Where do I need to insert that code exactly? after the bracket or after the curly brace?
Title: Re: Community Builder integration
Post by: schyzo on November 24, 2010, 13:25:47 pm
Hi everyone,
I'm french so excuse my bad english...

I'm trying to sync CB 1.2.3 with VM 1.1.5 but I'm having a lot of problems :(
I'm using the PDX CB VM Sync plugin in CB and it seems to work...but not totally.
For exampl, I can not chose the VM fileds to be synchronised : this is a predefined list, and I don't find the way to change id (this list doesn't even includes NAME ! I'd like to add it...and it uses Company Name that I'd like to delete...).

Is anyone using this plugin ?
If not, is there any other way to synchronise both components ?
The website I'm working on have a little shop : I just want the members of the site (CB members) not to have to fill a form again and I'd like VM to use the member informations instead of the VM fields...

Is there a solution ?
Thanks for your help !