Guest Flannerz Posted August 20, 2005 Share Posted August 20, 2005 Hi Folks Recently just installed cubecart for an online shop. However when i enter the details in for the site documents in the admin panel and then try to view it on the actual store, it doesnt appear. This only happens for the 'Legend' skin though. If i change the skin to either 'Killer' or 'Classic' then i see the documents without any problems. However i would preferbly like to use the 'Legend' skin. I realise that people have encounted this problem in the past and they say the solution was in the siteDocs.tpl file. However i have uploaded this file again (although it was already there) and it makes no difference. I have checked the files for the other two skins on the server and it too has this file there. I just cant understand why its not working. Anyone have any suggestions? :innocent: Quote Link to comment Share on other sites More sharing options...
roban Posted August 20, 2005 Share Posted August 20, 2005 I use Killer skin but to test your post I switched to Legend and the site docs were there but barely visible because they are almost the same color as the background. Try this: skins\Legend\styleSheets\style.css change .txtSiteDocs, a.txtSiteDocs { font-family: Arial, Helvetica, sans-serif; font-size: 70%; color: #0B4492; text-decoration:none; to: .txtSiteDocs, a.txtSiteDocs { font-family: Arial, Helvetica, sans-serif; font-size: 70%; color: #000000; text-decoration:none; and see if they are there. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 20, 2005 Share Posted August 20, 2005 Thanks for the tip mate but its still not showing up Seems very strange, did it work for you when you changed it or didnt you try? Quote Link to comment Share on other sites More sharing options...
roban Posted August 20, 2005 Share Posted August 20, 2005 Yep it worked for me in Legend skin. But like I said they were very hard to see. They are all the way down at the bottom. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 20, 2005 Share Posted August 20, 2005 Nope ive tried it again and still nothing. I know what your saying though mate and it makes perfect sense to do what you say. I thought it would work but nope it just doesnt. Can anyone else give any insight into this problem? Cheers Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 I have noticed that there are two bits of code relating to 'txtsitedocs' in the 'style.css' file. Originally i only spotted one of them but i have also changed the other now and still nothing. It cant be something installed wrong surely as it is working on the other skins fine :innocent: Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 Can you post your \skins\Legend\styleTemplates\global\index.tpl Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 Here it is <!-- BEGIN: body --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <title>{META_TITLE}</title> <meta name="description" content="{META_DESC}" /> <meta name="keywords" content="{META_KEYWORDS}" /> <link href="skins/{VAL_SKIN}/styleSheets/layout.css" rel="stylesheet" type="text/css" /> <link href="skins/{VAL_SKIN}/styleSheets/style.css" rel="stylesheet" type="text/css" /> <script language="javascript" src="js/jslibrary.js" type="text/javascript"></script> </head> <body> <div id="pageSurround"> <div id="subSurround"> Â <div id="topHeader"> Â <div style="padding-top: 72px;">{SEARCH_FORM}</div> Â <div>{SESSION}</div> Â </div> Â Â <div> Â Â <div class="colLeft"> Â {CATEGORIES} Â {RANDOM_PROD} Â Â {INFORMATION} Â {CURRENCY} Â {LANGUAGE} Â </div> Â Â <div class="colMid"> Â {PAGE_CONTENT} Â </div> Â Â <div class="colRight"> Â {SHOPPING_CART} Â {POPULAR_PRODUCTS} Â {SALE_ITEMS} Â {MAIL_LIST} Â </div> </div> <br clear="all" /> {SITE_DOCS} </div> </div> </body> </html> <!-- END: body --> Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 What's the url of your site? Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 http://www.moorsports.co.uk/index.php You need to put the 'index.php' in at the moment as ive got an 'index.htm' file there telling people its under construction before we go live. Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 So you are saying that you've created new documents and the links are not showing or you've added information to the existing documents (about us, contact us) and the text is not showing. I thought you had no documents listed at all but the default ones are showing they just have no information in them. Maybe if you switch skins I can see exactly what you mean. If you've created new ones and they are not showing please tell me exactly how you create them. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 Ah right, sorry might not have explained myself clearly enough. I am using the existing documents (about us) and just trying to edit them. In the admin panel i enter all of the information in and it says that its updated it succesfully. However when i go onto the actual store and click the about us link, i see nothing at all. If i change the skin to either Killer or Classic then the text appears. Its only in the Legend skin that it doesnt appear. The links at the bottom appear fine, its just the text on the page that doesnt. I havent created any new pages (i will be when i get this working) so its just the existing ones which are been a pain! Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 I'm sorry to ask all these questions but this is an interesting (but frustrating) problem and I wonder if anyone else has the same problem. Can you try to create a new document and see what happens or have you already tried that. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 No worries mate, it is frustrating but i want to get it sorted. Ive already tried that and unfortunately i get exactly the same. Nothing shows up, the link appears at the bottom but there is no text on the page. :innocent: Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 This is my Legend/layout.css Compare to yours or save it as layout.css and upload. body { margin: 5px; background-color: #000013; background-attachment: fixed; background-image: url(../styleImages/backgrounds/pageBg.jpg); background-repeat: repeat-x; background-position: top; } #pageSurround { width: 748px; margin: 0px auto; padding: 5px; border: 1px solid #000000; background-color: #FFFFFF; } #subSurround { border: 1px solid #5C84CE; background-image: url(../styleImages/backgrounds/contentBg.jpg); background-repeat: repeat-x; background-position: bottom; } #topHeader { text-align: right; height: 116px; margin-bottom: 10px; padding-right: 9px; padding-top: 0px; background-image: url(../styleImages/backgrounds/topHeader.jpg); border-bottom: 1px solid #000000; } .boxTitleLeft, .boxTitleRight { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 70%; color: #09347C; background-image: url(../styleImages/backgrounds/boxTitleBg.gif); width: 155px; height: 15px; padding-left: 5px; padding-top: 1px; } .boxContentLeft, .boxContentRight { border-left: 2px solid #0E51A3; border-right: 2px solid #0E51A3; border-bottom: 2px solid #0E51A3; background-color: #FFFFFF; padding-left: 5px; margin-bottom: 10px; padding-top: 3px; padding-bottom: 5px; } .colLeft { position: relative; left: 0px; width: 160px; padding-left: 9px; padding-right: 5px; float: left; } .colMid { position: relative; width: 398px; float: left; } .colRight { position: relative; width: 160px; padding-left: 5px; right: 9px; float: right; } .boxContent { border-top: 1px solid #A8B4B0; border-right: 1px solid #5E85CF; border-bottom: 1px solid #5E85CF; border-left: 1px solid #5E85CF; padding: 3px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 75%; color: #333333; background-color: #FFFFFF; margin-bottom: 5px; } /* CHECKOUT PAGES */ .colLeftCheckout { position: relative; left: 0px; width: 160px; padding-left: 9px; padding-right: 10px; float: left; } .colMainCheckout { position: relative; width: 558px; float: left; } /* END CHECK OUT PAGES */ .siteDocs { text-align:center; margin-top: 10px; } .pagination { text-align: right; padding-top: 5px; padding-bottom: 5px; } #subCats { background-color: #EBEDFE; text-align: center; border: 1px solid #C9CEFC; margin: 0px; padding: 3px; float: left; width: 387px; } .subCat { text-align: center; padding: 8px; float: left; width: 110px; } .regSep{ padding: 10px 0px 10px 0px; margin: 10px 0px 10px 0px; border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; } Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 Legend\styleTemplates\boxes\siteDocs.tpl <!-- BEGIN: site_docs --> <div class="siteDocs"> <!-- BEGIN: a --> <a href="index.php?act=viewDoc&docId={DATA.doc_id}" class="txtSiteDocs">{DATA.doc_name}</a> <!-- BEGIN: sep --><span class="txtSiteDocs">|</span><!-- END: sep --> <!-- END: a --> </div> <!-- END: site_docs --> Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 It looked the same, but i saved the file and uploaded it and still the same...nothing appearing! It is getting frustrating now! :innocent: Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 This is where we seperate the men from the boys: Log on to your host and go into your CC database, hopefully into PHPMyAdmin and open your cc database. Look for CubeCart_docs and open it. Select all and choose 'change' this will open it for editing. If your text was saved you should see it all there. If not then you have a database problem. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 Well ive tried that and all i see is 3 lines of combo boxes and text boxes (for the 3 fields). I dont see any text. However how come my text works in 2 skins but not another 1? That would tell me that it was a problem in the skin folder? Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 When you check all the boxes and click on 'Browse' you see no text at all? If you've re-uploaded the skin folder I doubt it because mine works. I think your text is not being saved to your db for some reason. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 Ah yes, sorry bout that, i was doing it wrong in phpmyadmin (not used to it) However ive done it right now and i do see the text that i have entered into the 'About Us' page. Any suggestions now? Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 Now we're getting somewhere. This means that the data is not being pulled from the database. copy/paste the following and sav it as includes\content\viewDoc.inc overwriting the original. <?php /* +-------------------------------------------------------------------------- | CubeCart v3.0.2 | ======================================== | by Alistair Brookbanks | CubeCart is a Trade Mark of Devellion Limited | © 2005 Devellion Limited | Devellion Limited, | Westfield Lodge, | Westland Green, | Little Hadham, | Nr Ware, HERTS. | SG11 2AL | UNITED KINGDOM | http://www.devellion.com | UK Private Limited Company No. 5323904 | ======================================== | Web: http://www.cubecart.com | Date: Friday, 12 August 2005 | Email: info (at) cubecart (dot) com | License Type: CubeCart is NOT Open Source Software and Limitations Apply | Licence Info: http://www.cubecart.com/site/faq/license.php +-------------------------------------------------------------------------- | viewDoc.inc.php | ======================================== | Displays a site document +-------------------------------------------------------------------------- */ // query database if(!isset($config)){ echo "<html>\r\n<head>\r\n<title>Forbidden 403</title>\r\n</head>\r\n<body><h3>Forbidden 403</h3>\r\nThe document you are requesting is forbidden.\r\n</body>\r\n</html>"; exit; } if($lang_folder !== $config['defaultLang']){ $result = $db->select("SELECT doc_name, doc_content FROM ".$glob['dbprefix']."CubeCart_docs_lang WHERE doc_master_id = ".$db->mySQLSafe($_GET['docId'])." AND doc_lang=".$db->mySQLSafe($lang_folder)); } if(!isset($result) || $result==FALSE) { $result = $db->select("SELECT doc_name, doc_content FROM ".$glob['dbprefix']."CubeCart_docs WHERE doc_id = ".$db->mySQLSafe($_GET['docId'])); } $view_doc=new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/viewDoc.tpl"); if(isset($result) && $result == TRUE){ $view_doc->assign("DOC_NAME",$result[0]['doc_name']); $view_doc->assign("DOC_CONTENT",$result[0]['doc_content']); } else { $view_doc->assign("DOC_NAME",$lang['front']['viewDoc']['error']); $view_doc->assign("DOC_CONTENT",$lang['front']['viewDoc']['does_not_exist']); } $view_doc->parse("view_doc"); $page_content = $view_doc->text("view_doc"); ?> Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 If that fails, try uploading skins\Legend\styleTemplates\boxes and skins\Legend\styleTemplates\content folders to your server overwriting all. Other than that I am exhausted. Quote Link to comment Share on other sites More sharing options...
Guest Flannerz Posted August 21, 2005 Share Posted August 21, 2005 Well well. You final idea was the key Roban. Obviously there must have been a problem with something in one of those folders. I just uploaded them again and it worked! Great stuff mate! I owe you one Cheers Quote Link to comment Share on other sites More sharing options...
roban Posted August 21, 2005 Share Posted August 21, 2005 Praise the Lord Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.