Admin Userlist toevoegen aan Mod CP

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
pencak
Berichten: 377
Lid geworden op: 19 jun 2005, 07:09
Contacteer:

Admin Userlist toevoegen aan Mod CP

Bericht door pencak » 26 sep 2006, 20:20

Ik heb op mijn forum de Moderator CP van Kooky al een tijd geleden geïnstalleerd, en dit werkt prima

ik heb ook de Admin Userlist van wGEric aka Eric Faerber op mijn forum draaien

de bedoeling is dat ik deze Admin Userlist wil toevoegen aan het ModCP

wie kan mij hiermee helpen :?:
Afbeelding

Gebruikersavatar
pencak
Berichten: 377
Lid geworden op: 19 jun 2005, 07:09
Contacteer:

Bericht door pencak » 01 okt 2006, 11:04

helemaal niemand die een idee heeft :roll:
Afbeelding

Niek
Berichten: 1818
Lid geworden op: 21 sep 2005, 19:04
Locatie: Vriezenveen
Contacteer:

Bericht door Niek » 01 okt 2006, 14:17

Als je kijkt tussen de bestanden die bij de modcp mod zitten staat er een bestand waar in beschreven staat hoe je nieuwe modules kunt toevoegen.

Ga naar contrib--->add_new_modules--->install_modules.txt
Groetjes Niek

Alleen support via het forum, niet via PB, MSN of email.

Gebruikersavatar
pencak
Berichten: 377
Lid geworden op: 19 jun 2005, 07:09
Contacteer:

Bericht door pencak » 01 okt 2006, 16:43

het is geen module die ik wil toevoegen, maar een andere hack

het is een link die nu alleen in het ACP staat, maar die ik ook in het ModCP wil hebben
Afbeelding

Niek
Berichten: 1818
Lid geworden op: 21 sep 2005, 19:04
Locatie: Vriezenveen
Contacteer:

Bericht door Niek » 01 okt 2006, 16:48

Dat staat dus precies in het bestand omschreven wat ik je gaf.
##############################################################
## MOD Title: How to add new Modules
## MOD Author: kooky < [nospam]kooky@altern.org > (n/a) http://www.myphpbb.zaup.org/
## MOD Author: Milkman < milkman@web-milk.co.uk > (Phill Sparks) http://www.lsucs.com/
## MOD Description: Explains how to add new modules for the Moderator CP.
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time: 2 minutes
## Files To Edit: 1
## modcp/admin_xxx.php
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## How to, for understanding purpose.
##
## Legend:
## -------
## - name_of_your_file = xxx
## - NAME_OF_YOUR_CATEGORY = CAT
## - NAME_OF_YOUR_MODULE = MOD
##
##############################################################
## MOD History:
##
## 2006/02/01 - Version 1.0.5
## - Updated find 'admin/' and replace with 'modcp/'
##
## 2005/11/26 - Version 1.0.4
## - Updated to match the Moderator CP version 1.1.1
##
## 2005/08/24 - Version 1.0.3 (Milkman)
## - Updated to match the Moderator CP version 1.1.0
##
## 2005/07/25 - Version 1.0.2
## - Updated to match the Moderator CP version 1.0.10
##
## 2004/12/28 - Version 1.0.1
## - Updated to match the Moderator CP version 1.0.7
##
## 2004/09/09 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy root/admin/admin_xxx.php to modcp/admin_xxx.php
copy root/templates/subSilver/admin/xxx_body.tpl to templates/subSilver/modcp/xxx_body.tpl


#
#-----[ OPEN ]------------------------------------------
#
modcp/admin_xxx.php

#
#-----[ FIND ]------------------------------------------
# each time you have
# $module['CAT']['MOD'] = $filename;
#
$module['CAT']['MOD'] = $filename;
#
#-----[ REPLACE WITH ]------------------------------------------
#
if (check_perms('CAT', 'MOD'))
$modcp_module['CAT']['MOD'] = $filename;

#
#-----[ FIND ]------------------------------------------
#
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);

#
#-----[ AFTER ADD ]------------------------------------------
# If you have more than one module item you'll need to add
# more of these blocks, and check for the $module too.
#
// Enable/disable the Module
if (!check_perms('CAT', 'MOD'))
{
// End of Activation
$message = $lang['Module_disabled'] . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . $phpEx . '?pane=right') . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}

#
#-----[ FIND ]------------------------------------------
# each time you have admin/ (mostly in link and tpl code)
#
admin/
#
#-----[ REPLACE WITH ]------------------------------------------
#
modcp/
#
#-----[ FIND ]------------------------------------------
# each time you have page_footer_admin
#
include('./page_footer_admin.'.$phpEx);
#
#-----[ REPLACE WITH ]------------------------------------------
#
include('./page_footer_mod.' . $phpEx);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
In het rode stukje hierboven staat dus dat je het bestand wat je met de hack in root/admin hebt geplaatst nu moet kopieren naar root/modcp.

Het moet wel eerst aangepast worden, zoals omschreven hierboven!!
Groetjes Niek

Alleen support via het forum, niet via PB, MSN of email.

Gesloten