Closed Thread
Results 1 to 9 of 9

Thread: Mysql help for phpBB mod

  1. #1
    Jordan C's Avatar
    Jordan C is offline x10 Lieutenant Jordan C is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    New Zealand
    Posts
    425

    Mysql help for phpBB mod

    Hi. I'm trying to install a mod on my forum that autoposts when a rss feed updates. This requires mySql databases, and I'm having a little trouble configuring it.

    Heres the only config instructions the author gives: - all configuration for feeds of lastRSS autoposting bot is in database table
    phpbb_lastrss_autopost ...
    Columns explanation :
    `name` - name of the feed - is also used in posting
    `url` - URL of the feed ...
    `next_check` - next check time (from PHP function time())
    `next_check_after` - number of hours between checks
    `destination_id` - forum_id where BOT will try to post
    `enabled` INT( 1 ) - boolean - if true, this feed will be checked

    In the phpbb_lastpostrss_autopost is this:
    Code:
    SELECT * FROM `phpbb_lastrss_autopost` WHERE 1`name``url``next_check``next_check_after``destination_id``enabled`
    I need some help setting this up.

    What i want is the feed url to be http://www.macrumors.com/macrumors.xml , the name to be MacRumors, the forum id to be 47 (I think, or http://smartmaconline.com/viewforum.php?f=47 (board disabled))
    I want it to start checking whenever, and it to recheck afterthat every hour.

    Can anyone help, I'm not very good with Mysql.


    Like Mac? Need Mac help? Thinking of switching? Smart Mac is the place for you!
    Join Smart Mac!


  2. #2
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: Mysql help for phpBB mod

    This really isn't an SQL thing. MySQL is simply a database, it can't actively fill itself. I'd be interested in the solution as I'm looking to put together something similar but in the meantime I recommend you investigate CRON Jobs, they're possibly what you're after. Execute a script at (whenever) that reads the RSS feed and adds the new information into your database
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  3. #3
    blackhnd is offline x10Hosting Member blackhnd is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    53

    Re: Mysql help for phpBB mod

    Quote Originally Posted by xmakina View Post
    This really isn't an SQL thing. MySQL is simply a database, it can't actively fill itself. I'd be interested in the solution as I'm looking to put together something similar but in the meantime I recommend you investigate CRON Jobs, they're possibly what you're after. Execute a script at (whenever) that reads the RSS feed and adds the new information into your database
    Yeah, for this kind of stuff, you have to have a cron task running, and you have to know PHP to make a cron script.

    you should take a look at some of the phpBB default cron tasks, and program yours around them.

  4. #4
    Soki is offline Banned Soki is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    127.0.0.1
    Posts
    857

    Re: Mysql help for phpBB mod

    Quote Originally Posted by xmakina View Post
    This really isn't an SQL thing. MySQL is simply a database, it can't actively fill itself
    Exactly. The MySQL database is a way of holding information, not doing anything much else. For example, the forums require a MySQL database, because that is where all threads, posts, and users are kept.

  5. #5
    Jordan C's Avatar
    Jordan C is offline x10 Lieutenant Jordan C is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    New Zealand
    Posts
    425

    Re: Mysql help for phpBB mod

    Yes. But the confgeration is in the database, as they do not have a ACP panel yet.

    All I need to know is how to setup the config.


    Like Mac? Need Mac help? Thinking of switching? Smart Mac is the place for you!
    Join Smart Mac!


  6. #6
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: Mysql help for phpBB mod

    You've lost me. Config for what? Who is they? Why does ACP come into this?
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  7. #7
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Mysql help for phpBB mod

    Do you mean opening a connection to the Database?
    I think that can be done by simply using the PHP function 'include()' to include the file.
    Example:
    Code:
    <?php
    include 'config.php';
    /*All the other stuff goes here*/
    ?>


  8. #8
    Jordan C's Avatar
    Jordan C is offline x10 Lieutenant Jordan C is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    New Zealand
    Posts
    425

    Re: Mysql help for phpBB mod

    Ok. The mod for phpBB uses MySql, but to setup the other settings (like feed url) you need to edit one of the databases in phpMyAdmin.

    All the mod detailed are here: http://www.phpbb.com/community/viewt...?f=70&t=829325


    Like Mac? Need Mac help? Thinking of switching? Smart Mac is the place for you!
    Join Smart Mac!


  9. #9
    Jordan C's Avatar
    Jordan C is offline x10 Lieutenant Jordan C is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    New Zealand
    Posts
    425

    Re: Mysql help for phpBB mod

    Never mind, I found out what I was doing wrong.

    *Topic locked*


    Like Mac? Need Mac help? Thinking of switching? Smart Mac is the place for you!
    Join Smart Mac!


Closed Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  3. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  4. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers