By: handoko
Date: 2010-06-20
Time: 01:52
|
returning $_GET from subtemplateDear team,
I have a problem when accessing url from a sub template, the link won't work or it doesn't fill the $_GET['page'] variable when i click into the subtemplate link. what is the problem? |
||||||
By: TomH
Date: 2010-06-20
Time: 04:25
|
Re: returning $_GET from subtemplatePlease, provide the PHP and HTML code This time do cut & paste of complete code no more psuedo-code, please. |
||||||
By: handoko
Date: 2010-06-20
Time: 06:42
|
Re: returning $_GET from subtemplatehi TomH,
the code is the same as your sub template example, but there are modification like this, i have htaccess file,
and this is subtplmenu.html
index.php file
subtpl.html
while the other file is the same as sub template example. the problem is when i use rewriting mode, and i change the href from
the css file didn't bring up to figure out the overall template, Please help, |
||||||
By: handoko
Date: 2010-06-20
Time: 06:45
|
Re: returning $_GET from subtemplateand after i click the "main page"
the login page script doesn't work at all, or didn't capture the post input. your kind help, thanks i think the main problem is when i want use rewriting mode in the script. |
||||||
By: Skrol29
Date: 2010-06-20
Time: 23:54
|
Re: returning $_GET from subtemplateHi,
There is a TBS bug with parameter "getbody" used without value. TBS do not load the <body> part according to the manual, but the full contents. In your case, it load the full subtemplate including the CSS link. In "subtpl.html", can you replace "getbody" with "getbody=body"? This may fix you CSS problem. >and after i click the "main page" >the login page script doesn't work at all, or didn't capture the post input. I cannot reproduce your problem. Can you give more detail on what you do, what you expect to have , and what you have instead? I have to say your Rewrite Rule did not work for me, my Apache did show me the index page of my local server instead of the expected page. I used instead:
|
||||||
By: handoko
Date: 2010-06-21
Time: 00:28
|
Re: returning $_GET from subtemplatehi thanks skrol,
yes this is a bug, the link to css file doesn't load when i click main page, except the entire body of sub template,.. how do i fix this problem? what i expect is a Search Engine Friendly URL work with sub templete mode. you can try it on http://subtpl.safeourlife.info first click the main page link (SEF URL), and see the css doesn't implented, second, click the login user field, it doesn't work, except you click heading1, heading2 and heading3, which don't implement rewrite rule to make SEF url. |
||||||
By: Skrol29
Date: 2010-06-21
Time: 01:28
|
Re: returning $_GET from subtemplateFor the bug, you must replace "getbody" with "getbody=body" in the "subtpl.html" file. I hope this will fix the CSS problem.
"http://subtpl.safeourlife.info" is not working for me. Error: too long to reply |
||||||
By: Skrol29
Date: 2010-06-22
Time: 15:39
|
Re: returning $_GET from subtemplateHi Handoky,
I've reproduced your bug with the style which is lost when clicking on the link "application/art/subarticle0.html". The browser call: "application/art/subarticle0.html" Then Apache rewrites the URL and returns the content of: "application/index.php?art=0" But only Apache knows that the content comes from another URL, the browser assumes it comes from "application/art/subarticle0.html". The content is an HTML file with a CSS link that refers to "subtpl.css". This link is local, and this is the browser that will ask for this file, so its ask for "application/art/subtpl.css" but this link is invalid. So the problem is that you're rewriting the URL with a different folder, which makes the CSS link invalid. |
||||||
By: handoko
Date: 2010-08-14
Time: 04:39
|
Re: returning $_GET from subtemplatedear skrol,
the problem has been resolved, by putting the long path into css link, like this :
i am happy now. thanks |