socom Posted March 25, 2018 Share Posted March 25, 2018 on the newer version where do i find the </head>? ive looked in /includes header application top etc and unable to locate i have to add mail chimp code to it? Link to comment Share on other sites More sharing options...
ArtcoInc Posted March 25, 2018 Share Posted March 25, 2018 @socomtactical.net /included/template_top.php Link to comment Share on other sites More sharing options...
socom Posted March 25, 2018 Author Share Posted March 25, 2018 i just have this will it be ok to lost there as i dont see the </head> > buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { ?> getBlocks('header_tags'); ?> getContent('navigation'); // EOC: Surfalot CMS ?> container_getGridContainerWidth(); ?> hasBlocks('boxes_column_left')) { ?> getBlocks('boxes_column_left'); ?> grid_getGridContentWidth(); ?> hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?> Link to comment Share on other sites More sharing options...
ArtcoInc Posted March 25, 2018 Share Posted March 25, 2018 @socomtactical.net (I should have asked this first ....) What version of osC are you running? Link to comment Share on other sites More sharing options...
socom Posted March 25, 2018 Author Share Posted March 25, 2018 Sorry house i find out it says below but think this is incorrect Version Checker Installed Version: osCommerce Online Merchant v You are running the latest version of osCommerce Online Merchant. Link to comment Share on other sites More sharing options...
ArtcoInc Posted March 25, 2018 Share Posted March 25, 2018 @socomtactical.net I went to your web site, and is seems that you are running the responsive version (don't know how old, but that's not the point here). I assume you have access to your entire source code ... Can you post your complete /includes/template_top.php file here? Link to comment Share on other sites More sharing options...
socom Posted March 25, 2018 Author Share Posted March 25, 2018 > buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { ?> getBlocks('header_tags'); ?> getContent('navigation'); // EOC: Surfalot CMS ?> container_getGridContainerWidth(); ?> hasBlocks('boxes_column_left')) { ?> getBlocks('boxes_column_left'); ?> grid_getGridContentWidth(); ?> hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?> this is the full file Link to comment Share on other sites More sharing options...
socom Posted March 25, 2018 Author Share Posted March 25, 2018 ignore that seems to be filezilla not loading all the file! just looked on file manager and its there Link to comment Share on other sites More sharing options...
ArtcoInc Posted March 25, 2018 Share Posted March 25, 2018 This the template_top.php file from osC Gold: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ $oscTemplate->buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html> <html <?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="custom.css" rel="stylesheet"> <link href="user.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="ext/js/html5shiv.js"></script> <script src="ext/js/respond.min.js"></script> <script src="ext/js/excanvas.min.js"></script> <![endif]--> <script src="ext/jquery/jquery-1.11.1.min.js"></script> <!-- font awesome --> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <?php echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $oscTemplate->getContent('navigation'); ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <div class="row"> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <div id="bodyContent" class="col-md-<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'col-md-push-' . $oscTemplate->getGridColumnWidth() : ''); ?>"> and this is the template_top.php file from the latest version of osC Edge: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ $oscTemplate->buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth()); } ?> <!DOCTYPE html> <html <?php echo HTML_PARAMS; ?>> <head> <meta charset="<?php echo CHARSET; ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- font awesome --> <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> <link href="custom.css" rel="stylesheet"> <link href="user.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="ext/js/html5shiv.js"></script> <script src="ext/js/respond.min.js"></script> <script src="ext/js/excanvas.min.js"></script> <![endif]--> <script src="ext/jquery/jquery-3.1.1.min.js"></script> <?php echo $oscTemplate->getBlocks('header_tags'); ?> </head> <body> <?php echo $oscTemplate->getContent('navigation'); ?> <div id="bodyWrapper" class="<?php echo BOOTSTRAP_CONTAINER; ?>"> <div class="row"> <?php require('includes/header.php'); ?> <div id="bodyContent" class="col-md-<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'col-md-push-' . $oscTemplate->getGridColumnWidth() : ''); ?>"> Link to comment Share on other sites More sharing options...
socom Posted March 25, 2018 Author Share Posted March 25, 2018 yep sorted thanks for your help not sure why it was only giving me part of the file Link to comment Share on other sites More sharing options...
MrPhil Posted March 26, 2018 Share Posted March 26, 2018 Make sure you know how to search all your site files in one go, to find a given string. On a Linux system, use grep, and on a Windows system, use findstr. You may find it easier to have a copy of your site on your PC (as a backup, if nothing else) and search there, rather than running commands on a live server. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.