jaymc Posted April 16, 2008 Share Posted April 16, 2008 I have an audio feature on my website which plays music. I strictly want the music to carry on playing whilst they browse around different pages on the site. To make this work, I figure the only option is to have a top iframe, 20px in height and a bottom iframe which fills the rest of the remaining space. From client point of view, you wouldnt even know, so no issues there. However, this means that when search engines hit my website, they wont see all my content/links etc, they will just see a page with 2 iframes on. This will seriously screw up any chance of google nicely indexing my website, right?. Or am I missing something. I cant have the audio player in a popup by the way, so thats a no go. I dont mind the iframes, I just dont want it to screw google up. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/ Share on other sites More sharing options...
haku Posted April 16, 2008 Share Posted April 16, 2008 Why can't you have the audio player in a popup? Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-518533 Share on other sites More sharing options...
jaymc Posted April 16, 2008 Author Share Posted April 16, 2008 1: No one likes popups 2: I want it inside the website 3: People have popup blockers Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-518563 Share on other sites More sharing options...
haku Posted April 16, 2008 Share Posted April 16, 2008 While I agree with you, you are basically in the position of having to sacrifice either music continuity or your SEO rating. I personally don't like iframes at all. Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-518592 Share on other sites More sharing options...
Zhadus Posted April 16, 2008 Share Posted April 16, 2008 You could put all meta tags etc. in each individual page and put up a redirect so that if the individual page is loaded not within the frame, that it would direct to your index page with both frames. This way google should be able to crawl it and if a person follows a link to your page, it would direct them to your main page. Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-518691 Share on other sites More sharing options...
TheFilmGod Posted April 16, 2008 Share Posted April 16, 2008 music? Use the old windows media player trick. Make them stream the music using windows media player. The program will stream the music and not the browser - allowing the user to even view webpages outside of your website. This is very simple to do. Google it. Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-518978 Share on other sites More sharing options...
jaymc Posted April 17, 2008 Author Share Posted April 17, 2008 It has to be flash the music player which i alrady have, and i dont want any other windows open, even if its a progra/wmp How about having some code detect whether it is google bot reading the page, if so, redirect them/load the main content without the frames That way according your google your homepage is the actualy content page not the frame place holder That feasable do you think? Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-519226 Share on other sites More sharing options...
haku Posted April 17, 2008 Share Posted April 17, 2008 I would suggest doing it the other way - make the non-frame page the default page, then if the user isn't googlebot or another spider, direct them to the frames page. Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-519283 Share on other sites More sharing options...
jaymc Posted April 17, 2008 Author Share Posted April 17, 2008 Cool Whats the best way to detect any search engine spider I dont want to limit just to google I want to be able to basically have in php if ($source = "robot") {include("noneframes.php")} else {include("frames.php")} What should $source be and what should it be checking for Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-519284 Share on other sites More sharing options...
TheFilmGod Posted April 17, 2008 Share Posted April 17, 2008 Cool Whats the best way to detect any search engine spider I dont want to limit just to google I want to be able to basically have in php if ($source = "robot") {include("noneframes.php")} else {include("frames.php")} What should $source be and what should it be checking for You shouldn't be including; instead you should redirect... header ('..."); Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520008 Share on other sites More sharing options...
haku Posted April 18, 2008 Share Posted April 18, 2008 What is the conditional on that? How do you know its the googlebot? Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520100 Share on other sites More sharing options...
jaymc Posted April 18, 2008 Author Share Posted April 18, 2008 I dont, thats what my question was How can I check to see if its a bot viewing my page If I have that I can do the rest Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520479 Share on other sites More sharing options...
haku Posted April 18, 2008 Share Posted April 18, 2008 Sorry, I wasn't asking you, I don't know either! TheFilmGod seemed to know so I was asking him. I'm curious! Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520492 Share on other sites More sharing options...
jaymc Posted April 18, 2008 Author Share Posted April 18, 2008 Over to the TheFilmGod ... Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520704 Share on other sites More sharing options...
ToonMariner Posted April 19, 2008 Share Posted April 19, 2008 This can be achieved - with the extensive use of ajax. But that is pretty much the only way to achieve it. The way to do it would be generate all the page content bar the flash player in an ajax request and update the html accordingly. This sounds like a big deal BUT if you plan you app properly the same code can be used both in the ajax request and in the normal page generation...# Beauty of that is no need for any different pages to be served for bots... Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-520848 Share on other sites More sharing options...
jaymc Posted April 19, 2008 Author Share Posted April 19, 2008 Yeh I know what you mean, a lot of my site is ajax but having everything in it is too much I guess its either that or frames, will stick with frames Although still looking for a fail safe way to serve bots my content page and not the frames Quote Link to comment https://forums.phpfreaks.com/topic/101372-iframeframe-google/#findComment-521265 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.