The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Is better for seo having the content link in meta. I have seen it in a lot of big porn site.
example
<link rel="canonical" href="http://mysite.com/" />
more info: http://support.google.com/webmasters/bi … wer=139394
Offline
I will read about this. Which meta links?
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
No news yet :-) I will read about this and include in 1.0.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
no need to read, is boring watch this video http://www.youtube.com/watch?feature=pl … 9onOGTgeM#!
Offline
any news on this because same video getting bugs on google webmaster center.
/18781/wife-cheating-with-her-masseur/
/18781/wife-cheating-with-her-masseur/?sms_ss=facebook&at_xt=4deb31d4c9db38cd%2C0
It says that those URLs has the same title title. LOL
Offline
This is added in 1.0, but until then there is no fix. You can just do this:
Edit templates/your-template/header.tpl.php and add the following code:
<?php if (isset($this->canonical)): foreach ($this->cananical as $link): ?>
<link rel="canonical" href="<?php echo $link; ?>" />
<?php endforeach; endif; ?>
before:
<link rel="stylesheet" href="<?php echo TPL_REL; ?>/css/style.css?v3" type="text/css" media="all" />
Once this is done edit module/video/components/view.php and add the following code:
$this->tpl->canonical = array(BASE_URL.'/'.$video['video_id'].'/'.$video['slug'].'/');
before:
$this->tpl->vcfg = $this->vcfg;
Let me know if this works. I will also add this in Adult Script Pro 1.0.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
On which site did you add this? Please email me FTP access and i will check.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I made this more simple, because there is only one canonical link:
So in templates/your-template/header.tpl.php:
<?php if (isset($this->canonical)): ?>
<link rel="canonical" href="<?php echo $this->canonical; ?>" />
<?php endif; ?>
and in modules/video/components/view.php:
$this->tpl->canonical = BASE_URL.'/'.$video['video_id'].'/'.$video['slug'].'/';
@Eri: i added this on your site.
UPDATED: fixed a bug in the first code snippet.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I did what was posted however mine only show up as:
<link rel="canonical" href="" />
So I am guessing I misplaced the last line of code. I added it to the render() function just prior to the load() call. Where does it need to go? I also assume that $link was supposed to be $canonical.
Based on what you are doing, I fixed it with simply leaving the tpl->canonical line (waiting for clarification on what might be happening) and adding this in the header instead:
<?php if (isset($this->canonical)): ?>
<link rel="canonical" href="<?php echo $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; ?>" />
<?php endif; ?>
Last edited by THS (2012-04-06 15:56:13)
Offline
Erm..sorry. $links is $this->canonical
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Duh! I totally forgot to add the scope. All works now.
Offline