Page 1 of 1

including a script

Posted: Sun Dec 10, 2017 11:17 am
by bastingse
Folks, i need some assistance here....

I'm using a yellowpage script and did include it in the template by copy/paste some codes into the template.htm.
When i visit the website it does show the script how it should be: https://dorpsplatformholtum.nl/index.php?Ondernemers

Now..... when i log in as admin into cmsimple and visit the above url and i click on a url inside the page (script), it does show the content that it should show on the right way in the website. (it does show this in the content: https://dorpsplatformholtum.nl/yellowpa ... nView&id=1 )
But, when i log out as admin and visit the above url as a visitor and click somewhere on a hyperlink in the content from the script, then it jumps to the homepage of the website.

Another weird thing that is going on, when i click on the settings, config, language or template button in the black bar it does show a white page with this text "Method pjListings::array didn't exists"
If i click on any other button there are no problems....

Anybody knows whats going on???

Re: including a script

Posted: Sun Dec 10, 2017 1:03 pm
by cmb
bastingse wrote:Anybody knows whats going on???
The script doesn't appear to be suitable for CMSimple's URLs (at least it would need to be adapted), where the first query parameter (i.e. what comes immediately after the ? in the URL) specifies the chosen page. For example, instead of https://dorpsplatformholtum.nl/index.ph ... nView&id=2, the URL should be https://dorpsplatformholtum.nl/index.ph ... nView&id=2 – and even this doesn't appear to give the desired result.

Generally, integrating full fledged PHP scripts in CMSimple will rarely work (if ever), unless they are constrained to an IFrame.

Re: including a script

Posted: Mon Dec 11, 2017 11:24 am
by bastingse
Thanks Christoph for your reply. I solve the problem last night by activate clean url's for the script and htaccess.