User talk:Suki
From ChekMate Security Group
Blog links
Ok, for some reason, the links provided on the blog posts are not working correctly...
- Discussion
- 'Users' blog
- User profile link
- Blog post title
They all seem to take me to the main page instead of their proper destination... The only one that does work as intended, is the 'Blog entry.....' link...
I have noticed looking at the addresses shown in my browser, that the addresses do not apear to be correct...
eg.
- Link to user profile should be: http://www.htpcnz.net/index.php?title=User:Admin
- Currently link displaying: http://www.htpcnz.net/index.php/User:Admin
So the links are missing the '?title=' (I dont yet have 'clean' titles)
I looked in the code, to try to fix this, and I found this code in the 'SpecialPageSubPages.php file:
$wgOut->addHTML("<table width=100%><tr><td align=left><font size=4><a href=\"$wgScript/User:". $row->page_title ."\">$date1</a></font><br>Posted By: <a href=\"$wgScript/User:$user1\">$user1</a></td><td valign=top align=right><a href=\"$wgScript/User_talk:". $row->page_title ."\">Discussion</a><br><a href=\"$wgScript/Special:ListSubPages/User:$user1\">$user1's Blog</a><td></tr></table>");
I attempted modifying it to something like this:
$wgOut->addHTML("<table width=100%><tr><td align=left><font size=4><a href=\"/index.php?title=User:". $row->page_title ."\">$date1</a></font><br>Posted By: <a href=\"/index.php?title=User:$user1\">$user1</a></td><td valign=top align=right><a href=\"/index.php?title=User_talk:". $row->page_title ."\">Discussion</a><br><a href=\"/index.php?title=Special:ListSubPages/User:$user1\">$user1's Blog</a><td></tr></table>");
I also attempted just placing '?title=' in front of the original code, and leaving in '$wgScript/' But nothing has worked for me...in fact, even with those changes, the links did not change at all?
Can you help? Tell me what to edit so I can make those links work properly
Cheers
Update:
I now have 'clean' titles...but have yet to get these links working properly...please help?
- What I originally had: http://www.htpcnz.net/index.php?title=User:Admin
- What I currently have: http://www.htpcnz.net/index.php/User:Admin
- How it should be: http://www.htpcnz.net/User:Admin
So the current difference is causing the link to not direct correctly: index.php/
How can I fix this please? --HTPCnz 21:45, 3 April 2008 (MDT)




