Jump to content



Latest News: (loading..)

* * * * * 1 votes

[Addon} Theme Switcher


  • Please log in to reply
467 replies to this topic

#161   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 01 November 2011 - 10:33 PM

Hello,

I am OSC 2.31 beginner and I need some help please.

I already have installed theme switcher 1.3 addon and it is working. Just I realized that the (OSC embebed) Banner Rotator module in the Front Page is not working. After setup up the module and banners, Banner Rotator dont show up any image in my main page, just a small black dot.
When I review my main page source code (index page), I see that the bannerRotator.js and stylesheet.css lines are ABOVE of the JQuery lines. (¿?).
I guess that is has relationship with the following theme switcher instruction to modify the template_top.php:

Modified Files:  catalog/includes/template_top.php. Delete these three lines:
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.6.css" />
<script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>

How can I move the bannerRotaror lines BELOW JQuery lines? or

How can I move the new Themeswitcher JQuery lines to the similar position as the orignal JQuery lines were?

Thanks a lot.

I will really appreciate your help.
Eduardo.

Edited by elara, 01 November 2011 - 10:38 PM.


#162   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 01 November 2011 - 11:49 PM

Move the jQuery for the banner rotator to just before the </head> in catalog/includes/template_top.php.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#163   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 02 November 2011 - 03:24 AM

Hi Jim,

thanks a lot for your answer but I am sorry, I didnt understand that you mean.

I didnt find any JQuery BannerRotator line in catalog/includes/template_top.php file.

Can you tell me what lines you mean?

Thanks again.
Edo.

#164   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 November 2011 - 03:56 AM

The banner rotator I wrote uses bannerRotator.js. Where is the code that calls that file? Are you using the old embedded Banner Rotator or the modular one from Modular Front Page? Or is there some other version that I don't know about?

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#165   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 02 November 2011 - 04:24 AM

Hi,

I using OSC 2.31 and its embedded Banner Rotator into embedded FrontPage.

Thanks a lot for help me.

Edo.

#166   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 November 2011 - 04:35 AM

I don't understand. osCommerce 2.3.1 doesn't come with a banner rotator.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#167   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 02 November 2011 - 05:08 AM

Hi,

Upps, sorry, I received my OSC 2.31 with this installed and really now I am not sure it is enbebed or not but..

I look into catalog/includes/modules/front_page/banner_rotator.php file and see this:


/*
  $Id: banner_rotator.php v1.1.2 20110108 Kymation $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright © 2010 osCommerce

  Released under the GNU General Public License
*/

Please let me know if it help.
Thanks again Jim.
Edo.

#168   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 02 November 2011 - 02:51 PM

Hi again,

I asked to people who installed OSC2.31 to my. He said he installed the Modular Front Page.
Today I have reviewed and according to files installed in my server I beleive that it is Modular Front Page 1.2.6 version.

Thanks again.
Edo.

#169   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 02 November 2011 - 08:55 PM

That was actually a bug in the Modular Front Page code. It only happens when certain modules are installed, including the Theme Switcher module, so I didn't spot it in my testing. Thanks for reporting the bug. Please read this post for more information and to download the patched code.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#170   elara

elara
  • Members
  • 49 posts
  • Real Name:Eduardo Lara

Posted 02 November 2011 - 09:17 PM

Hi Jim, thanks a lot.

Excuse me but, last posted link to your server didnt work.

Edo.

Edited by elara, 02 November 2011 - 09:18 PM.


#171   gonucku

gonucku
  • Members
  • 4 posts
  • Real Name:Gonucku

Posted 04 November 2011 - 08:53 AM

Just installed this in my webshop, and it works fine exept one thing. The buttons for cart etc. disapear. How do I fix that?

#172 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,389 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 04 November 2011 - 08:58 AM

View Postgonucku, on 04 November 2011 - 08:53 AM, said:

Just installed this in my webshop, and it works fine exept one thing. The buttons for cart etc. disapear. How do I fix that?

In this post you just said that you installed something else

#173   gonucku

gonucku
  • Members
  • 4 posts
  • Real Name:Gonucku

Posted 04 November 2011 - 09:05 AM

Haha sorry for the confusion. I am totaly lost. But any way, in the read me for the "jQuery theme" it says that I don't have to modify any files if I first install this add on.
But I am sure I´m still in the wrong topic... I just searched jQuery and found this topic, thought it might be linked to each other.

#174   Severanth

Severanth
  • Members
  • 3 posts
  • Real Name:Frank
  • Gender:Male
  • Location:Sevenoaks, UK.

Posted 04 November 2011 - 11:08 AM

Greets and big thank you to Jim and others in the community.  Hopefully will have a chance to give back myself down the line.

Read through the thread and besides the toy guy who didn't post the fault itself I cannot see a answer for this issue.  Is it because my admin folder is a different name?  Only thing I can think of that is at all modified from stock install.

At the point of adding Themeswitcher it doesn't display only get this:

Fatal error: Cannot redeclare class ht_theme_switcher in /home/a9681070/public_html/includes/modules/header_tags/ht_theme_switcher.php on line 13

I have looked inside the file and re-replaced the 3 lines as was suggested above just incase but no joy. (They were the same anyways)  I cannot see anything that points to the admin theme_switcher.php but since the module registers as being present but fails to load I guess this is a dead end as a fix.

This is a clean install of oscommerce 2.3.1 and Themeswitcher 1.3

Any pointers much appreciated.  Thank you.

Edited by Severanth, 04 November 2011 - 11:13 AM.


#175   Severanth

Severanth
  • Members
  • 3 posts
  • Real Name:Frank
  • Gender:Male
  • Location:Sevenoaks, UK.

Posted 04 November 2011 - 12:16 PM

Incase it helps someone else.  I must have placed one of the ht_theme_switcher.php files in the wrong place.  As has been said several times on this thread make sure you upload the files to the right folders as per the instructions.  Took me several failures before I succeeded.

#176   johnnydakota

johnnydakota
  • Members
  • 17 posts
  • Real Name:Johnny

Posted 04 November 2011 - 08:50 PM

Hi, I've installed Theme Switcher, but when I open the module on my page, nothing changes. During the install, the lines of code it said to delete, I didn't have.

Any help is appreciated.

#177   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 04 November 2011 - 09:48 PM

You probably don't have osCommerce 2.3.1. The solution is to upgrade.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#178   johnnydakota

johnnydakota
  • Members
  • 17 posts
  • Real Name:Johnny

Posted 05 November 2011 - 12:50 AM

View Postkymation, on 04 November 2011 - 09:48 PM, said:

You probably don't have osCommerce 2.3.1. The solution is to upgrade.

Regards
Jim
I am using 2.3.1

I am pretty sure I must have altered some code in the template_top.php file. If I paste a section, could you tell if that's it?

#179   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 05 November 2011 - 01:06 AM

That code is required for the theme to work. It either has to be in template_top.php or Theme Switcher has to provide it.

Please post your catalog/includes/template_top.php in a code box here and I'll take a look.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#180   johnnydakota

johnnydakota
  • Members
  • 17 posts
  • Real Name:Johnny

Posted 05 November 2011 - 02:46 AM

View Postkymation, on 05 November 2011 - 01:06 AM, said:

That code is required for the theme to work. It either has to be in template_top.php or Theme Switcher has to provide it.

Please post your catalog/includes/template_top.php in a code box here and I'll take a look.

Regards
Jim
<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2010 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 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>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<?php
  if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</script>
<?php
  }
?>
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<?php echo $oscTemplate->getBlocks('header_tags'); ?>
<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
</head>
<body>
<div id="bodyWrapper" class="container_<?php echo $oscTemplate->getGridContainerWidth(); ?>">
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">