Search…

X3 Photo Gallery Support Forums

Search…
 
Nick85
Experienced
Posts: 30
Joined: 22 Feb 2011, 17:08

Re: seo, html to flash forced redirect

22 Mar 2011, 14:08

Only now I have understand what you are talking about.
Navigating without flash is good, but when Adobe flash turns on
we will see loaded flash site with url-prefix of the page on which we clicked from google..

It's not beatufil in url-address but it works.

So, the idea is to realize this in future version of Imagevue
 
Nick85
Experienced
Posts: 30
Joined: 22 Feb 2011, 17:08

updated: seo, html to flash forced redirect 2.7

25 May 2011, 03:22

Some update for version 2.7

Edit layout.phtml:

1) add 1 line into the head-tag before
"<?php
if ($sharing):"
Code
  <script type="text/javascript" src="<?php echo IV_PATH; ?>assets/js/swfaddress.js"></script>  
2) insert
Code
<div id="imagevue"><div id="na">
before
<div id="body" <?php if ($brCrumbs->count()>1): ?>class="inner"<?php endif; ?>>

3) insert before "</body>" tag
Code
</div>
</div>
<script type="text/javascript">
//<![CDATA[
	var flashVars = {
		foreground_color: 'EEEEEE',
		background_color: '222222'
		};
swfobject.embedSWF("http://yourdomain/iv-includes/imagevue2.swf", "imagevue", "100%", "100%", "8.0.0", "http://yourdomain/iv-includes/expressInstall.swf", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#222222', wmode:"transparent"}, {id: 'imagevue', name: 'imagevue'});
		// ]]>
</script>
So, if the visitor's computer able to view FLASH, the flash version will load, and if the flash player is not installed, visitor will see our basic html page. Note, that in case of FLASH version the main page will be loaded.
 
Nick85
Experienced
Posts: 30
Joined: 22 Feb 2011, 17:08

Re: seo, html to flash forced redirect

03 Jun 2011, 02:24

I noticed that from versions 2.7 there are redirect by default from base template page http://www.domain.com/index.php (index.gallery.phtml) to html version fo site if it enabled.
In earlier versions if we have not flash player installed while opening main page of site, we get index.gallery.phtml page with text "OOps!" and only there we have to click to open a html version. Now it loads automatically. Of course it s very good. But I cant understand the mechanism of redirect.
I am afraid that this useful feature will be recognized by some search engines like cloacking or search-spam, because user and search engine gets different pages.
Please tell me what to edit to switch off redirect from index.gallery.phtml to html version? Users without flash player will click links by themselves and search engines will not suspect my site.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: seo, html to flash forced redirect

03 Jun 2011, 05:43

I think you need to delete this part in gallery.index.phtml:
Code
<?php if ($this->enabledHTML): ?>
						swfobject.addDomLoadEvent(function () {
							var playerVersion = swfobject.getFlashPlayerVersion();
							if (playerVersion.major < 9) {
								location.href = '?' + SWFAddress.getPath();
							}
						});
<?php endif; ?>
firedev.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: seo, html to flash forced redirect

03 Jun 2011, 11:46

Nick85 wrote:I am afraid that this useful feature will be recognized by some search engines like cloacking or search-spam, because user and search engine gets different pages.
Google is much smarter than that these days. If the re-direct is for something functional, then it is not bad, and Google will not think it is bad. In our case, Imagevue is simply redirecting non-flash browsers to the none-flash version of Imagevue. There is nothing malicious or any "cloaking" in that ... How can it be bad?

In this day and age with multiple platforms, we figured it was outdated to have some text displayed to the user "oops, you are missing this and that". Instead, we just serve them the version they should be viewing depending on their platform. The same happens at many large sites these days, as they may forward to domain.com/mobile ... or mobile.domain.com to display the mobile version for example.