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:
- 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}.
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, 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.
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.
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.
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.
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.
Comments on Integration difficulties
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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 ?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I'd think you should use {MEMBERLINKS}, since it's integrated and that's the field you've mapped it on to.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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}.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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}.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Hiding should never affect the totals.
Fixing deletion decriment.