hi all,
tried tat. no more error in debugging, but my site is in a mess with only white background and text.
help~~~ headache
Printable View
hi all,
tried tat. no more error in debugging, but my site is in a mess with only white background and text.
help~~~ headache
Hi qHome,
I recall way back you were trying to merge "ask a question" module to work with tabs... did you have success on this?
hi all,
i put this in the product description
<!--%Product Description%-->
all i get is the exact text shown when i go into my site.
the tab is not working. help !
hi all,
still no replies? i already posted in at the source area of the editor but the tabs are just now showing!!
sigh..any1 any1
Hey,
Have any one can help me ?or fix where have problem?
i always get below error,after upload the class.rlwp.php from tabbed_products_pro_1-06b.zip.sure i writhe right ABSPATH.and the wordpress work fine.but i don't sure it work fine with tabbed products pro. and the start from "<?php" ,end with "?>".i think no error for this .
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/l/i/q/liqinghua/html/includes/functions/extra_functions/class.rlwp.php on line 23
the code on line 23:
class rlWP { (line 22)
public $wpinstall; (line 23)
private $tag; (line 24)
help me please,i'm newbie
Hello all,
I, too, am having trouble loading Tabbed Products. After reading this entire thread :unsure: and doing some experimenting, I discovered that my problem lay in the html_header.php/common/my_template. I tried combining the two (the original in the my_template and the one in the tabbed products) but got stuck near the end. This is how the tabbed product reads that needs to be included:
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
$jscript_files_to_load[$value] = -100;
}
$files = loadCssJsFiles($css_files_to_load, $jscript_files_to_load);
foreach($files['css'] as $file)
if($file['include']) include($file['string']);
else echo $file['string'];
foreach($files['js'] as $file)
if($file['include']) include($file['string']);
else echo $file['string'];
This is what the my_template html_header.php looks like:
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
require($page_directory . '/' . $value); echo "\n";
}
echo "<!-- BOF: SANG EMBED HTML HEAD INFO -->\n";
echo $sangEmbed->insideHead();
echo "<!-- EOF: SANG EMBED HTML HEAD INFO -->\n";
No matter how I try to combine it, replace it, whatever, it does not work. It apparently is needed as tabs do not work on the site without this.
And just to make sure I am not missing anything, the instructions read: run the include sql file. I assume that is the TabbedProductsPro.sql. You open it, copy and paste it into the window in Admin/Tools/SQL Query Executor, press send and you get a message that 16 things have been modified?
And just to make sure I've given enough information, here is my entire combined html_header.php:
<?php
/**
* Common Template
*
* outputs the html header. i,e, everything that comes before the \</head\> tag <br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @copyright Portions Copyright 2008 ############## Development
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: html_header.php 24 2008-06-26 18:08:47Z ##############dex $
*/
/**
* load the module for generating page meta-tags
*/
require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
//SangEmed: inclugding magic file and starting sang embed class.
require_once($template->get_template_dir('magic.php',DIR_WS_TEMPLATE, $current_page_base,'easy_embed'). '/magic.php');
$sangEmbed = new sangEmbed;
/**
* output main page HEAD tag and related headers/meta-tags, etc
*/
?>
<!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" <?php echo HTML_PARAMS; ?>>
<head>
<title><?php echo META_TAG_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" />
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php
$jscript_files_to_load = $css_files_to_load = array();
/**
* load all template-specific stylesheets, named like "style*.css", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css');
while(list ($key, $value) = each($directory_array)) {
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
$css_files_to_load[$value] = -300;
}
/**
* load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
*/
$manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
$tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
$tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base;
$sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',
'/' . $tmp_pagename,
'/' . $_SESSION['language'] . '_' . $tmp_pagename,
'/c_' . $cPath,
'/' . $_SESSION['language'] . '_c_' . $cPath,
'/m_' . $manufacturers_id,
'/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
'/p_' . $tmp_products_id,
'/' . $_SESSION['language'] . '_p_' . $tmp_products_id
);
while(list ($key, $value) = each($sheets_array)) {
//echo "<!--looking for: $value-->\n";
$perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css';
if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = -200;
}
/**
* load printer-friendly stylesheets -- named like "print*.css", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css');
sort($directory_array);
while(list ($key, $value) = each($directory_array)) {
echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
}
if (file_exists(DIR_WS_CLASSES . 'browser.php')) {
include_once(DIR_WS_CLASSES . 'browser.php');
$browser = new browser();
$browser_name = strtolower($browser->Name);
if (($browser_name == 'msie') && $browser->Version <= 6) {
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie6-/', '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ie6-/', '.js');
} if (($browser_name == 'msie') && $browser->Version >= 7) {
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie7-/', '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ie7-/', '.js');
} elseif ($browser_name == 'firefox') {
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ff-/', '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ff-/', '.js');
} elseif ($browser_name == 'safari') {
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^safari-/', '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^safari-/', '.js');
} elseif ($browser_name == 'chrome') {
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^chrome-/', '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^chrome-/', '.js');
}
while(list ($key, $value) = each($directory_array )) {
$css_files_to_load[$value] = -100;
}
while(list ($key, $value) = each($js_directory_array )) {
$js_files_to_load[$value] = -500;
}
}
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
while(list ($key, $value) = each($directory_array)) {
$jscript_files_to_load[$value] = -400;
}
/**
* load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
*/
$directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js');
while(list ($key, $value) = each($directory_array)) {
$jscript_files_to_load[$value] = -300;
}
/**
* load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php');
while(list ($key, $value) = each($directory_array)) {
/**
* include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
$jscript_files_to_load[$value] = -200;
}
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
*/
$directory_array = $template->get_template_part($page_directory, '/^jscript_/');
while(list ($key, $value) = each($directory_array)) {
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
require($page_directory . '/' . $value); echo "\n";
}
echo "<!-- BOF: SANG EMBED HTML HEAD INFO -->\n";
echo $sangEmbed->insideHead();
echo "<!-- EOF: SANG EMBED HTML HEAD INFO -->\n";
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
?>
</head>
<?php // NOTE: Blank line following is intended: ?>
I am using the Sanguin Embedded Template on Zen Cart 1.3.8a and my site is FutureClassicsMusic.com
Regarding my previous post...I was able to figure it out. I just didnt open the additional folder in the installation the shows a picture of the admin product detail page. Apperantly all you have to do is add additional info on each product description for custom tabs to show up.
Need some help...
I have installed Zen Cart v1.3.8 on my server and the only add-ons currently are my template ("The Bookshelf") and Tabbed Products Pro. Currently I am unable to see any enlarged photos for my products. Previously I had the zen lightbox with TPP (TPP installed first) and instead of a light box it openened the picture on a blank page. Then I tried fual lightbox with TPP (TPP installed first) and the main picture disappeared from the product info page. Because I am using a new store each attempt was done by deleting my entire store and installing a completely bare Zen Cart so I know its not a conflict within old install scripts or files.
As I said right now i only have the cart, the template, and the TPP. Can anyone please tell me what to do next. I really like the TPP and the Lightbox and I'm DETERMINED to run both.
Also mad props to everyone working their :oops: off to give us these great mods.
Sorry.. If you need to see the issue
https://www.clevelandtrophy.com/catalog
I have both mods working together just fine on a BUNCH of stores.. So you will have to use process of elimination to determine the issue..
My suggestion is that you try seeing if you can get them both add-ons to work using the classic template. It's possible that your template may be a culprit in things not working correctly..