Adult Script Pro Community Forums

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.

#1 2012-02-21 20:59:38

Eri
Member
Registered: 2011-03-18
Posts: 977

[ADDED IN 1.0] canonical link in metatag

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


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2012-02-22 08:36:22

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

I will read about this. Which meta links?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2012-02-22 09:57:58

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

pornhub.com has at

main
video
recent videos
.
.
categories
community


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2012-02-25 14:26:55

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

any news? smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#5 2012-02-25 18:04:36

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

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

#6 2012-03-12 13:05:04

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

no need to read, is boring smile watch this video http://www.youtube.com/watch?feature=pl … 9onOGTgeM#!


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#7 2012-04-02 13:35:28

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

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


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#8 2012-04-02 16:05:04

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

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

#9 2012-04-04 17:02:51

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

not working


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#10 2012-04-04 17:53:09

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

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

#11 2012-04-06 13:11:19

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

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

#12 2012-04-06 13:41:09

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: [ADDED IN 1.0] canonical link in metatag

thanks smile


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#13 2012-04-06 15:23:12

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: [ADDED IN 1.0] canonical link in metatag

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

#14 2012-04-06 16:22:12

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [ADDED IN 1.0] canonical link in metatag

Erm..sorry. $links is $this->canonical


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#15 2012-04-06 18:39:55

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: [ADDED IN 1.0] canonical link in metatag

Duh!  I totally forgot to add the scope.  All works now.

Offline

Board footer

Powered by FluxBB