Jump to content



Latest News: (loading..)

* * * * * 1 votes

[Addon} Theme Switcher


  • Please log in to reply
467 replies to this topic

#261   BearNecessities

BearNecessities
  • Members
  • 10 posts
  • Real Name:Conan

Posted 21 June 2012 - 11:24 AM

P.S - I think the problem might be with this section of code in top_template.php:



Quote

$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());
  }


#262 ONLINE   kymation

kymation

    Believers

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

Posted 21 June 2012 - 05:52 PM

@rdbello -- That will display pages correctly, but Theme Switcher will not work without those changes. If you want Theme Switcher to work, you need to find your error and fix it. Go through the installation instructions again and check every step.

@BearNecessities -- You probably modified admin/includes/template_top.php when you should have modified catalog/includes/template_top.php. The other possibility is that you uploaded your catalog/includes/template_top.php to admin/includes/template_top.php.

Regards
Jim

Edit: That was the wrong filename. Oops.

Edited by kymation, 21 June 2012 - 05:57 PM.

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

#263 ONLINE   kymation

kymation

    Believers

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

Posted 23 July 2012 - 03:24 AM

I've uploaded a new version to the osCommerce Addons area. As usual, this is a stripped-down copy to fit under the maximum file size. If you want the whole thing with all the extras, you can download it from my server.

This release adds checking for the most common install errors. It won't catch everything, but it should make it a lot easier to find most mistakes. I've also cleaned up the code and removed the catalog/admin/includes/functions/modules/header_tags/theme_switcher.php file.

There's no need to upgrade from an older version unless you want the shiny new error-checking tools. There are no bug fixes, and hopefully no new bugs. I've tested this on my test server and installed it on a couple of live sites and it seems to work just fine. Please post here if you do find a bug and I'll fix it.

Regards
Jim

Edit: The editor "fixed" my text again. Bah.

Edited by kymation, 23 July 2012 - 03:26 AM.

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

#264   DrGlitch

DrGlitch
  • Members
  • 15 posts
  • Real Name:Rich Petersen

Posted 23 July 2012 - 09:32 PM

I have an existing custom theme that I originally created using the Theme Roller page.  Now I'd like to tweak it.  Does anyone know of a way to upload an existing custom theme as a starting point or do I have to re-create everything from scratch?

#265 ONLINE   kymation

kymation

    Believers

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

Posted 23 July 2012 - 09:53 PM

Open the CSS file in your theme package. Somewhere around Line 55 will be a long URL. Copy that and paste it in your browser. You can then make changes and download the revised theme.

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

#266   DrGlitch

DrGlitch
  • Members
  • 15 posts
  • Real Name:Rich Petersen

Posted 24 July 2012 - 02:07 AM

@kymation - Thanks, that helps.  More specifically I was hoping to be able to get the values loaded for use with the Firefox ThemeRoller Dev tool.  I'm guessing that might be doable by tweaking developertool.js.php

Edited by DrGlitch, 24 July 2012 - 02:15 AM.


#267 ONLINE   kymation

kymation

    Believers

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

Posted 24 July 2012 - 02:29 AM

I don't know of any way to do that, short of rewriting the script. Please share if you get it to work.

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

#268 ONLINE   kymation

kymation

    Believers

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

Posted 29 August 2012 - 02:06 AM

I've added version 1.4.1 to the Addons area. This revision updates the template_top.php file to match osCommerce 2.3.3. It will still work with older 2.3 versions as well, but you should upgrade your osC install anyway. I also fixed an issue with PHP older than 5.0, for those of you still on obsolete servers.

The version in the Addons area has the Extras folder removed to save space. If you want the whole package, it's available from my server. Either one is enough to install.

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

#269   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 29 August 2012 - 08:27 PM

Hello,

Did install the switcher and after some modifications it works fine, but all my images if you click on the products are now full size and no longer thumbnail?

Please advice

Cheers and thank you for a great contrib
-Peder Beckman-
Kool Kat Jazz Records

#270 ONLINE   kymation

kymation

    Believers

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

Posted 29 August 2012 - 08:57 PM

That's a jQuery problem. Check your Theme Switcher module in your Admin -- are all of the check marks green?

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

#271   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 29 August 2012 - 09:39 PM

View Postkymation, on 29 August 2012 - 08:57 PM, said:

That's a jQuery problem. Check your Theme Switcher module in your Admin -- are all of the check marks green?

Regards
Jim

Yes, they are all green

Quote

Version: 1.4.0


Enable Theme Switcher
True

Sort Order
1

Jquery Version
1.8.0

Jquery UI Version
1.8.23

Theme
sunny


The jQuery file was found.


The jQuery UI file was found.


The selected theme was found.


The selected version of the theme was found.


template_top.php has been modified.


The language file was found.

Edited by pederb, 29 August 2012 - 09:44 PM.

-Peder Beckman-
Kool Kat Jazz Records

#272 ONLINE   kymation

kymation

    Believers

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

Posted 30 August 2012 - 12:13 AM

That's odd, it works on every site I've tried it on. Did you use the copy of template_top.php from the Theme Switcher package or did you modify your own?

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

#273   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 30 August 2012 - 04:24 PM

View Postkymation, on 30 August 2012 - 12:13 AM, said:

That's odd, it works on every site I've tried it on. Did you use the copy of template_top.php from the Theme Switcher package or did you modify your own?

Regards
JIm

Modified the one we had
-Peder Beckman-
Kool Kat Jazz Records

#274 ONLINE   kymation

kymation

    Believers

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

Posted 30 August 2012 - 04:48 PM

Try using the one from the Theme Switcher package.

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

#275   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 30 August 2012 - 05:06 PM

View Postkymation, on 30 August 2012 - 04:48 PM, said:

Try using the one from the Theme Switcher package.

Regards
Jim

That made it even worse, now I lost all the frames and boxes?
-Peder Beckman-
Kool Kat Jazz Records

#276   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 30 August 2012 - 05:24 PM

Found the error in the stylesheet, wrong version jquery-ui-1.8.22.css instead of jquery-ui-1.8.23.css

Thxs

Edited by pederb, 30 August 2012 - 05:27 PM.

-Peder Beckman-
Kool Kat Jazz Records

#277   WizardOI

WizardOI
  • Members
  • 8 posts
  • Real Name:Andrew Land

Posted 08 September 2012 - 06:29 AM

Per the read me this is what im working with:

osCommerce Online Merchant v2.3.3
Theme Switcher 1.4.1

Ive spent prob 6 or 7 hors trying to figure out how to install this theme switcher and use a theme from theme roller but I cant figure out how to or where to install theme switcher.  I have read the readme file from top to bottom several times and im still lost...

What has me really confused is the installation instructions says "Upload the files listed under New Files below to your store, keeping the directory structure the same as the installed copy of your store. "

and to install:
2.2.3 New Files
catalog/developertool.js.php
catalog/developertool.php
catalog/images/fflogo.png
catalog/images/icon_bookmarklet_dragger.gif
catalog/includes/languages/english/modules/header_tags/ht_theme_switcher.php
catalog/includes/modules/header_tags/ht_theme_switcher.php

and to mod:
2.2.4 Modified Files
catalog/includes/template_top.php (Delete lines and move lines)

But I do not have a directory called catalog already so where do i put these files?
I have also read through the other thread about using themes without theme switcher but all that did was remove all the buttons and bars from my page.

Edited by WizardOI, 08 September 2012 - 06:38 AM.


#278 ONLINE   kymation

kymation

    Believers

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

Posted 08 September 2012 - 05:28 PM

The default installation of osCommerce is in a folder named catalog. If yours is installed somewhere else, change catalog to the name of the folder where your osCommerce installation is located.

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

#279   WizardOI

WizardOI
  • Members
  • 8 posts
  • Real Name:Andrew Land

Posted 10 September 2012 - 10:57 PM

View Postkymation, on 08 September 2012 - 05:28 PM, said:

The default installation of osCommerce is in a folder named catalog. If yours is installed somewhere else, change catalog to the name of the folder where your osCommerce installation is located.

Regards
Jim

Thanks I was just over thinking it. Now I just have to figure out what I screwed up in the theme install because all the boxes and side panels are correct but my background stayed white LOL

#280   WizardOI

WizardOI
  • Members
  • 8 posts
  • Real Name:Andrew Land

Posted 10 September 2012 - 11:49 PM

I cant seem to edit my last post but just FYI im using the Dot-luv stock theme