Go Back   Web Scribble Forums » Joomla » jConnector
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2009, 10:30 AM
Junior Member
 
Join Date: Sep 2009
Posts: 1
Red face Please help... Virtuemart problems...

Hi Guys,

Firstly let me say what a fantastic module this is! (If it was not for Virtuemart!)

My problem, when a user registers with jconnector, they can access all the Joomla aspects of the site no problem, but when it comes to the Virtuemart aspects, its a no go...

I have found the problem, basically when a user normally registers with the Virtuemart login, its sets their user status as Shopper / Registered, when using the jconnector they are only a registered user.

Can anyone suggest how I can also make jconnector set the shopper tag on the account?

Many thanks for reading this, and I hope someone can point me in the right direction...

Mark
Reply With Quote
  #2 (permalink)  
Old 09-02-2009, 05:48 AM
Web Scribble Staff
 
Join Date: Jul 2009
Posts: 280
Default

Hi, you'll need to modify this place:

modules/mod_jconnector/jconnector_server.php
Code:
$user =& JUser::getInstance((int)$id);
$user->set('block', '0');
$user->set('activation', '');
$user->save();
So usertype can be set like this:
Code:
$user =& JUser::getInstance((int)$id);
$user->set('block', '0');
$user->set('activation', '');
$user->set('usertype', 'Shopper / Registered');
$user->save();
If this doesn't help, just open your jos_users table and check what are the differences between Virtuemart and FB connect users. So for example you may also need to set gid field.
Reply With Quote
  #3 (permalink)  
Old 10-08-2009, 04:30 PM
Junior Member
 
Join Date: Sep 2009
Posts: 13
Unhappy usertype for joomla and kunena

Hello, I would have the same necessity Kunena. I wish that only registered users with jconnector become author.

I inserted the string:
$user->set('usertype', 'Author);

The user appears author for Kunena...but is registered for joomla!

Solution?
Reply With Quote
  #4 (permalink)  
Old 10-08-2009, 05:04 PM
Junior Member
 
Join Date: Sep 2009
Posts: 13
Default strange

strange ...
in the table jos_user: registered user via jconnector results to be "author" while on joomla backend is "registered"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 05:30 AM.