Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oscommerce/last.fm playlist integration.


gandhi

Recommended Posts

Afternoon.

 

Don't know if anyone remembers a while back i wanted to do this....

 

http://www.brewrecords.net/shop/

 

anyhow, i have embedded my playlist accordingly, it looks and obviously sounds amazing, however how do i set it up so that browsing my shop will not reload the playlist....?

 

also i don't want to use frames...

 

thanks!!!

Link to comment
Share on other sites

We kind of tried this once before using Javascript and a cookie.

 

It seems unreliable at best, probably because of faulty javascript.

:(

 

Would you be interested in resurrecting my idea (the little popup window) but base it off PHP and a session variable instead of a cookie?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Not that I am aware of.

 

I don't know a whole lot about iframes but it might be possible to put the player in an iframe to keep it from reloading.

 

Before I spend time working on the "PHP with a session variable" approach I just want to be sure it's what you want.

 

It will work just like it did the last time we fiddled with it.

 

The player will popup in it's own little window.

 

The only difference will be that using a session variable I can "bullet proof" it so it only pops up ONCE.

 

If that will work for you, I'll spend time working out the "particulars".

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Personally, I find it non-productive to work on anything you consider "temporary".

 

I've been trying to think of a "permanant" solution but have yet to come up with one.

 

I was hoping someone else might....

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

actually is there a way i can get the popup playlist to load exactly where the playlist is embeded on the column right?

 

and also is there some code where i can stop it loading more than once when people are navigating the site?

 

this is probably the best solution...if it's possible that is!!

Link to comment
Share on other sites

actually is there a way i can get the popup playlist to load exactly where the playlist is embeded on the column right?

No.

 

and also is there some code where i can stop it loading more than once when people are navigating the site?

That's what I attempted last time using javascript and a cookie.

 

That method wasn't so reliable. Probably because of my javascript code.

 

As I stated before, using a session variable I can "bulletproof" it so it only pops up ONCE. I feel confident about that.

 

One caveat is this: If they visit the site I can make it pop up (ONCE). then let's say they visit other sites in the same browser window, then they come back say in 10 or 15 minutes. It probably won't popup because the session will still be active.

 

I don't know for sure how long a session remains valid, but you don't want to shorten that time because if you did that it also affects people browsing the site buying things. If you shortened the session life to say 5 minutes as an example, then if someone logged in and spent more than 5 minutes deciding what to buy they would get logged out.

 

Does the phrase, "Caught between a rock an a hard place" sound familiar?

:unsure:

 

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i think i know what you mean....

 

 

might be best to delete the column_right lastfm playlist and just keep it as it is?

 

Do you think as it stands it works well, i'm relatibvely happy with it and i applaud you efforts! Just one of those people thats never satisfied!

 

cheers!

Link to comment
Share on other sites

might be best to delete the column_right lastfm playlist and just keep it as it is?

I think removing it from the right column and making it a popup is the best solution.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Follow the directions in our last attempt at this:

 

Click Me

 

Except use the code below in your index.php:

 

<script type="text/javascript">

var showlastfm=new Array();
showlastfm[0]="http://brewrecords.net/shop/lastfm.html"

function openlastfm(popurl){
var winpops=window.open(popurl,"","width=200,height=370,resizable,screenX=550,screenY=325,top=325,left=550");
}

function fmload(){
 openlastfm(showlastfm[0]);
}

<?php
 if ( ( ! tep_session_is_registered('LastFM') ) || ( $LastFM != 1 ) ) {
$LastFM = 1;
if ( ! tep_session_is_registered('LastFM') )  {
  tep_session_register('LastFM');
}
?>

fmload()

<?php
 }
?>
</script>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...