[CDB] Board3 Portal 2.1.0-RC2

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
Alpha Kitten
Registered User
Posts: 48
Joined: Sun May 24, 2015 9:17 am

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Alpha Kitten » Thu Jun 04, 2015 2:59 pm

Don't mind me just posting so I don't forget about this addon.

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5413
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Marc » Sat Jun 06, 2015 9:05 pm

KillBill. wrote:1. bug
The team - module

If ACP use Manage team and added +1 group no see / The team portal module

2. ACP bug

If disabled every second module after click delete the disabled module
Result :: all disabled modules disappear!
If you reload the web page to appear in the disabled modules.

3. bug

If disabled all modules after enabled 1 module example Left Menu after go portal page = NO display module.

if enable 2 modules example Left Menu and Right User menu = Display Error

---------------------------------------

request: calendar module - next month use ajax :oops:
Both the second and third issue should be solved by the fix for this issue: https://github.com/board3/Board3-Portal/issues/578

The team module has a rather limited set of features. You might want to try enabling the extended team module.
bennybernaer wrote:I would like the flags block down to move to the portal. I added the following changes, but unfortunately does not work. What am I doing wrong and how to get it working properly?

ext\board3\portal\styles\prosilver\template\portal\modules
flags_center.htm

Code: Select all

{$C_BLOCK_H_L}{$TITLE}{$C_BLOCK_H_R}
<div class="panel bg1 portal-no-margin" id="flags">
   <ul class="topiclist bg1">
      <li class="header">
         <dl>
            <dt><div class="list-inner"><!-- IF U_FLAGS --><a href="{U_FLAGS}"><!-- ENDIF -->{L_NATIONAL_FLAGS}<!-- IF U_FLAGS --></a><!-- ENDIF --></div></dt>
         </dl>
      </li>
   </ul>
   <ul class="flags">
   <!-- BEGIN flag -->
      <li class="bg1">
         <a href="{flag.U_FLAG}">{flag.FLAG}</a><br />{flag.L_FLAG_USERS}
      </li>
   <!-- END flag -->
   </ul>
</div>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}

flags.php

Code: Select all

<?php
/**
*
* @package Board3 Portal v2 - National flags
* @copyright (c) Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

namespace board3\portal\modules;

/**
* @package National flags
*/
class portal_flags extends module_base
{
   /**
   * Allowed columns: Just sum up your options (Exp: left + right = 10)
   * top      1
   * left      2
   * center   4
   * right      8
   * bottom   16
   */
   public $columns = 21;

   /**
   * Default modulename
   */
   public $name = 'PORTAL_FLAGS';

   /**
   * Default module-image:
   * file must be in "{T_THEME_PATH}/images/portal/"
   */
   public $image_src = 'portal_custom.png';

   /**
   * module-language file
   * file must be in "language/{$user->lang}/mods/portal/"
   */
   public $language = 'portal_flags_module';
   
   /**
   * custom acp template
   * file must be in "adm/style/portal/"
   * public $custom_acp_tpl = 'acp_portal_';
   */
   
   /** @var \phpbb\config\config */
   protected $config;

   /** @var \phpbb\template */
   protected $template;

   /** @var string PHP file extension */
   protected $php_ext;

   /** @var string phpBB root path */
   protected $phpbb_root_path;


   /**
   * Construct object
   *
   * @param \phpbb\config\config $config phpBB config
   * @param \phpbb\request\request $request phpBB request
   * @param \phpbb\template $template phpBB template
   * @param \phpbb\user $user phpBB user
   * @param string $phpbb_root_path phpBB root path
   * @param string $phpEx php file extension
   */
   public function __construct($config, $phpEx, $phpbb_root_path)
   {
      $this->config = $config;
      $this->template = $template;
      $this->phpbb_root_path = $phpbb_root_path;
      $this->php_ext = $phpEx;
   }
   /**
   * {@inheritdoc}
   */
   public function get_template_center($module_id)
   {
      $portal_config = obtain_portal_config();

//Begin: National_Flag
if (!empty($config['allow_flags']))
{
   if (!function_exists('top_flags'))
   {
      include($phpbb_root_path . 'ext/rmcgirr83/nationalflags/functions_nationalflags.php.' . $phpEx);
   }
   top_flags();
}
//End: National_Flag
return 'flags_center.html';
}   
public function get_template_acp($module_id)
   {
      return array(
         'title'   => 'PORTAL_FLAGS',
         'vars'   => array(
         'legend1'                            => 'ACP_FLAG_SETTINGS',
         )
      );
   }
   
   /**
   * {@inheritdoc}
   */
    public function install($module_id)
    {
        return true;
    }

   /**
   * {@inheritdoc}
   */

    public function uninstall($module_id)
    {
       return true;
    }
                     
}
portal_flags_module.php

Code: Select all

<?php
/**
*
* [Dutch] translated by Dutch Translators (https://github.com/dutch-translators)
* @package Board3 Portal v2.1 - national flags
* @copyright (c) 2013 Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
   exit;
}
if (empty($lang) || !is_array($lang))
{
   $lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
   'PORTAL_FLAGS'  => 'National flags',
));
Did you look at this before? https://github.com/board3/Board3-Portal ... rtal-2.1.x
For testing purposes, you should be using the RC3 from here: https://github.com/board3/Board3-Portal/releases

sgtevmckay
Registered User
Posts: 200
Joined: Tue Apr 27, 2010 4:32 am
Contact:

Re: [RC] Board3 Portal 2.1.0-RC2

Post by sgtevmckay » Sat Jun 06, 2015 9:20 pm

For the new RC 3 Should we completely, and properly, uninstall the previous RC first?

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5413
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Marc » Sun Jun 07, 2015 6:54 am

You should be able to update by deactivating the portal in the Extensions settings (not the portal's settings), then removing the old files and replacing them with new files, and afterwards activating the portal again in the Extensions settings.

travel
Registered User
Posts: 131
Joined: Sun Jan 11, 2015 7:21 pm

Re: [RC] Board3 Portal 2.1.0-RC2

Post by travel » Sun Jun 14, 2015 9:39 pm

Just testing the RC3.
Nice job! 8-)

But, I have just wondered, how to change files to show left or right column only in boards index.php without viewtopic.php?

User avatar
adsol93
Registered User
Posts: 31
Joined: Tue May 26, 2015 2:14 am

Re: [RC] Board3 Portal 2.1.0-RC2

Post by adsol93 » Mon Jun 15, 2015 3:14 pm

Bug report:

When you add a module to the bottom (the one I used is the "Who is Online" module), in the responsive design it looks like this.

Image

Wesley88
Registered User
Posts: 115
Joined: Mon Jun 15, 2015 4:38 pm

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Wesley88 » Mon Jun 15, 2015 4:44 pm

Marc wrote:Extension Name: Board3 Portal
Very amazing work!
I have few questions, can u help me out?
-When I click on board index I can't see portal tab anymore. How to make it always visible?
-Where do I change "Portal" to say something esle such as Home, left from board index.
-I am getting this style error. Can I somehow change the package to put needed images files into my Black folder and how? Thanks.
-Possible to open every link from portal no matter if iternal or external in new window?
-Where I can add embded chat box and how? Thank you.
Last edited by Wesley88 on Tue Jun 16, 2015 12:11 am, edited 1 time in total.

Wesley88
Registered User
Posts: 115
Joined: Mon Jun 15, 2015 4:38 pm

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Wesley88 » Mon Jun 15, 2015 8:34 pm

Also, i've added that line in htaccess file in forums root but it still shows normal index as home. I want portal to be index and home. Thanks. Did cleared cache btw.

User avatar
Nikola
Registered User
Posts: 284
Joined: Fri Jun 12, 2015 11:47 am
Name: Nikola

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Nikola » Tue Jun 16, 2015 11:32 pm

Nice work there.
Nothing to report this time. However, on my iphone, portal is kinda messed up where tabs are overlapping. I am using custom black theme by arty though.
"What would happen if the autism gene was eliminated from the genetic pool?

You would have a bunch of people standing around in a cave, chatting and socializing and not getting anything done."

- Dr. Temple Grandin, A Personal Look at Autism and Asperger's Syndrome.

Wesley88
Registered User
Posts: 115
Joined: Mon Jun 15, 2015 4:38 pm

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Wesley88 » Fri Jun 19, 2015 10:34 pm

Can someone help. :(

Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Kinsman » Fri Jun 19, 2015 11:19 pm

I am unsure what line you are referring to in htaccess, but here is the line from my apache httpd file that makes the portal our home page.

<IfModule dir_module>
DirectoryIndex app.php index.php index.html index.htm
</IfModule>

User avatar
Fast_Eddie
Registered User
Posts: 206
Joined: Tue Jun 09, 2015 8:32 pm
Name: Ed

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Fast_Eddie » Sun Jun 21, 2015 2:24 pm

Amazed no one has asked yet.

How do you make the portal the front page when people access the domain name?
This is what I am trying to do also. I found the question posted. But no answer to it? I would like the portal page to be displayed before the board index.

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5413
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: [BETA] Board3 Portal 2.1.0-b1

Post by Marc » Sun Jun 21, 2015 2:39 pm

That question was in fact answered multiple times already in this thread, e.g.
Marc wrote:
moviehive wrote:Amazed no one has asked yet.

How do you make the portal the front page when people access the domain name?
This should work for Apache:
http://board3.de/viewtopic.php?f=72&t=10827#p35252

If you can't understand it because it's German:
Open: root/.htaccess
Add this to the end of the file:

Code: Select all

DirectoryIndex app.php index.php index.html index.htm

User avatar
tahoebuff
Registered User
Posts: 1427
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Re: [RC] Board3 Portal 2.1.0-RC2

Post by tahoebuff » Mon Jun 22, 2015 3:49 pm

Wesley88 wrote: -Where I can add embded chat box and how? Thank you.
moving answer over from 3.1 support...

When you sign in to Kiwi and go to "Your IRC Clients", you'll see a tab you can click on called "Embedding". Click there and you'll see some code that starts with <iframe...

In your phpBB ACP, you go to Extensions/Portal Modules. click on "add module" under the section you want your widget to appear on. Select "Custom Block" from the drop down menu. All you do at this point is paste the embed code into the Custom Block Code area, making sure you click on "no" where it says "Activate BBcode". Just save and your block will appear on your portal page with your embedded chat widget.

User avatar
Nikola
Registered User
Posts: 284
Joined: Fri Jun 12, 2015 11:47 am
Name: Nikola

Re: [RC] Board3 Portal 2.1.0-RC2

Post by Nikola » Tue Jun 30, 2015 12:46 am

One option to open every internal and external links even board index and others from portal in new tab would be appreciated. People often put many things on portal such as chat boxes which is causing them them to reload. Thanks for considering.
"What would happen if the autism gene was eliminated from the genetic pool?

You would have a bunch of people standing around in a cave, chatting and socializing and not getting anything done."

- Dr. Temple Grandin, A Personal Look at Autism and Asperger's Syndrome.

Locked

Return to “Extensions in Development”