Second block of news

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
gr.stm
Active Member
Posts: 1
Joined: 5. April 2010 12:14

Second block of news

Post by gr.stm »

Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Whether the second block of news on a portal with the themes is possible?

Tried to do:

1. Add in base portal config - "portal_news_forum_d"
2. Copy news.php to news_d.php and change

Code: Select all

          $forum_from = $portal_config['portal_news_forum_d'];
3. Add in portal.php

Code: Select all

       if ($portal_config['portal_news'])
       {
          include($phpbb_root_path . 'portal/block/news_d.' . $phpEx);
          $template->assign_var('S_NEWS_COMPACT', $portal_config['portal_news_style']);
       }
4. Add in portal_canter.html

Code: Select all

    <!-- IF S_DISPLAY_NEWS -->
       <!-- IF S_NEWS_COMPACT -->
          <!-- INCLUDE portal/block/news_compact_d.html -->
       <!-- ELSE -->
          <!-- INCLUDE portal/block/news_d.html -->
       <!-- ENDIF -->
    <!-- ENDIF -->
Result:
In each block themes from both options in base are summarised

Excuse for bad English, help please with my problem[/i]
Locked

Return to “board3 Portal 1.0.x - English Support”