Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Jukebox Contribution


Veirdo

Recommended Posts

Hey all. Happy Xmas. I'm trying to get the Jukebox Contrib installed in a new osCommerce install. (http://www.oscommerce.com/community/contributions,643)

 

This mod hasn't been updated in 18 months and I could use a little advice on getting it implemented. The basic installlation instructions are looking for 'default.php' and I take it that has changed since 2.1 to index.php. My installation has two index.phps, one in the catalog and one under catalog/includes.

 

Basically, I followed the instructions but the jukebox doesn't load with the rest of the shopping cart. If I manually point my browser to the jukebox.php file, the jukebox works.

 

Anyone install this mod recently?? Thanks all.

Link to comment
Share on other sites

The catalog/includes/index.php is for security reasons. It should be an empty file.

 

I've never worked with any mods but It would seem to me that you would need a 'require' statement in catalog/index.php? Something like:

 

require('pathnametojukebox/jukeboxfilename.php');

 

Good luck, Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

I added

 require(DIR_WS_INCLUDES . 'jukebox.php');

to my column_right.php and it works, but the session ID isn't working. If I go to another part of the shopping cart, the music starts over from the beggining. Any clues? Thanks!!

Link to comment
Share on other sites

Again, I'm just shooting in the dark here, but every file in catalog has its own set of requires so when you change pages, everything from 'application_top.php' down is reloaded with each new click. If I had to try something I would put it in 'catalog/index.php' at the top before

 

  require('includes/application_top.php');

 

so it would be running in the background with 'index'. Of course, I don't know how you could allow the guests to turn it off (does it turn on and off?) in that case unless you put the button at the top of the page above the header, OR does the 'require' filter down through the whole file being executed, in which case it doesn't matter where the button is located.

 

Beyond that, I don't know what else to do.

 

Good luck,Charles

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...