[2.0.10] Moderator CP

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
95
65%
Very Good
27
18%
Good
13
9%
Fair
3
2%
Poor
9
6%
 
Total votes: 147

secretmaple
Registered User
Posts: 62
Joined: Sat Oct 13, 2007 12:48 am

Re: [2.0.10] Moderator CP

Post by secretmaple »

I installed the modcp with easymod, and it works, and then, i access the modcp, and it comes out like this:
Image
I'm using phpBB 2.0.22(LATEST) phpbb2 forum, and my style is: extremedarkred

How do i fix it without changing my style?
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: [2.0.10] Moderator CP

Post by A_O_C »

secretmaple wrote:my style is: extremedarkred
this is your problem right here. what you need to do is go to templates/extremedarkred/admin and copy these files to templates/extremedarkred/modcp.
  • index.html
  • disallow_body.tpl
  • index_body.tpl
  • index_frameset.tpl
  • index_navigate.tpl
  • page_footer.tpl
  • page_header.tpl
  • ranks_edit_body.tpl
  • ranks_list_body.tpl
  • smile_edit_body.tpl
  • smile_import_body.tpl
  • smile_list_body.tpl
  • user_avatar_gallery.tpl
  • user_ban_body.tpl
  • user_edit_body.tpl
  • user_email_body.tpl
  • user_select_body.tpl
  • words_edit_body.tpl
  • words_list_body.tpl
cheers.
secretmaple
Registered User
Posts: 62
Joined: Sat Oct 13, 2007 12:48 am

Re: [2.0.10] Moderator CP

Post by secretmaple »

A_O_C wrote:
secretmaple wrote:my style is: extremedarkred
this is your problem right here. what you need to do is go to templates/extremedarkred/admin and copy these files to templates/extremedarkred/modcp.
  • index.html
  • disallow_body.tpl
  • index_body.tpl
  • index_frameset.tpl
  • index_navigate.tpl
  • page_footer.tpl
  • page_header.tpl
  • ranks_edit_body.tpl
  • ranks_list_body.tpl
  • smile_edit_body.tpl
  • smile_import_body.tpl
  • smile_list_body.tpl
  • user_avatar_gallery.tpl
  • user_ban_body.tpl
  • user_edit_body.tpl
  • user_email_body.tpl
  • user_select_body.tpl
  • words_edit_body.tpl
  • words_list_body.tpl
cheers.
I don't get it.
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: [2.0.10] Moderator CP

Post by A_O_C »

in your phpbb root directory, you should have a templates folder. in that folder, you should have an extremedarkred folder. in THAT folder, you should have an admin folder and a modcp folder. follow my instructions above. if you still dont get it (please at least try first), ill be happy to do it for you if you want.
th3l33t1
Registered User
Posts: 87
Joined: Wed Jan 31, 2007 12:10 pm

Re: [2.0.10] Moderator CP

Post by th3l33t1 »

Guys i need abit of help please :) Im trying to get the above code below to work, bascily i want my moderators not to have as much power so i have removed such things as been able to edit passwords etc. But when a mod trys to edit a user profile now and save the changes, it just doesnt save them and goes back to the user select page in the mod cp =\


user_edit_body.tpl

Code: Select all

<h1>{L_USER_TITLE}</h1>
<p>{L_USER_EXPLAIN}</p>
{ERROR_BOX}
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">
<table width="98%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline">
	<tr>
		<th class="thHead" colspan="2">{L_REGISTRATION_INFO}</th>
	</tr>
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
	</tr>
	<tr>
		<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
		<td class="row2"><b><span class="genmed">{USERNAME}</span></b></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
		<td class="row2"><b><span class="genmed">{EMAIL}</span></b></td>
	</tr>
	<tr>
		<td class="cat" colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<th class="thSides" colspan="2">{L_PROFILE_INFO}</th>
	</tr>
	<tr>
		<td class="row2" colspan="2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td>
	</tr>
	<!-- BEGIN switch_change_disallowed -->
	<tr>
		<td class="row1"><span class="gen">{L_ICQ_NUMBER}</span></td>
		<td class="row2"><span class="genmed">{ICQ}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_AIM}</span></td>
		<td class="row2"><span class="genmed">{AIM}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_MESSENGER}</span></td>
		<td class="row2"><span class="genmed">{MSN}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_YAHOO}</span></td>
		<td class="row2"><span class="genmed">{YIM}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_WEBSITE}</span></td>
		<td class="row2"><span class="genmed">{WEBSITE}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_LOCATION}</span></td>
		<td class="row2"><span class="genmed">{LOCATION}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_OCCUPATION}</span></td>
		<td class="row2"><span class="genmed">{OCCUPATION}</span></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_INTERESTS}</span></td>
		<td class="row2"><span class="genmed">{INTERESTS}</span></td>
	</tr>
	<tr>
		<td class="row1">
			<span class="gen">{L_SIGNATURE}</span><br />
			<span class="gensmall">{L_SIGNATURE_EXPLAIN}<br />
			<br />
			{HTML_STATUS}<br />
			{BBCODE_STATUS}<br />
			{SMILIES_STATUS}</span><br />
		</td>
		<td class="row2" valign="top"><span class="genmed">{SIGNATURE}</span></td>
	</tr>
	<!-- END switch_change_disallowed -->
	<!-- BEGIN switch_change_allowed -->
	<tr>
		<td class="row1"><span class="gen">{L_ICQ_NUMBER}</span></td>
		<td class="row2"><input class="post" type="text" name="icq" size="10" maxlength="15" value="{ICQ}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_AIM}</span></td>
		<td class="row2"><input class="post" type="text" name="aim" size="20" maxlength="255" value="{AIM}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_MESSENGER}</span></td>
		<td class="row2"><input class="post" type="text" name="msn" size="20" maxlength="255" value="{MSN}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_YAHOO}</span></td>
		<td class="row2"><input class="post" type="text" name="yim" size="20" maxlength="255" value="{YIM}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_WEBSITE}</span></td>
		<td class="row2"><input class="post" type="text" name="website" size="35" maxlength="255" value="{WEBSITE}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_LOCATION}</span></td>
		<td class="row2"><input class="post" type="text" name="location" size="35" maxlength="100" value="{LOCATION}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_OCCUPATION}</span></td>
		<td class="row2"><input class="post" type="text" name="occupation" size="35" maxlength="100" value="{OCCUPATION}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_INTERESTS}</span></td>
		<td class="row2"><input class="post" type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="row1">
			<span class="gen">{L_SIGNATURE}</span><br />
			<span class="gensmall">{L_SIGNATURE_EXPLAIN}<br />
			<br />
			{HTML_STATUS}<br />
			{BBCODE_STATUS}<br />
			{SMILIES_STATUS}</span><br />
		</td>
		<td class="row2"><textarea class="post" name="signature" rows="6" cols="45">{SIGNATURE}</textarea></td>
	</tr>
	<!-- END switch_change_allowed -->
	<tr>
		<td class="cat" colspan="2"><span class="cattitle">&nbsp;</span></td>
	</tr>
	<tr>
		<th class="thSides" colspan="2">{L_PREFERENCES}</th>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_PUBLIC_VIEW_EMAIL}</span></td>
		<td class="row2">
			<input type="radio" name="viewemail" value="1"{VIEW_EMAIL_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="viewemail" value="0"{VIEW_EMAIL_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_HIDE_USER}</span></td>
		<td class="row2">
			<input type="radio" name="hideonline" value="1"{HIDE_USER_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="hideonline" value="0"{HIDE_USER_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
		<td class="row2">
			<input type="radio" name="notifyreply" value="1"{NOTIFY_REPLY_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="notifyreply" value="0"{NOTIFY_REPLY_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}</span></td>
		<td class="row2">
			<input type="radio" name="notifypm" value="1"{NOTIFY_PM_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="notifypm" value="0"{NOTIFY_PM_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_POPUP_ON_PRIVMSG}</span></td>
		<td class="row2">
			<input type="radio" name="popup_pm" value="1"{POPUP_PM_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="popup_pm" value="0"{POPUP_PM_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ALWAYS_ADD_SIGNATURE}</span></td>
		<td class="row2">
			<input type="radio" name="attachsig" value="1"{ALWAYS_ADD_SIGNATURE_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="attachsig" value="0"{ALWAYS_ADD_SIGNATURE_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_BBCODE}</span></td>
		<td class="row2">
			<input type="radio" name="allowbbcode" value="1"{ALWAYS_ALLOW_BBCODE_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="allowbbcode" value="0"{ALWAYS_ALLOW_BBCODE_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_HTML}</span></td>
		<td class="row2">
			<input type="radio" name="allowhtml" value="1"{ALWAYS_ALLOW_HTML_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="allowhtml" value="0"{ALWAYS_ALLOW_HTML_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}</span></td>
		<td class="row2">
			<input type="radio" name="allowsmilies" value="1"{ALWAYS_ALLOW_SMILIES_YES}{DISABLE_CHANGE} />
			<span class="gen">{L_YES}</span>&nbsp;&nbsp;
			<input type="radio" name="allowsmilies" value="0"{ALWAYS_ALLOW_SMILIES_NO}{DISABLE_CHANGE} />
			<span class="gen">{L_NO}</span>
		</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_BOARD_LANGUAGE}</span></td>
		<td class="row2">{LANGUAGE_SELECT}</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_BOARD_STYLE}</span></td>
		<td class="row2">{STYLE_SELECT}</td>
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_TIMEZONE}</span></td>
		<td class="row2">{TIMEZONE_SELECT}</td>
	</tr>
	<tr>
		<td class="row1">
			<span class="gen">{L_DATE_FORMAT}</span><br />
			<span class="gensmall">{L_DATE_FORMAT_EXPLAIN}</span><br />
		</td>
		<td class="row2"><input class="post" type="text" name="dateformat" maxlength="16" value="{DATE_FORMAT}"{DISABLE_CHANGE} /></td>
	</tr>
	<tr>
		<td class="cat" colspan="2"><span class="cattitle">&nbsp;</span></td>
	</tr>
	<tr>
		<th class="thSides" colspan="2" height="12" valign="middle">{L_AVATAR_PANEL}</th>
	</tr>
	<tr align="center"> 
		<td class="row1" colspan="2"> 
		<table width="70%" cellspacing="2" cellpadding="0" border="0">
			<tr>
				<td width="65%"><span class="gensmall">{L_AVATAR_EXPLAIN}</span></td>
				<td align="center">
					<span class="gensmall">{L_CURRENT_IMAGE}</span><br />
					{AVATAR}<br />
					<input type="checkbox" name="avatardel"{DISABLE_CHANGE} />
					&nbsp;<span class="gensmall">{L_DELETE_AVATAR}</span>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<!-- BEGIN avatar_local_upload -->
	<tr>
		<td class="row1"><span class="gen">{L_UPLOAD_AVATAR_FILE}</span></td>
		<td class="row2"> 
			<input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" />
			<input type="file" name="avatar" class="post" style="width: 200px" />
		</td>
	</tr>
	<!-- END avatar_local_upload -->
	<!-- BEGIN avatar_remote_upload -->
	<tr>
		<td class="row1"><span class="gen">{L_UPLOAD_AVATAR_URL}</span></td>
		<td class="row2"><input class="post" type="text" name="avatarurl" size="40" style="width: 200px"  /></td>
	</tr>
	<!-- END avatar_remote_upload -->
	<!-- BEGIN avatar_remote_link -->
	<tr>
		<td class="row1"><span class="gen">{L_LINK_REMOTE_AVATAR}</span></td>
		<td class="row2"><input class="post" type="text" name="avatarremoteurl" size="40" style="width: 200px" /></td>
	</tr>
	<!-- END avatar_remote_link -->
	<!-- BEGIN avatar_local_gallery -->
	<tr>
		<td class="row1"><span class="gen">{L_AVATAR_GALLERY}</span></td>
		<td class="row2"><input type="submit" name="avatargallery" value="{L_SHOW_GALLERY}" class="liteoption" /></td>
	</tr>
	<!-- END avatar_local_gallery -->
	<tr>
		<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS} 
			<!-- BEGIN switch_change_disallowed -->
			<input type="submit" name="cancel" value="{L_CANCEL}" class="mainoption" />
			<!-- END switch_change_disallowed -->
			<!-- BEGIN switch_change_allowed -->
			<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />
			&nbsp;&nbsp;
			<input type="reset" value="{L_RESET}" class="liteoption" />
			<!-- END switch_change_allowed -->
		</td>
	</tr>
</table>
</form>
User avatar
milkman
Registered User
Posts: 165
Joined: Mon Nov 29, 2004 1:55 am
Location: Loughborough, UK
Contact:

Re: [2.0.10] Moderator CP

Post by milkman »

You will need to edit the modcp/admin_users.php file to take into account the fact that some of the information is not being sent to the script. You might want to consider deleting blocks of code like the user activation (the first major if); the delete user code. After that the file should be much shorter. Have a look at what's going on in the rest of the file and try to eliminate the bits of code that you know you don't need any more (it's more secure this way too).

I don't have an unmodified copy installed anywhere at the moment so I can't give you any line numbers. If you still need some help after having a poke then I'll see what I can do.
Milkman [MilkHub]
th3l33t1
Registered User
Posts: 87
Joined: Wed Jan 31, 2007 12:10 pm

Re: [2.0.10] Moderator CP

Post by th3l33t1 »

i tryed, but cant mange to get it to work =\ im still learning ;)

,thanks th3l33t1
Mikey38215
Registered User
Posts: 1
Joined: Thu Feb 07, 2008 11:24 pm

Re: [2.0.10] Moderator CP

Post by Mikey38215 »

Code: Select all

Fatal error: Call to undefined function: has_perms() in /home/mike101/public_html/forum/login.php on line 196
I get this error when i try to login under a moderator. Any ideas?
grka
Registered User
Posts: 8
Joined: Wed Jan 30, 2008 9:13 pm

Re: [2.0.10] Moderator CP

Post by grka »

Hi

I want to use this mod on another style. I did install everything and I replaced all "subsilver" with the name of my style. But Nevertheless when I hope the Moderator panel everything is black and not readable. I just saw that someone here had the same problem and solved it. Could you please tell me what I must do?`

Thanks
Grit
User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: [2.0.10] Moderator CP

Post by A_O_C »

grka wrote:I want to use this mod on another style. I did install everything and I replaced all "subsilver" with the name of my style. But Nevertheless when I hope the Moderator panel everything is black and not readable. I just saw that someone here had the same problem and solved it. Could you please tell me what I must do?
what is your style?
User avatar
milkman
Registered User
Posts: 165
Joined: Mon Nov 29, 2004 1:55 am
Location: Loughborough, UK
Contact:

Re: [2.0.10] Moderator CP

Post by milkman »

Mikey38215 wrote:

Code: Select all

Fatal error: Call to undefined function: has_perms() in /home/mike101/public_html/forum/login.php on line 196
I get this error when i try to login under a moderator. Any ideas?
Looks like you've not included the modcp functions file. Can you look in login.php and see what files it includes?
Milkman [MilkHub]
User avatar
shaykana
Registered User
Posts: 108
Joined: Mon Sep 04, 2006 12:11 am
Location: Canada
Contact:

Re: [2.0.10] Moderator CP

Post by shaykana »

This is a tough one as my boards are slightly more complex than the usual. I have two boards that access the same database for users. Each board is a copy of the other in file structure, with the exception of the config file.

In one board, there are no modules in the ACP showing to select, therefore there is no MCP link at the bottom of the index.

In the second board (all files added to this board are copies of board one), modules do show in the ACP, and can be selected. However, the MCP link fails to show at the bottom of the index.

The MCP MOD files were edited on board one first, those same files were then copied to board two. I didn't edit a whole new set of files separately.

Help would be much appreciated. Thank you.
User avatar
milkman
Registered User
Posts: 165
Joined: Mon Nov 29, 2004 1:55 am
Location: Loughborough, UK
Contact:

Re: [2.0.10] Moderator CP

Post by milkman »

Shaykana, the only thing that comes to mind is did you run the SQL instruction for both boards? If not then you'll be missing an important config entry... remove all of your ModCP settings, run the SQL and re-add your ModCP settings. Hopefully this will fix it.

Code: Select all

INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('modcp_levels_used', '');
Milkman [MilkHub]
User avatar
shaykana
Registered User
Posts: 108
Joined: Mon Sep 04, 2006 12:11 am
Location: Canada
Contact:

Re: [2.0.10] Moderator CP

Post by shaykana »

Okay, so on board two, I originally forgot to run the SQL with the prefix of that board (different from phpbb_). So I ran them again with the other prefix, and now board two works fine.

Just in case I forgot to copy a file to the first board, I recopied all the files used on board two onto board one. I ran the SQL again on board one, but board one still won't show any modules.

I just can't figure out why.
User avatar
milkman
Registered User
Posts: 165
Joined: Mon Nov 29, 2004 1:55 am
Location: Loughborough, UK
Contact:

Re: [2.0.10] Moderator CP

Post by milkman »

Hmm, this is most strange. I'm glad you got it working in one board. I've never really tested it in a multi-board environment. Perhaps I have hardcoded a database entry somewhere, though I can't think where... :?:
Milkman [MilkHub]
Post Reply

Return to “[2.0.x] MOD Database Cleanup”