View Single Post
  #6  
Old 03-03-2016, 09:33 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,859
FounderSim is on a distinguished road
Default

I came up with a workable solution without I-frames or mod rewritting. Not much code needed. Here it is for profile pages:

The first three lines are just incase a user has a name with "page-" in it. It would totally screw up the script.
Code:
		$strz = $mysidia->path->getTempRoot() . "profile/view/{$mysidia->input->get("user")}/";
		$lenn = strlen($strz);

		if(strpos($_SERVER['REQUEST_URI'] ,"page-") == $lenn)
		{

			$newStr = str_replace($strz . "page-", "", $_SERVER['REQUEST_URI']);
			$pageNum = str_replace("/", "", $newStr); 
die($pageNum); //shows page # 

		}
__________________
Reply With Quote