Thread: News forums coming on home page

Results 1 to 3 of 3
  1. #1 News forums coming on home page 
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Hello guys i have a IPB forums and i want when im post a new topic that coming on home page any help will be awesome
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    i wrote this code many years ago for an rsps, works on ipb3. ipb4 will be different entirely

    Code:
    $dir = getcwd();
                
    define('IPSB_PATH', 'forums');
    chdir(IPSB_PATH);
    define('IPB_THIS_SCRIPT', 'public');
    define('ALLOW_FURLS', FALSE);
    require_once(IPSB_PATH . '/initdata.php');
    require_once(IPS_ROOT_PATH . 'sources/base/ipsRegistry.php');
    require_once(IPS_ROOT_PATH . 'sources/base/ipsController.php');
    require_once(IPS_ROOT_PATH . 'sources/classes/bbcode/core.php');
                
    $registry = ipsRegistry::instance();
    $registry->init();
    $parser = new class_bbcode_core($registry);
    $parser->parse_html  = 0;
    $parser->parse_nl2br = 1;
    Code:
    SELECT * FROM `ipb_topics` WHERE (`forum_id` = 'FORUM_ID') AND `state` = 'open' and approved = '1' ORDER BY `start_date` DESC LIMIT 0,5"
    each topic

    Code:
    "SELECT * FROM `ipb_posts` WHERE `pid` =? limit 1"  ------- $result->topic_firstpost
    use

    Code:
     $parser->preDisplayParse(text); -------------- $post_result->post
    to format it the same as ipb
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    RSPS SERVICES PROVIDER

    The Plateau's Avatar
    Join Date
    May 2015
    Posts
    999
    Thanks given
    592
    Thanks received
    191
    Rep Power
    129
    Quote Originally Posted by Stuart View Post
    i wrote this code many years ago for an rsps, works on ipb3. ipb4 will be different entirely

    Code:
    $dir = getcwd();
                
    define('IPSB_PATH', 'forums');
    chdir(IPSB_PATH);
    define('IPB_THIS_SCRIPT', 'public');
    define('ALLOW_FURLS', FALSE);
    require_once(IPSB_PATH . '/initdata.php');
    require_once(IPS_ROOT_PATH . 'sources/base/ipsRegistry.php');
    require_once(IPS_ROOT_PATH . 'sources/base/ipsController.php');
    require_once(IPS_ROOT_PATH . 'sources/classes/bbcode/core.php');
                
    $registry = ipsRegistry::instance();
    $registry->init();
    $parser = new class_bbcode_core($registry);
    $parser->parse_html  = 0;
    $parser->parse_nl2br = 1;
    Code:
    SELECT * FROM `ipb_topics` WHERE (`forum_id` = 'FORUM_ID') AND `state` = 'open' and approved = '1' ORDER BY `start_date` DESC LIMIT 0,5"
    each topic

    Code:
    "SELECT * FROM `ipb_posts` WHERE `pid` =? limit 1"  ------- $result->topic_firstpost
    use

    Code:
     $parser->preDisplayParse(text); -------------- $post_result->post
    to format it the same as ipb
    Thank you bud for reply but i do not know where i will add it ?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 09-04-2013, 01:10 AM
  2. 'Forums' tab on every page.
    By Root in forum Suggestions
    Replies: 12
    Last Post: 09-28-2012, 12:13 AM
  3. Display SOTW winner's tag on front page/forums?
    By Beh3moth in forum Suggestions
    Replies: 43
    Last Post: 10-21-2009, 03:38 AM
  4. The Best Signature YET! COME ON ROCKYY!
    By Inside Sin in forum Showcase
    Replies: 16
    Last Post: 07-31-2007, 06:38 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •