Page 1 of 1

ELGG - User links wrong

PostPosted: 26 Apr 2011, 23:12
by RBruggeman
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 :)

PostPosted: 26 Apr 2011, 23:36
by RBruggeman
At this moment, I cannot reproduce the problem. If I can, I'll be able to give more information.

PostPosted: 16 Jun 2011, 20:53
by MBumba
Same problem here. In some times the chat show /pg/profile_number, or /pg/pg/profile_name
Both are wrong

PostPosted: 24 Jun 2011, 13:32
by MBumba
Opened a ticket here:
tracker.php?p=1&t=153

Still waiting for a solution.

PostPosted: 24 Jun 2011, 14:04
by MBumba
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.

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
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.