1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SMF 1.1.6 Content Generator?

Discussion in 'Cloaking and Content Generators' started by ijake, Sep 12, 2008.

  1. ijake

    ijake Registered Member

    Joined:
    Aug 19, 2008
    Messages:
    73
    Likes Received:
    7
    Occupation:
    Web Developer
    Location:
    UK
    Is there any avaliable cracked & working SMF content generator or even a desktop content generator?
     
  2. scb335

    scb335 BANNED BANNED

    Joined:
    Mar 5, 2008
    Messages:
    272
    Likes Received:
    438
    I don't know of any that are available, but with the SSI includes it isn't hard to create one. I did a while back for a movies database site so that anytime a new movie or actor was added to the main site a new discussion thread would be created on the forum for it.

    The basic PHP code was something like this:
    Code:
    include_once('/home/path/to.../forum/SSI.php');
    require_once($sourcedir . '/Post.php');
    require_once($sourcedir . '/Subs-Post.php');
    
    $topicOptions = array(
    		'id'		=> 0,   // 0 = New Topic otherwise Topic id to reply..
    		'board'	=> 22,  //What board to post on.. User doesn't even need rights to view it..
    		'mark_as_read'	=> false,
    		);
    $posterOptions = array(
    		'id'		=> (isset($ID_MEMBER) ? $ID_MEMBER : 0),
    		'name'		=> 'Add Name',
    		'email'		=> 'webmaster@yourdomain.com',
    		'ip'		=> $forummsg['IP'],
    		'update_post_count'	=> 0,
    		);
    $msgOptions = array(
    		'id'		=> 0,
    		'subject'	=> 'Add your post title here',
    		'body'		=> 'Your post message goes here.',
    		);
    
    createPost ($msgOptions,$topicOptions,$posterOptions);
    If you can pull content from an rss feed or some other source and place it into PHP variables you could use the above code to insert that content into your forum and auto-populate it pretty easy.

    Hope that helps.

    edit: just thinking of this now it might be a great way to add content for small niche minisites. Build a forum on the site, create a number of member accounts, seed the content from multiple rss feeds related to your site niche and add some random function to the code above for randomly making the posts from those multiple member accounts you created so it doesn't look like just 1 person posting everything.

    LOL looks like I've got a project for this evening now
     
    • Thanks Thanks x 2
    Last edited: Sep 14, 2008
  3. kouxx

    kouxx Junior Member

    Joined:
    Aug 2, 2008
    Messages:
    160
    Likes Received:
    38
    great little piece of code scb335

    as for your little project you could also use Inst*adigi Co*ntent Ge*nerator
    this could save you some time..
     
  4. scb335

    scb335 BANNED BANNED

    Joined:
    Mar 5, 2008
    Messages:
    272
    Likes Received:
    438
    Well, I like the freedom to tinker and existing scripts tend to be limiting. You can always modify them I suppose, but to me that's harder then starting from scratch.

    I've already got a first draft of this script running on my personal server, it can pull content from 5 different sources, posts to multiple boards and uses multiple member accounts for thread starting as well as replies from 2 of the sources.

    Can Inst*adigi Co*ntent Ge*nerator do that too? I haven't looked into it and don't know.
     
  5. kouxx

    kouxx Junior Member

    Joined:
    Aug 2, 2008
    Messages:
    160
    Likes Received:
    38
    of course it is not as customized as your own script.
    it was just an advise to save you some work :)

    when you are a good programmer... ( you seem to be) it's always better to write your own sricpts.
    can i contact you for some work btw..?
    i need software and scripts all the time...
     
  6. wayne756

    wayne756 Registered Member

    Joined:
    Apr 15, 2008
    Messages:
    78
    Likes Received:
    136
    Perhaps this mod can help:

    Rss Feed Poster

    http://custom.simplemachines.org/mods/index.php?mod=624
     
  7. scb335

    scb335 BANNED BANNED

    Joined:
    Mar 5, 2008
    Messages:
    272
    Likes Received:
    438
    Thanks wayne756, I saw that but decided to go a slightly different route with mine for more control over using multiple member accounts from the forum for automated posting. There's nothing worse then visiting a forum with thousands of posts only to find they all came from 1 account... my script is using tons of accounts now for creating threads, and tons of additional accounts for adding replies to appear more natural.

    @kouxx, and I appreciate the input. Sorry it took me so long to reply, lost power Sunday evening and am on a generator now just checking in on things, so progress has slowed until the lights are back.

    Feel free to contact me about small coding projects you might have, I don't do much freelance work these days but if you have small stuff you need I may be able to help you out once in a while.
     
  8. wayne756

    wayne756 Registered Member

    Joined:
    Apr 15, 2008
    Messages:
    78
    Likes Received:
    136
    That is great. I hope I can do that too, I got very limited php knowledge though

    By the way, is it similar to ICO content for SMF?
     
  9. scb335

    scb335 BANNED BANNED

    Joined:
    Mar 5, 2008
    Messages:
    272
    Likes Received:
    438
    wayne756, the PHP coding isn't really that intricate. All you really need is a little research at PHP net on the basic functions for strings (for manipulating the feed content) and SimpleXML (for getting and parsing the rss feeds).

    Then it's just a matter of basically using what I posted above for adding the feed content to the forum database as postings and replies.

    I'm also working on ways to manipulate some of the content which doesn't violate the publisher's TOS or AUP's so that there's a level of uniqueness to the output without it crossing the line too far.

    I've had a slow-down because of the power loss (damn you hurricane Ike) but will get this finished in the next couple days after I catch up with work and I'll share a version of it here.