Help
Ask questions about how to do or fix things in Arrowchat
User avatar
RBruggeman
Customer
 
Posts: 5
Joined: 25 Apr 2011, 08:36

 

by RBruggeman 26 Apr 2011, 23:12

Preface:
I have ELGG version 1.7.5 installed together with the profile manager plugin.
I have Arrowchat 1.0.5 installed.
Profile page URL's look like this: "/pg/profile/$profilename"

Problem:
When chatting with somebody, there is a link to the profile page at the top of the chatbox. This link sends you to "/pg/profile/$profilenumber" Which is a problem, because ELGG doesn't recognise it.

Can somebody indicate me where I might find the code so I can change this?
Thanks :)
User avatar
RBruggeman
Customer
 
Posts: 5
Joined: 25 Apr 2011, 08:36

 

by RBruggeman 26 Apr 2011, 23:36

At this moment, I cannot reproduce the problem. If I can, I'll be able to give more information.
User avatar
MBumba
Customer
 
Posts: 4
Joined: 19 Feb 2011, 18:27

 

by MBumba 16 Jun 2011, 20:53

Same problem here. In some times the chat show /pg/profile_number, or /pg/pg/profile_name
Both are wrong
User avatar
MBumba
Customer
 
Posts: 4
Joined: 19 Feb 2011, 18:27

 

by MBumba 24 Jun 2011, 13:32

Opened a ticket here:
tracker.php?p=1&t=153

Still waiting for a solution.
User avatar
MBumba
Customer
 
Posts: 4
Joined: 19 Feb 2011, 18:27

 

by MBumba 24 Jun 2011, 14:04

Resolved here.
In functions_receive.php (The elgg version, of course) look for the code below:

$str = "../../mod/profile/icondirect.php?guid=".$path[0];
change to
$str = $vars['url']."/mod/profile/icondirect.php?guid=".$path[0];

and

$url = "../../pg/profile/".$temp[0];
change to
$url = $vars['url']."/pg/profile/".$temp[0];

the "../../" path doesnt work if your url has more than 2 subfolders. With $vars['url'] you always use the elgg "root" address. Worked like a charm here. Now we must wait for the "official" solution.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 07 Nov 2012, 12:40

This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.