Quote:
Originally Posted by BRotondi
The top right link "My Profile" links to the non existant "wiki/members/..." when I am in the wiki (and correct to "forum/members/...") when I am in the forum.
|
that is because you have this special link to members pages:
http://xxx.net/forum/members/67-bepe
but it should be:
http://xxx.net/forum/member.php?67-bepe
I'm running the VB header from the wiki location... that means I have to change all links to source files like images, css, php, ...
I'm using this regex for it:
$temp = preg_replace( '/(src|href|action)="([^:"<>]+\\.(php|gif|jpg|png|js|ico|css))/', '\\1="'.$base.'/\\2', $temp );
means that u need to have one of this in the link: ". + php|gif|jpg|png|js|ico|css"
then my code will correct the link