Webmastersite.net
Register Log In

Integration difficulties
using same variable names

Comments on Integration difficulties

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Nov 30, 2006 - 8:20 PM:

Paul,
I'm testing integration of two WSN Links 4.0.6 installations at my local PC,
switching the Member system integraton to WSN Links at Settings.

For installation A the 'links' member variable means Products and for the installation B 'links' member variable means Companies.

If I consider the installation A as of the base members table, when entering to the installation B, memberlists will show the 0 variable counting the Products but not the Companies, so I have added to the wsnlinks.php integration file of installation B:

$memberstable = 'wsnlinks_4_0_6_A';
$newlinks='links_companies';

Then I have added the member variable 'links_companies' to the installation A.

But now when adding links no value is showed at the {MEMBERLINKS_COMPANIES} variable used at memberlist.tpl

What can I be doing wrong ?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 02, 2006 - 2:38 AM:

I'd think you should use {MEMBERLINKS}, since it's integrated and that's the field you've mapped it on to.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 02, 2006 - 7:36 AM:

In order to check, at the both installations I do have at memberlist.tpl :

<td class="oddcolumns">MEMBERLINKS: {MEMBERLINKS} <br>
MEMBERLINKS_COMPANIES:{MEMBERLINKS_COMPANIES}</td>

- When adding a link from installation A,
A memberlist shows {MEMBERLINKS} increasing accordingly, {MEMBERLINKS_COMPANIES} does keeps an empty value. I understand this is a normal behaviour.
B memberlist shows empty values for both {MEMBERLINKS} and {MEMBERLINKS_COMPANIES}.

- When adding a link from installation B,
A memberlist shows {MEMBERLINKS} taking the value of 1 regardless of the amount of links added from installation B, {MEMBERLINKS_COMPANIES} does keeps an empty value.
B memberlist still shows empty values for both {MEMBERLINKS} and {MEMBERLINKS_COMPANIES}.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 05, 2006 - 3:26 AM:

I have followed the same stepts, now for member 'comments' variable with the same results,

- When adding a comment from installation A,
A memberlist shows {MEMBERCOMMENTS} increasing accordingly, {MEMBERCOMMENTS_COMPANIES} does keeps a zero value.
B memberlist shows a zero value for both {MEMBERCOMMENTS} and {MEMBERCOMMENTS_COMPANIES}.

- When adding a comment from installation B,
A memberlist shows {MEMBERCOMMENTS} taking the value of 1 regardless of the amount of comments added from installation B, {MEMBERCOMMENTS_COMPANIES} does keeps a value of zero.
B memberlist still shows zero value for both {MEMBERCOMMENTS} and {MEMBERCOMMENTS_COMPANIES}.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 07, 2006 - 1:42 PM:

I see it can't work in the current version since the incrimenting is only done on the native field. Should work in 4.0.8.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 15, 2006 - 7:35 PM:

Paul,
At ver. 4.0.8 I find that { MEMBERLINKS } and { MEMBERCOMMENTS } are increasing only at installation B and they are counting the links and comments from the both installations. At installation A both variables count 0 regardless from were the link or comment is added. {MEMBERLINKS_COMPANIES} and {MEMBERCOMMENTS_COMPANIES} both shows a cero value at both installations.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 19, 2006 - 5:39 AM:

Got it right this time at long last. Also made it so that $new fields are automatically added, though in this case creating it by hand is preferable since it's better to have it as an int than as text.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Dec 23, 2006 - 4:42 AM:

Thanks,
Tested at ver 4.0.9

At the base installation A all variables are now showing perfectly.

The only detail I see is that at installation B,
{MEMBERLINKS} and {MEMBERCOMMENTS} are both showing the same value of {MEMBERLINKS_COMPANIES} and {MEMBERCOMMENTS_COMPANIES} respectivelly.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 24, 2006 - 2:33 PM:

That's intended, it shouldn't require template modification to show the links and comments. Though it does leave the issue of not having access to the other version's.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#10 - Quote - Permalink
Posted Dec 25, 2006 - 12:41 AM:

Ok it's clear. So I understand that if we want to show all data from users we should use the memberlist.php of the base installation.

I see another detail now when deleting links :

Hidding a link from the installation B does not shows a change on {MEMBERLINKS} or {MEMBERLIKS_COMPANIES} values at this installation B. Also {MEMBERLIKS_COMPANIES} of installation A does not shows reduced. If a link is hard deleted from the installation B {MEMBERLINKS} variable of installation A is increased (this should not happen). Regenerating counters of installation A does not reduces the value of {MEMBERLIKS_COMPANIES} and when regeneratig counters of installation B {MEMBERLINKS} variable of installation A is reduced (it should not be reduced), but {MEMBERLINKS} and {MEMBERLIKS_COMPANIES} variables of installation B are not reduced.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Jan 02, 2007 - 1:19 PM:

Hiding should never affect the totals.

Fixing deletion decriment.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.