Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Building Forums With vBulletin (2006).pdf
Скачиваний:
40
Добавлен:
17.08.2013
Размер:
6.3 Mб
Скачать

Chapter 5

Finding the user ID of a member is easy. The AdminCP home page has a feature, called the Quick User Finder, that allows you to look up users' IDs.

Type the user name in here, and click Exact Match. This takes you to the User Manager page, and at the top of this screen, you will find the user ID for that user.

Finally, save the file and upload it back to the server (making sure it overwrites the old file). The change is instant, and you can now access the Administrator Permissions page.

Other Changes to the config.php File

There are several other changes that you can make to the includes/config.php file in addition to creating a super administrator. We will look at four of these changes.

123

Administering Your Forum

Admin Log Viewing Permission

The Admin log keeps track of all the changes and edits that the administrators have carried out. To view this, click on Statistics & Logs in the left-hand menu, and then click on Control Panel Log.

This gives you access to the Admin log.

By default, only the first administrator account has access to this. (This is the account, with user ID 1, that was created during the setup of the vBulletin board.) To give this power to more administrators (or take it away), you should make a change to the section of code in the

includes/config.php file labeled ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******.

124

Chapter 5

Make the change to this line of code:

$canviewadminlog = '1';

Remember to separate each user ID with a comma.

Save the file, and upload it to make the changes active.

Admin Log Pruning Permission

As well as controlling who can view the Admin log, you can control who can prune it (in other words, delete stuff from it).

Add the user IDs of all Administrators you want to have this power here:

$canpruneadminlog = '1';

User ID 1 is there by default.

Query Running Permission

This is a powerful permission that you should grant with care. Giving someone the power to run queries allows them to interact with the actual database that holds the vBulletin data. We've not looked at this yet and won't until Chapter 9. For now, let's just look at how to give this power to or take it away from administrators.

The line of code you need to edit is this:

$canrunqueries = '';

125