2010-10-18, 04:45:33
Thanks. Will look at it else I wrote functions that I use in my common unit that I share between my plugins that figures the url out for me. Might use that and update this plugin as it was before I started writing the url..
It looks as following (sorry english part of brain not working today)
It looks as following (sorry english part of brain not working today)
Code:
function getBaseSiteURLandAddChar(&$baseURL,&$addChar){
//get the base url for normal or FANCY URL's.. if fancy it will remove all added values and keep url string for normal it will insure the id gets kept
$baseURL = $_SERVER["REQUEST_URI"];
if (strpos($baseURL,'?id=') !== false) {
$id = $_GET['id'];
$baseURL = preg_replace("/\?id=.*/i","",$baseURL);
$baseURL .= "?id=$id";
$addChar = '&';
} else {
$addChar = '?';
$baseURL = preg_replace("/\?.*/i","",$baseURL);
}
}
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.