SMF Mod that Puts Link at End of Post

Discussion in 'Forum Management' started by Bohol, Aug 21, 2009.

  1. #1
    I know this is available in Wordpress. But in SMF? I wonder. I notice that some sites are grabbing posts from an smf forum site that I manage.

    Is there any mod that would automatically put a source link for every grabbed post?
     
    Bohol, Aug 21, 2009 IP
  2. rockinaway

    rockinaway Well-Known Member

    Messages:
    230
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Are they grabbing posts via RSS Feeds? Or are they copying and then pasting as their own?
     
    rockinaway, Aug 27, 2009 IP
  3. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It seems that they are grabbing posts via the RSS Feeds. No, they are not posting it manually. Everything is done automated.
     
    Bohol, Aug 27, 2009 IP
  4. rockinaway

    rockinaway Well-Known Member

    Messages:
    230
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Which SMF version are you running?

    A temporary fix, that I can think of, is that you can add a line to one of the files. This would be added to the content so that before the post is added to the database, an extra line is tagged on so that it will add your link. This should hopefully stop the use of the RSS Feeds. I can't find a modification for it at the moment, but maybe we can add a custom line of PHP?
     
    rockinaway, Aug 28, 2009 IP
  5. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There is no available MOD at this time, Rockinaway.

    Yes, a custom line of php should solve this problem. Can you suggest one for SMF's RSS?

    We're running SMF 1.1.10 Version.
     
    Bohol, Aug 28, 2009 IP
  6. rockinaway

    rockinaway Well-Known Member

    Messages:
    230
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #6
    A temporary solution. Go to Sources/Post.php open it up and find

    // Collect all parameters for the creation or modification of a post.
    	$msgOptions = array(
    		'id' => empty($_REQUEST['msg']) ? 0 : (int) $_REQUEST['msg'],
    		'subject' => $_POST['subject'],
    		'body' => $_POST['message'],
    Code (markup):
    Replace this with:

    
    
    // Collect all parameters for the creation or modification of a post.
    	$msgOptions = array(
    		'id' => empty($_REQUEST['msg']) ? 0 : (int) $_REQUEST['msg'],
    		'subject' => $_POST['subject'],
    		'body' => $_POST['message'].'<br /><br />Content Copyright <a href="http://www.url.com">Website Name</a>',
    
    
    Code (markup):
    Just change the URL, hopefully this should work. Try it and let me know :)
     
    rockinaway, Aug 28, 2009 IP
  7. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi Rockinaway,

    Unfortunately, the modification does not work. The URL did not show up in RSS or in Regular Posts. There must be a way.
     
    Bohol, Aug 28, 2009 IP
  8. rockinaway

    rockinaway Well-Known Member

    Messages:
    230
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #8
    I will take a look at this later :)
     
    rockinaway, Aug 29, 2009 IP