Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Error with profile link!
Mattycat
Posted on 22 Jul 2008, 08:52:49

Access: Member
Total Posts: 42
Joined: 2008-06-25

Hi there. On my news page (www.networkfans.com) I link my name to my profile, but the link comes up with www.networkfans.com/news/profile/Matt when it should be www.networkfans.com/index.php?goto=profile&user=Matt.

When I click to add a comment, the link changes to the correct profile link. I was just wondering how I can change it.

I'm using the AJAX link for the comments form too.

Thanks in advance,


Matt
#284
Mattycat
Posted on 22 Jul 2008, 09:08:46

Access: Member
Total Posts: 42
Joined: 2008-06-25

I fixed it! I'm not going to be using friendly URLS so I replaced:

Code:
$template2 = str_replace("[profile]","<a href=\"$_SESSION[prefix]profile/$row[user]\">",$template2);

$template2 = str_replace("[/profile]","</a>",$template2);

with:
Code:
$template2 = str_replace("[profile]","<a href=\"?goto=profile&amp;user=$row[user]\">",$template2);
$template2 = str_replace("[/profile]","</a>",$template2);
#285
Chris
Posted on 07 Aug 2008, 11:42:21

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Thanks for pointing out this error Matt, I've added it to the list to be fixed in the next release.
#320
Network-13.com © 2013