[Tool][2.0.x]Mods settings : a tool for mod author

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

[Tool][2.0.x]Mods settings : a tool for mod author

Post by Ptirhiik » Sat Aug 23, 2003 6:02 am

I finaly decided to release this one apart, even if it is not a stand-alone mod ;).

This mod is designed to manage your new config table entry for your mod in a new option ("Configuration +") in a quite automatic way, rather than modifying for each mod the admin_board.php. It handles creation of the config entry, and management in the admin panel.

Creating appropriated fields in the users table, and adding the optional parts of this mod for users preferences, it will add a new option to the board menu, letting your users choose their preferences.

All options are stacked per mod (you can stack some mods together giving the same name for the mod_name), giving a consistant but friendly interface, with sub-menus per mod (see the sample of the ACP).

Well, it sounds more complicated that it is actually :) : it is already included in categories hierarchy v 2 and topic calendar v 1, you can find it this forum. Be also sure to read the README.txt included in the zip ;).


:arrow: the mod
:arrow: demo board : for the user part with the Profile Control Panel (you can use test pass test).
Note the PCP mod is not required : a similar option exists for phpBB board without the PCP.


Sample of the Admin Control Panel (click to enlarge) :
Image
Last edited by Ptirhiik on Tue Sep 30, 2003 9:01 pm, edited 3 times in total.

User avatar
Jaeboy
Registered User
Posts: 446
Joined: Fri Oct 18, 2002 4:42 pm
Location: HkG SAR
Contact:

Post by Jaeboy » Sat Aug 23, 2003 6:34 am

Sounds cool - any screenshot from ACP?
A personal blog :: My Blog | lalaland

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Re: [RC/Tool][2.0.x]Mods settings : a tool for mod author

Post by Ptirhiik » Sat Aug 23, 2003 6:41 am

Ptirhiik - RPGnet-fr wrote: Sample of the Admin Control Panel (click to enlarge) :
:lol:

User avatar
Jaeboy
Registered User
Posts: 446
Joined: Fri Oct 18, 2002 4:42 pm
Location: HkG SAR
Contact:

Post by Jaeboy » Sat Aug 23, 2003 6:47 am

Umm.... is it opera or phpbb?

I just noticed that:

Code: Select all

[url=http://rpgnet.clanmckeen.com/mod/mod-mods_settings/config_settings-sample-norm.gif][img]http://rpgnet.clanmckeen.com/mod/mod-mods_settings/config_settings-sample.gif[/img][/url]
on quoting your post - but my browser won't show any image!!

Ahh! Indeed - very interesting mod :P
A personal blog :: My Blog | lalaland

User avatar
Carpe Diem
Registered User
Posts: 580
Joined: Tue Dec 10, 2002 11:19 pm

Post by Carpe Diem » Sat Aug 23, 2003 9:58 am

Hmm..

Ok please call me stupid but I didn't understand a thing about what this mod does really!
:lol:

I mean, you said yourself that this is not a standalone mod, so that means that I have to have sub cat hierarchy 2 or the calendar mod made by you installed to have any use for it?

Or can I set up even other mods installed on my board to be configurable by this mod? And if so, does it mean that an admin is able to enable/disable every mod installed on the board for the users? Or does a user get to enable/disable different board features of their own through their profile page??! I mean as it is right now, very few mods made out there are set to be enabled/disabled through the config panel in ACP...

I'm sorry but as you see I didn't understand at all what this mod does really and I'm ashamed that I didn't! But would you please explain some further what the requirements are for this mod to be useful and what it actually configures, rather than HOW it does it?

Regards,
/Carpe Diem

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Sat Aug 23, 2003 10:17 am

this looks great :-)

You can make configuring other mods very easy with this tool

especially smaller mods that only need some config table sql updates, can use this instead of needing to write a sql installer...
unless i'm mistaken in your purpose here, where you planning to add functionality for installation, or just display?
If you could handle installation that would be very cool, althought it's obvious that this would be more difficult
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Aug 23, 2003 4:01 pm

The initiate part is just the paint, the wall is more the ability to manage the values and user preferences only giving an easy define of each config entry your mod need ;). But of course it will create the entry in config table if it's missing, with the default value set in the mod_xxx.php definition (xxx stands for the name of your mod :)).
Last edited by Ptirhiik on Tue Sep 30, 2003 9:02 pm, edited 1 time in total.

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Aug 23, 2003 4:02 pm

[*snip*]
Last edited by Ptirhiik on Tue Sep 30, 2003 9:02 pm, edited 1 time in total.

DanielT
Former Team Member
Posts: 3324
Joined: Tue Aug 27, 2002 10:55 am
Contact:

Post by DanielT » Sat Aug 23, 2003 6:35 pm

if you want to submit, do so here:

http://www.phpbb.com/phpBB/catdb.php?cat=25

:)

thanks!

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Aug 23, 2003 6:41 pm

Ok, thanks for the search :). I'm gonna do it right now ;).

Mohd
Registered User
Posts: 263
Joined: Mon Jul 15, 2002 9:06 pm
Contact:

Post by Mohd » Sat Aug 23, 2003 10:20 pm

I've done this for mod split topic types
mod_split_topic_type.php

Code: Select all

<?php
/***************************************************************************
 *                            mod_split_topic_type.php
 *                            ----------------------------
 *	begin			: 23/08/2003
 *	copyright		: Mohd
 *	email			: mohd@mohd.tk
 *	version			: 1.0.0 - 23/08/2003
 *
 *	mod version		: split topic type 
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

// service functions
include_once( $phpbb_root_path . 'includes/functions_mods_settings.' . $phpEx );

// mod definition
$mod_name = 'Announce_settings';
$config_fields = array(
	'split_announce' => array(
		'lang_key'	=> 'split_announce',
		'type'		=> 'LIST_RADIO',
		'default'	=> 'yes',
		//'user'		=> 'user_split_announce',
		'values'	=> $list_yes_no,
		),
	'split_sticky' => array(
		'lang_key'	=> 'split_sticky',
		'type'		=> 'LIST_RADIO',
		'default'	=> 'yes',
		//'user'		=> 'user_split_sticky',
		'values'	=> $list_yes_no,
		),
	'split_topic_split' => array(
		'lang_key'	=> 'split_topic_split',
		'type'		=> 'LIST_RADIO',
		'default'	=> 'yes',
		//'user'		=> 'user_split_topic',
		'values'	=> $list_yes_no,
		),
);

// init config table
init_board_config($mod_name, $config_fields);
?>
Visit My Site Mohd Web Site!
My Current mod is PaFileDb Integration 0.0.8
Demo: Click Here
No support via PM

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Sat Aug 23, 2003 10:27 pm

Actually, the split topic type mod extension is already done, awaiting some amelioration to be published, and yes it results in such a file for it :) : you get the point ;).

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Tue Sep 30, 2003 9:06 pm

This mod/tool has been upgrade to the version 1.1.6 :). It allows now to manage undefined type of field, updating the config board table or not, also updating the user table or not.

The new version allows also to have sub-level in an option, or managing a main entry as a menu different option (default mode is Preferences, you can set another one). You can also now add on the url the user_id seen (usefull if you want to set a link from the user viewprofile to his preferences).


The profile control panel version is no more included in the mod, as it is in dongle in pcp v 1.0.2.

Post Reply

Return to “[2.0.x] MOD Writers Discussion”