Comesticage Posted August 22, 2013 Posted August 22, 2013 Dear All, I installed a content provider outbrain on my website. it is place in my footer.php and scans all my contents.. if it picks out my article, it will recommend it in the widget. oxytarm-ap.com My colleagues writes original articles but as she only uses a WYSIWYG microsoft publisher 2010. She gave me a set of HTM files and ask me to create a article.php in our website. Here's what i did oxytarm-ap.com/shop/catalog/article.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <style type="text/css"> .contentContainer .contentText .oxytarm_infoTable tr td strong div { text-align: center; } .contentContainer .contentText .oxytarm_infoTable { text-align: center; } .contentContainer .contentText .oxytarm_infoTable tr td ul li .menuLink b { text-align: left; } </style> <html> <head> <title>Oxytarm Asia Pacific - Weight loss experts, Oxytarm, Sucobloc</title> <meta name="description=" content="1 ULTIMATE GOAL - Oxytarm AP helps you achieve glowing skin, flatter tummy, weight loss, health and exercise with Oxytarm, Sucobloc and Raspberry Ketone!"> <table width = "100%"> <tr><td width = "100%"></td></tr> </table> <div class="contentContainer"> <div class="contentText"> <table width="100%"> <tr> <td style="border-width: medium; border-style: none;text-align: center;" width="25%"> [color=#ff0000]<?php include 'index.htm'; ?>[/color] <br/> </td> </tr> </table> <table width="100%" class = "oxytarm_infoTable"> <tr> <td > </td> </tr> </table> </div> </div> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> So what i did is that i insert a htm file inside the article.php but if you can go to the site. it overlaps with my footer and becomes super ugly. Am i doing something wrong? why is it so ugly? Any solution? or am i an idiot to try to include a htm file inside a php? The reason we did that is because creating an article with a WYSIWYG editor thus HTML is so much easier. (we also do not have an expertise to write an article with pictures and all in php) so in the end we choose to include a html file inside article.php so that it will have consistency like a header and footer (which has the widget and can scan the article) Regards, CosmetiCage
♥kymation Posted August 22, 2013 Posted August 22, 2013 The Microsoft application produces a complete web page. You cannot paste a complete web page inside another web page and expect it to work. Also, Microsoft products produce horrible HTML that often does not display correctly. I suggest that you install CKEditor and use that to build your content. Regards Jim See my profile for a list of my addons and ways to get support.
Comesticage Posted August 23, 2013 Author Posted August 23, 2013 @@kymation Hi thanks, i will try out your suggestion. Because my colleague uses MS Publisher to do up the articles that are suitable for email marketing and print outs too, so it will be easier if i can use the same MS Publisher only this time is HTML and place inside the article.php. This way i dont have to re-do things from scratch. i am not much of a article and designer person myself. That's why.. if anyone does have a solution to my first post, please let me know! Regards,
Comesticage Posted August 25, 2013 Author Posted August 25, 2013 Hi all, I inserted successfully the ckeditor http://oxytarm-ap.com/shop/catalog/ckeditor/samples/index.html but how do i integrate it? I have php (template_top) and php (footer) <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_INCLUDES . 'template_top.php'); ?> what code to insert here? <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
♥kymation Posted August 25, 2013 Posted August 25, 2013 Use the CKEditor addon from the addons area of this site. Regards Jim See my profile for a list of my addons and ways to get support.
Comesticage Posted August 25, 2013 Author Posted August 25, 2013 http://addons.oscommerce.com/info/7650/v,23 or http://addons.oscommerce.com/info/8302/v,23 or http://addons.oscommerce.com/info/7897/v,23 Sorry so many to pick from..
♥kymation Posted August 25, 2013 Posted August 25, 2013 Any of those will work. Make your own decisions. Regards Jim See my profile for a list of my addons and ways to get support.
♥joli1811 Posted August 25, 2013 Posted August 25, 2013 Hi Eugene, simplest is http://addons.oscommerce.com/info/7650/v,23 JohnAtYM 21 Feb 2011 *************************************** http://addons.oscommerce.com/info/8302/v,23 is interesting as may allow for an easier / direct image upload never tested or seen so can not say. Regards Joli To improve is to change; to be perfect is to change often.
Comesticage Posted August 26, 2013 Author Posted August 26, 2013 @@joli1811 Hello for the http://addons.oscommerce.com/info/7650/v,23 categories_1_2_3_4_5_6_7_8_9_10_11_12_13_14_15_16_17_18_19_20_21_22_23_24.zip There's nothing inside except categories.php? Regards,
Comesticage Posted August 26, 2013 Author Posted August 26, 2013 Hello all! I followed this video and got it! Now.. hmm i need to edit my article.php How do i do so? This is a php file that has my template_top and footer. How do i edit from the admin panel on this file? Regards,
Comesticage Posted August 27, 2013 Author Posted August 27, 2013 Been trying to edit the article.php whole night, can't get what i want. How do i edit this file from the admin panel? (because without the admin panel, i can't use CKeditor)... :x
♥joli1811 Posted August 27, 2013 Posted August 27, 2013 Hi, you have x 3 decent options and x 1 hack 1: install article manager http://addons.oscommerce.com/info/1709 easy and flexible.on the fly 2: install extra page info manager http://addons.oscommerce.com/info/2021 flexible.on the fly 3; create a page coded to osc standard this would be easiest by taking an existing page lets say for example privacy.php and adapting and renaming to article1.php including the code inside ******************************************************************************************** require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRIVACY)); to.................... require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ARTICLE1); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ARTICLE1)); you would then go to your language folder and create a file also named article1.php inside you can then add your html text to IE: article text and name **************************************************************** define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', 'Put here your Privacy Notice information.Put here your article info / html here and delete the privacy stuff'); as regards getting a decent html just go to anywhere the ckeditor is showing write and adjust your html view the source copy and then paste into your language file ***************************************************************************************************** You must also then define this in your includes/filenames.php define('FILENAME_ARTICLE1', 'article1.php'); Well personally would go for the extra page manager (think there are x 2 contributions) although if I was planning a lot of articles would use the article manager as it can also nicely link to specific products The hack i will not mention as do not like. Regards Joli To improve is to change; to be perfect is to change often.
Comesticage Posted August 29, 2013 Author Posted August 29, 2013 @@joli1811 Hello! Thanks alot, i did it, installed the SEO and article manager! took me quite some time. but very worth the effort. oxytarm-ap.com Dear all, Does anyone know if there's any guide to create great looking article with ckeditor? Regards,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.