gandhi Posted September 3, 2008 Share Posted September 3, 2008 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 More sharing options...
gandhi Posted September 3, 2008 Author Share Posted September 3, 2008 any input on this would be greatly appreciated!!! Link to comment Share on other sites More sharing options...
germ Posted September 3, 2008 Share Posted September 3, 2008 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 More sharing options...
gandhi Posted September 4, 2008 Author Share Posted September 4, 2008 i have no idea what ou mean but i'll try anything once!! cheers!! Link to comment Share on other sites More sharing options...
gandhi Posted September 4, 2008 Author Share Posted September 4, 2008 is there not a way i can just stop column_right from reloading when browsing the shop? Link to comment Share on other sites More sharing options...
germ Posted September 4, 2008 Share Posted September 4, 2008 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 More sharing options...
gandhi Posted September 4, 2008 Author Share Posted September 4, 2008 i think temporary a popup is perfect, but in the long term i'd want it to be a permanent part of the site, it looks ace on the column right section of the shop. Link to comment Share on other sites More sharing options...
gandhi Posted September 8, 2008 Author Share Posted September 8, 2008 has there been any update on this mate? thanks, tom Link to comment Share on other sites More sharing options...
germ Posted September 8, 2008 Share Posted September 8, 2008 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 More sharing options...
gandhi Posted September 8, 2008 Author Share Posted September 8, 2008 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 More sharing options...
germ Posted September 8, 2008 Share Posted September 8, 2008 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 More sharing options...
gandhi Posted September 9, 2008 Author Share Posted September 9, 2008 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 More sharing options...
germ Posted September 9, 2008 Share Posted September 9, 2008 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 More sharing options...
gandhi Posted September 10, 2008 Author Share Posted September 10, 2008 yeah i like it now, so is it impossible to have the popup load on the far right of the screen? cheers, tom Link to comment Share on other sites More sharing options...
germ Posted September 11, 2008 Share Posted September 11, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.