Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2002, 05:24 PM
PaulBearer2k PaulBearer2k is offline
 
Join Date: Jul 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Finally, a good idea from me

Okay, I trust you guys are familiar with the supermod cp. What I am suggesting is that you expand that cp, as well as make some options useable for the moderators.

Super Moderator Controls
-------------------------------------

Now can you make it so that super moderators have the options to create custom user titles for moderators and normal users if he chooses too. This use to be an option only available to the admins, but I really think it'd be useful since I have it so all mods can have custom user titles.

For the thread control options under the supermod panel. Can you make it so now in addition that supermods have the ability to see who voted in polls, strip polls, and Unsubscribe to threads.

In addition for supermods this is something I'm sure a lot of you will agree with, make it so that super mods can Add/Modify Smilies.

Be able to edit signatures

Moderator Options
------------------------------------
Now when mods go to the cp can you make it so that they are actually able to edit the following things.

The own user title. No one elses but theres.

Be able to edit Moderation Lists.

And be to edit signatures.

See who voted in polls and strip polls.

Thats all.
Reply With Quote
  #2  
Old 07-18-2002, 09:56 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have two possibilities:
make another cp for supermods, cookied nearly equal as the ACP and copy the files and parts of index.php into it if you need them for em

or you can copy&paste needed code from your ACP-files into your mod directory and add some security checks to it.

As an half advertisment:
You should download my hack
"Mods can edit Usernames, Signatur...."
so you can add usertitle functions very easy to it (read inside the thread)

at least you got some work copying the right parts, but all in all it shouldn't be to hard to do
Reply With Quote
  #3  
Old 07-19-2002, 02:31 PM
PaulBearer2k PaulBearer2k is offline
 
Join Date: Jul 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, about an hour after I posted this I saw your hack. I do have a problem, maybe because I'm an idiot but my moderators can't do anything in the mod cp besides access to it. Yet supermods can. I would try what you told me above, but not without help. Maybe someone should create a supermod cp, and a mod cp.
Reply With Quote
  #4  
Old 07-19-2002, 10:41 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you must give your normal mods the right to do more in there mod-cp like canview user profiles and so on

you can give those rights in your Forums/Moderators section of your Admin CP

i have already created a supermod cp for vb225 and it wasn't very hard, but it is just what my supermods can do (templatemods and this style things )

it's a problem because often you need to change on more places in one file, also the supermod global.php is changed, and it wouldn't be easy to comment all those changes, but i think it's easier to try yourself, if you need help at some section you can ask me or someone else here you'll surely get help
Reply With Quote
  #5  
Old 07-20-2002, 04:51 PM
PaulBearer2k PaulBearer2k is offline
 
Join Date: Jul 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright after reviewing what you said, I honestly probably cannot build this hack, it's out of my league. But here is a suggestion to you hackers, 2 seperate cp's.

Super Moderator's Control Panel
------------------------------
*Add/Modify Announcements
*Who Voted/Strip Poll/Unsubscrive Thread
*Find Users, Edit Users, Edit Signatures, Edit Custom Titles
*Add/Edit Avatars
*Add/Edit Smilies
*Add/Edit Posting Icons
*Ban/Suspend Users
*Ban Emails
*Search for multiple IP's

And as for the moderator's cp, can you make it so that on the admin's cp that they can individually choose which moderator's get access or select Global for all mods getting access?

Moderator's Control Panel
----------------------------
*Search for users (But Can't Edit)
*Edit Signatures
*Who Voted, Strip Poll
*Add/Edit Smilies
*Suspend users
*Search for multiple IP's
*Edit Custom Titles

I am really hoping someone here can design this hack, I really do need it created. Or if you can somehow give me detailed instructions, I can give it a crack.
Reply With Quote
  #6  
Old 07-20-2002, 05:08 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have not much time today now, but i can give you the first and i think most important step for the supermodcp:

create dir supermod and copy the global.php file from your admincp in it, then do following changes (i have done this with vb225 i hope most parts are identical )

find:
PHP Code:
//load config
require("./config.php");

// init db **********************
// load db class
$dbservertype strtolower($dbservertype);
$dbclassname="./db_$dbservertype.php";
require(
$dbclassname);

$DB_site=new DB_Sql_vb;

$DB_site->appname="vBulletin Control Panel";
$DB_site->appshortname="vBulletin (cp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword
replace with:
PHP Code:
//load config
require("./../admin/config.php");

// init db **********************
// load db class
$dbclassname="./../admin/db_$dbservertype.php";
require(
$dbclassname);

$DB_site=new DB_Sql_vb;

$DB_site->appname="vBulletin SuperMod Control Panel";
$DB_site->appshortname="vBulletin (mcp)";
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword
find
PHP Code:
// ###################### Start functions #######################
require("./functions.php");
require(
"./adminfunctions.php");


// ###################### Start sessions #######################
/*if (!isset($bbadminon) and !$bbadminon) {
  $sessionhash="";
  $bbuserinfo[userid]="";
  $bbuserinfo[password]="";
}*/

require("./sessions.php"); 
and replace with:
PHP Code:
// ###################### Start functions #######################
require ("./../admin/functions.php");
require (
"./../admin/adminfunctions.php");


// ###################### Start sessions #######################
/*if (!isset($bbadminon) and !$bbadminon) {
  $sessionhash="";
  $bbuserinfo[userid]="";
  $bbuserinfo[password]="";
}*/

require("./../admin/sessions.php"); 
find
PHP Code:
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND user.userid='$bbuserinfo[userid]'");
if (
$getperms[cancontrolpanel]!=1) { 
and replace with:
PHP Code:
$getperms=$DB_site->query_first("SELECT ismoderator FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND user.userid='$bbuserinfo[userid]'");
if (
$getperms[ismoderator]!=1) { 
find
PHP Code:
  cpheader("<title>Forums admin</title>");
?><br><br><br>
<table cellpadding="1" cellspacing="0" border="0" class="tblborder" align="center" width="450"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<?php maketableheader("Please Log in:","login",0,1); ?>
<tr class="firstalt" id="submitrow"><td align="center" nowrap><p>You are either not a valid administrator or have not logged in.</p>
<form action="../admin/index.php" method="post" id="submitrow">
and replace with
PHP Code:
  cpheader("<title>Forums Supermoderator</title>");
?><br><br><br>
<table cellpadding="1" cellspacing="0" border="0" class="tblborder" align="center" width="450"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<?php maketableheader("Please Log in:","login",0,1); ?>
<tr class="firstalt" id="submitrow"><td align="center" nowrap><p>You are either not a valid supermoderator or have not logged in.</p>
<form action="../supermod/index.php" method="post" id="submitrow">
that's all needed.

now you can copy files from your admin-cp to your supermod-cp
to which you want the should have access

be carefull and don't copie files which allow to change user/groups so they cannot kill your account

copy the index.php and make the right links in it


ok so much for now, no time anymore

hope you can use it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04088 seconds
  • Memory Usage 2,238KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete