1
ManXP
NoFollow Tag
  • 2005/2/23 18:46

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


I have a question about <a rel="nofollow"> tag for URLs.

Yes, it's possible to add this tag to theme.html (under <head>), but then ALL links on my website will get "nofollow" atribute. I want to add this tag just for all links, which are posted in News. If possible - to users posted comments too.

But other links should be like they are now. How could i add "nofollow" just for stories, posted in News?

If you didn't hear about this yet, please read Google's blog here:http://www.google.com/googleblog/2005/01/preventing-comment-spam.html

2
Mithrandir
Re: NoFollow Tag

if this is possible through CSS (I don't know if it is), you can add it to the .item and .comText classes in the theme's style.css

3
ManXP
Re: NoFollow Tag
  • 2005/2/23 20:20

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Oh yes, i was thinking about it myself, but didn't find any way to insert this tag on CSS. Seems, that css doesn't support it yet

4
ManXP
Re: NoFollow Tag
  • 2005/2/25 9:48

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


But hey, there should be another solution.

If people post any link, tag target="_blank" is added automatically, right? If i'd know where this function is located (to add this tag for links posted on News module), we could add rel="nofollow" tag to be inserted automatically too.

5
hervet
Re: NoFollow Tag
  • 2005/3/1 18:27

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

For the news module, you have to edit all the templates and to search for this, but you will have also to search inside the code....
for this moment I don't think to add a such thing in the news module.

Bye,
Hervé

6
ManXP
Re: NoFollow Tag
  • 2005/3/2 19:42

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Any hints, please?

I searched all the files in News module for text "link", found code for story edit/delete links, file download links, etc, but no code for "normal" link posted in the story.

7
Mithrandir
Re: NoFollow Tag

MyTextsanitizer class in xoops-root/class/module.textsanitizer.php

xoopsCodeDecode() method

8
ManXP
Re: NoFollow Tag
  • 2005/3/2 20:01

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Yes, just checked this out few minutes ago, it seems to be working :)

Thanks for your help Mithrandir, i'm glad to see your posts

Login

Who's Online

166 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits