Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to disable TrackBacks across whole site?


Reply

4 Posts   1889 Views

Avatar
MarijnKampf

23 August 2010 at 8:06pm Community Member, 164 Posts

I've noticed that all trackbacks are spam on one of my silverstripe sites. Is there an easy way of disabling all trackbacks across a site? I didn't see a way of as TrackBacksEnabled() seems to be read only. Will I have to alter the templates and remove the trackback related stuff? Would appreciate it if someone knows of an easy and quick way.

Avatar
redactuk

5 September 2010 at 12:02am Community Member, 117 Posts

I'm getting the same problem. Can someone please respond to this?

Avatar
MarijnKampf

5 September 2010 at 4:20am Community Member, 164 Posts

It's actually a setting in the blog you can find at the bottom of the content tab of your BlogHolder page. Ensure that the checkbox at Enable TrackBacks is cleared and the TrackBacks should be removed from the BlogEntries.

Or you can hack it in the code of blog\code\BlogEntry.php around line 165 by changing:

   /**
    * Check to see if trackbacks are enabled.
    */
   function TrackBacksEnabled() {
      return $this->getParent()->TrackBacksEnabled;
   }

to

   /**
    * Check to see if trackbacks are enabled.
    */
   function TrackBacksEnabled() {
      return false;
      //return $this->getParent()->TrackBacksEnabled;
   }

Avatar
DsX

8 December 2011 at 7:34am Community Member, 178 Posts

Is there a way of moderating trackbacks? I am getting loads of spam this way as well.