Extension Description:
With this extension you can set forum width in ucp in pixels.
dmzx/Set-forum-width
Code update for validation.
Screenshots:
Extension Download:
setforumwidth_v101.zip
Installation:
Download the latest release.
Unzip the downloaded release, and change the name of the folder to `setforumwidth`.
In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
Copy the `setforumwidth` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/setforumwidth/composer.json
Navigate in the ACP to `Customise -> Manage extensions`
Look for `Set forum width` under the Disabled Extensions list, and click its `Enable` link.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
<?php
/**
*
* @package phpBB Extension - Set forum width
* @copyright (c) 2017 dmzx - https://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
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
//
// Some characters for use
// ’ » “ ” …
$lang = array_merge($lang, array(
'SET_WIDTH' => 'Imposta la larghezza del forum',
'SET_WIDTH_LINK' => 'Larghezza',
'SET_WIDTH_EXPLAIN' => 'Imposta la larghezza del forum. Il valore di default è 1152px.<br />Da 625px a 1800px.',
));
Is it possible to add a general width for the forum, even if logged out ? I mean guest users should also having a minimum settings of width. My forum design gets to small after logged out and with this width settings it could be fine adjusted, but first after login. Can the database having an value for visitors for a special setup width ?
I don't see why your Guest user couldn't have a width set in their user data. But they wouldn't have any control on changing the width.
And these are not minimum width settings. This extension sets the width to a user's specified setting.
The migration file sets the width for everyone when enabled to 1152px. Your Guests should see your forum at that width.
As admin you could set your Guest's view to let's say 900px with a sql command.
<?php
/**
*
* @package phpBB Extension - Set forum width
* @copyright (c) 2017 dmzx - https://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* Vietnamese language pack <giaminhteam@gmail.com>
*/
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
//
// Some characters for use
// ’ » “ ” …
$lang = array_merge($lang, array(
'SET_WIDTH' => 'Cài đặt độ rộng diễn đàn',
'SET_WIDTH_LINK' => 'Chiều rộng',
'SET_WIDTH_EXPLAIN' => 'Thiết lập này giúp bạn cài đặt độ rộng của diễn đàn, mặc định là 1152px.<br />Từ 625px tới 1800px.',
));