delite163 Posted October 17, 2005 Posted October 17, 2005 Hello, Here is the problem, I used the knowledge base to create new pages called about us and links. That worked great, But when I go to add the information to define('TEXT_INFORMATION','' and then upload the page the page is blank. If I remove the information that I added then the page shows up?????Is there a limit to how much info that can be put there, are there certain html code that cannot be used? There is something that Im doing wrong but I can't figure it out. Thanks for the help delite163
241 Posted October 17, 2005 Posted October 17, 2005 we would need to know what you are adding in order to see where things are going wrong No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Guest Posted October 17, 2005 Posted October 17, 2005 I have a similar question. I have a working new php page - FAQ's, that uses a little bit of Javascript. It is placed *here* define('TEXT_INFORMATION', 'here'); and I generated a nice FAQ page with questions that expand into the full text answers highlighted using a script from the web. But niether php nor more complicated javascript work in this space, nor does javascript work if I put it after the last ?> Can we put java and more php into a new php page and if so how? Charlie
♥Monika in Germany Posted October 17, 2005 Posted October 17, 2005 I have a similar question. I have a working new php page - FAQ's, that uses a little bit of Javascript. It is placed *here* define('TEXT_INFORMATION', 'here'); and I generated a nice FAQ page with questions that expand into the full text answers highlighted using a script from the web. But niether php nor more complicated javascript work in this space, nor does javascript work if I put it after the last ?> Can we put java and more php into a new php page and if so how? Charlie add your javascript to the new page, after the header ... it really depends on the type where you have to put it. I've used it successfully in the define part too. Can we see code? :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Guest Posted October 17, 2005 Posted October 17, 2005 Sure it's another kind of FAQ solution (I think!) * Offsite link On a very similar subject, how would I go about referencing (placing) an image file in one of these info pages. Obviously I know how to reference it absolutely - http://www.whatever.com/images/pic.gif - but that will throw up SSL problems, won't it. I suppose I could always reference them as https://www.... but that is not the super efficient way, https being slower and oftentimes unneeded. Can one use the definitions in config.php to address directories in these kind of pages, so it switches between secure and non secure as needed and if so how? What about //localhost/images/.... Will that do it? Thanks Charlie
♥Monika in Germany Posted October 17, 2005 Posted October 17, 2005 Hello,Here is the problem, I used the knowledge base to create new pages called about us and links. That worked great, But when I go to add the information to define('TEXT_INFORMATION','' and then upload the page the page is blank. If I remove the information that I added then the page shows up?????Is there a limit to how much info that can be put there, are there certain html code that cannot be used? There is something that Im doing wrong but I can't figure it out. Thanks for the help delite163 susan, your page probably goes blank because you not have error reporting set to the screen, and have a parse error in the code ... most probably a single quote not escaped correctly. try this: What's new is wrong What\'s new is correct And never use the osC filemanager for editing, it will cause parse errors by removing backslashes from your pages and thus corrupting them add your javascript to the new page, after the header ... it really depends on the type where you have to put it. I've used it successfully in the define part too. Can we see code? Charlie, yes you can test whether you are on a http page or a https ... just look at your base info in all files from catalog <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.