Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: Prosis on January 02, 2007, 01:19:12 PM

Title: Automatic Topics from a News Page
Post by: Prosis on January 02, 2007, 01:19:12 PM
I'm currently on PHPBB and I'll be moving to Simple Machines this weekend.  But something just occured to me.  I currently have a news script that I created myself and to which I added a mod for PHPBB that posts the content and title of the news I post on the news script on the forum so that people can comment.  Unfortunately, I don't know if such a thing exists on Simple Machines.

Can anyone help me with this?

Thank You
Title: Re: Automatic Topics from a News Page
Post by: vbgamer45 on January 02, 2007, 01:38:59 PM
Check out the CreatePost() function

http://dev.simplemachines.org/function_db/index.php?action=view_function;function=377
Title: Re: Automatic Topics from a News Page
Post by: Prosis on January 02, 2007, 01:44:14 PM
This is awesome...but being quite new at PHP I do have some questions:

1-My news script is not in the same directory than my forum script.  How can I link the two?
2-Do you have an example of the script in use so I can see how to fill in the necessary information?

Thanks again! :)
Title: Re: Automatic Topics from a News Page
Post by: Prosis on January 04, 2007, 09:07:59 AM
Anyone?
Title: Re: Automatic Topics from a News Page
Post by: Ben_S on January 04, 2007, 09:15:02 AM
Have a look in the General Discussion and Feedback (http://www.simplemachines.org/community/index.php?board=2.0)  board for the RSS injector thread, somewhere in there is an RSS injector script that makes use of it, see how they have used it.
Title: Re: Automatic Topics from a News Page
Post by: Prosis on January 05, 2007, 11:38:40 AM
Thanks :)