Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
kashyyyk
I'm having a problem with Image Handler 2 and Tabbed Products Pro.
My image hover works, but on the products page with the tabs looks OK, but the image pop up doesn't work. If you put your mouse over the image and (on IE at least) look at the bottom left corner you can see the words "javascript popupWindow....". Now when you click on the image to view it larger nothing happens and you now get an error on page messege in the bottom corner. If you refresh the page, the error goes away until you click the image again. How do I get the image pop up to work? Here is my site to see what it does
www.phryz.com
Thanks
Dan
You should probably post this question in the IH2 support thread.. There's no conflict between these two mods that I'm aware of.. Sounds like an IH2 issue..
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
himmell1234
I did find something, I'm using the cold steel template...and when I copy over the html_header.php from the tabbed pro...the site display becomes messed up.
I'm assuming this is probably the point of error.
is there anyway I can combine the two html_header files?
(sorry, php isnt my strong point)
php doesn't have to be a strong point, but you will have to open both versions of the html_header files bring over what's missing from the tabbe pro version that's missing from your templates version.. No other way of doing this..
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
You should probably post this question in the IH2 support thread.. There's no conflict between these two mods that I'm aware of.. Sounds like an IH2 issue..
The reason I posted here is because IH2 worked before I installed the Tabbed Products Pro. I had removed Tabbed Products Pro and the pop up worked again. I had reinstalled it. Now looking at himmell1234 post made me look and I have the html_header.php file too. I deleted it only and the pop up works again. The tabs are no longer there, but html_header.php is causing the problem. I didn't have a html_header.php in my common folder before, I do have a tpl_header.php in there. How should I procede?
Dan
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
kashyyyk
The reason I posted here is because IH2 worked before I installed the Tabbed Products Pro. I had removed Tabbed Products Pro and the pop up worked again. I had reinstalled it. Now looking at himmell1234 post made me look and I have the html_header.php file too. I deleted it only and the pop up works again. The tabs are no longer there, but html_header.php is causing the problem. I didn't have a html_header.php in my common folder before, I do have a tpl_header.php in there. How should I procede?
Dan
My answer is the same.. you need to mergee the two html_header.php files. If your template doesn't have a html_header.php it's only because your template didn't require any changes from the default html_header.php file. So Zen uses the one in the default template folders..
You will need to open up and look at the html_header.php file in the default template folder, and the one that comes with TPP, and merge the two. The resulting merged html_header.php file will have to be saved to your common folder within your templates folders (DO NOT over write the html_header.php file in the default template folders!!)
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Thanks that worked. If anyone is interested. What I did was I left everything on the original html_header.php alone and only added the additional lines from the tabbed version. The tabbed version had code that differed from the original that I didn't copy.
As an example
Original-
Code:
/**
* 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)) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
Tabbed-
Code:
/**
* 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)) {
Lines like above I didn't copy but left as it originaly was.
This is what one looked like I changed and only added the additional lines-
original-
Code:
/**
* 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";
}
Changed to look like the Tabbed version-
Code:
/**
* 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;
}
}
And I did create a new file and added it to my common folder in my template folder.
Thanks
Dan
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Glad that worked out!!:smile:
Quote:
Originally Posted by
kashyyyk
Thanks that worked. If anyone is interested. What I did was I left everything on the original html_header.php alone and only added the additional lines from the tabbed version. The tabbed version had code that differed from the original that I didn't copy.
As an example
Original-
Code:
/**
* 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)) {
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
}
Tabbed-
Code:
/**
* 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)) {
Lines like above I didn't copy but left as it originaly was.
This is what one looked like I changed and only added the additional lines-
original-
Code:
/**
* 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";
}
Changed to look like the Tabbed version-
Code:
/**
* 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;
}
}
And I did create a new file and added it to my common folder in my template folder.
Thanks
Dan
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
ANy1 CArE TO HELP ME??? i dunoe wad went wrong!! i tried to install tabbed product pro and my site end up haywire. LIKE TIS:
www.ztomiclab.com
HELP!
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
error again, run a debug, got tis
file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/var/www/zc138/wordpress/wp-config.php) is not within the allowed path(s): (/home/ztomicla/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ztomicla/public_html/includes/functions/extra_functions/class.rlwp.php on line 16
any advice?
Re: Tabbed Products Pro (TPP) Contrib - Official Thread
Quote:
Originally Posted by
starry89
error again, run a debug, got tis
file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/var/www/zc138/wordpress/wp-config.php) is not within the allowed path(s): (/home/ztomicla/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/ztomicla/public_html/includes/functions/extra_functions/class.rlwp.php on line 16
any advice?
If you are not using the wordpress on zen cart mod just delete the file includes/functions/extra_functions/class.rlwp.php