RedirectContent

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
brownrl
Forum Members
Forum Members
Posts: 74
Joined: Thu Sep 23, 2004 11:06 am

RedirectContent

Post by brownrl »

Having some troubles with function in the API.

When the user does something on the front end of a module you want to bounce the user back to the page from which they came...

However, I get this kind of stuff:

On a call in the module $this->RedirectContent( $resultid );

Smarty error: unable to read resource: db:home?CMSSESSID=847ebf51130a07dccc26fcbf93e0a56f

?CMSSESSID=yadayadayada get tacked at the end and I think it happens in the $content->GetUrl call

Something like this is where it tries to go to.
http://www.petroleumanalyzercompany.com ... 3a39e34c1e

Oddly enough there is GetURL and GetUrl functions throughout the code. Which is it?

Thanks for anyhelp, its for the poll module. Need to bounce the user back to page that they filled in the poll.

Regards,
Last edited by brownrl on Thu Oct 20, 2005 9:33 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: RedirectContent

Post by Ted »

The redirect code in 0.10.x is a little buggy on certain versions of PHP.  I ended up stripping a lot of stuff out.  You might want to try grabbing the Redirect function from the latest svn (in lib/misc.functions.php).

As for GetUrl, the one in lib/page.functions.php is old cruft that I didn't get rid of.  The ones in the content type classes are the ones that get used.
Post Reply

Return to “Developers Discussion”