Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2014-01-26 11:56:39

altjo
Member
From: República bananera
Registered: 2013-04-24
Posts: 6
Website

A few of my small ideas...

1/ Alternative way to clear and re-generate forum's cache

* Based on Clear Cache plugin
flux.png

open
admin_index.php

find

$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Index']);

before add

elseif ($action == 'clear_cache')
{
	require PUN_ROOT.'include/cache.php';

	generate_config_cache();
	generate_bans_cache();
	generate_quickjump_cache();
	generate_censoring_cache();
	generate_stopwords_cache();
	generate_users_info_cache();
	generate_admins_cache();

	message($lang_admin_index['Cache re-generated']);
}

find

<li><span><?php echo $lang_admin_index['Welcome 9'] ?></span></li>

after add

<li><span><a href="admin_index.php?action=clear_cache"><?php echo $lang_admin_index['Welcome clear cache'] ?></a></span></li>

and open
lang\English\admin_index.php

find

'Database data size'				=>	'Size: %s',

after add

// Clear Cache
'Welcome clear cache'				=>	'Easily and simply re-generate your FluxBB cache files.',
'Cache re-generated'				=>	'Cache re-generated.'

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

2/ I think it's better to change the input field to a textarea in the Board description (Admin menu -> Options)

flux2.png

open
admin_options.php

find

<input type="text" name="form[board_desc]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>" />

replace with

<textarea name="form[board_desc]" rows="3" cols="50" tabindex="2"><?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?></textarea>

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

3/ When you install the forum, if not filled "Password" or "Confirm password", pops up a warning window

flux3.png

open
lang\English\install.php

find

'Administrator password 1'		=>	'Administrator password 1',
'Administrator password 2'		=>	'Administrator password 2',

replace with

'Administrator password 1'		=>	'Administrator password',
'Administrator password 2'		=>	'Confirm administrator\'s password',

=== life is too short to be unhappy ===
See my Russian and Ukrainian lang packs for FluxBB 1.5.8
My Simple styles pack here

Offline

#2 2014-01-26 16:48:39

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,047
Website

Re: A few of my small ideas...

Thank you very much for the input!

I've tweaked #2 and #3 a little bit, but implemented both, so they will be in the next release.
Regarding #1: I think people can just use the plugin if they really need this feature. smile


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

Board footer

Powered by FluxBB 1.5.8