Wie kann man denn den Profillink kürzen?
Das dieser in etwas so aussieht:
member.php?action=showprofile&user_id=1
to
nickname/profile/
Geht das?
add1
in sessions.php
before
elseif (strstr($url, 'postcards.php?image_id=')) {
add
elseif (strstr($url, 'member.php?action=showprofile&user_id=')) {
preg_match('#user_id=([0-9]+)&?#', $url, $matches);
if (isset($matches[1])) {
$split = explode('?', $url);
$url = $split[0];
$url = str_replace('member.php', 'profile'.$matches[1].'.htm', $url);
}
return $url;
}
Now short urls for profiles works and looks like
http://localhost/4images/profile49
And now I planing to make them like
http://localhost/4images/nick/profile
later planing
http://localhost/4images/search.htm?search_user=nick
change in to
http://localhost/4images/nick/gallery
If someone could help...