ashishkranjan / dabr

Automatically exported from code.google.com/p/dabr
0 stars 0 forks source link

Use "rel-tag" #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like dabr to do?

Use the rel="tag" attribute when linking to hastags. This will enable
browser tools to search for the same tag on other sites, such as Flickr,
Delicio.us or YouTube.

How would you prefer dabr to do it?

Change, for example:

<a href="hash/dabr">#dabr</a>

to:

<a href="hash/dabr" rel="tag">#dabr</a>

Original issue reported on code.google.com by pigsotwing on 21 Dec 2009 at 12:24

GoogleCodeExporter commented 9 years ago
In common/Autolink.php

Find the following code:

'${1}<a href="' . $this->get_base() . 'hash/' . '${3}" title="#${3}" class="' . 
$this->urlClass . ' ' . $this->hashtagClass . '">${2}${3}</a>',

Then, modify it:

'${1}<a href="' . $this->get_base() . 'hash/' . '${3}" title="#${3}" class="' . 
$this->urlClass . ' ' . $this->hashtagClass . '" rel="tag">${2}${3}</a>',

That's OK.

Original comment by jak...@gmail.com on 15 Jan 2011 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by agyldaco...@gmail.com on 29 Aug 2011 at 4:23

Attachments: