Guest Fluffy Posted August 7, 2007 Share Posted August 7, 2007 Alright, I've learned this almost inside and out. However, i can't seem to get my box to appear, it just tells me this: [XTemplate] parse: blockname [affiliate] does not exist. However, I've done everything right. Index.php /// SLoWz3R Input Edit /// include("includes/boxes/affiliates.inc.php"); $body->assign("AFFILIATES",$box_content); includes/boxes/affiliates.inc.php <?php if (eregi(".inc.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi(".inc.php",$_SERVER['PHP_SELF'])) { 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; } $box_content=new XTemplate("skins/".$config['skinDir']."/styleTemplates/boxes/affiliates.tpl"); $box_content->assign("LANG_AFFILIATES_TITLE",$lang['front']['boxes']['affiliates_title']); $box_content->assign("LANG_AFFILIATES",$lang['front']['boxes']['affiliates']); $box_content->parse("affiliates"); $box_content = $box_content->text("affiliates"); ?> skins/.../styleTemplates/boxes/affiliates.tpl <!-- BEGIN: Affiliates --> <div class="boxTitleLeft">{LANG_AFFILIATES_TITLE}</div> <div class="boxContentLeft"> <span class="txtCopy"> <strong>{LANG_AFFILIATES}</strong><br /> </span> </div> <!-- END: Affiliates --> lang/en/lang.inc.php $lang['front']['boxes'] = array( ///SLoWz3R Affiliate Update Box 'affiliates_title' => "Affiliate Links", 'affiliates' => "Beautiful Landscapes", :::EDIT::: Skin- global/index.tpl <!-- 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"> <table border="0" width="100%" id="topHeader" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="bottom">{SITE_DOCS}</td> <td align="right" valign="bottom"> <div style="padding-top: 72px;">{SEARCH_FORM}</div> <div>{SESSION}</div> </td> </tr> </table> <div> <div class="colLeft"> {CATEGORIES} {RANDOM_PROD} {INFORMATION} {CURRENCY} {LANGUAGE} {AFFILIATES} </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 --> This should be everything, but from the error, I cant just plug in all the work I've done into xtemplate. Where do I make this connection. I've looked in the classes/xtpl.php to see if I could find how it's making the connection, it seems that i'm missing something simple. www.adasaphotographicart.com lower left hand corner. Thanks again. Quote Link to comment Share on other sites More sharing options...
Guest Fluffy Posted August 7, 2007 Share Posted August 7, 2007 bump Quote Link to comment Share on other sites More sharing options...
Robsta Posted August 7, 2007 Share Posted August 7, 2007 There is no need to 'bump' your thread only hours after posting. These things are case sensitive. In the PHP file you have 'affiliates', and in the template 'Affiliates'. I don't think that would cause the error though. More likely the template file name does not match the file name references in the PHP file, case sensitive remember. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 7, 2007 Share Posted August 7, 2007 [XTemplate] parse: blockname [affiliate] does not exist.Yes, probably everything is right, but maybe something else went wrong. Note the value of the parameter, "affiliate". This is not the same as "affiliates". So, if possible, do a global search throughout all your store's files (I use UltraEdit) for "affiliate". Maybe you were working in one skin for most of the files, but accidentally worked on one file in another skin? 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.