View Single Post
  #1767  
Old 10-30-2002, 10:43 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

STEP 2;
Open member.php file (located in /forum folder) and perform the code change listed below.
FIND:
$avatars=$DB_site->query("SELECT *
REPLACE WITH:
if (in_array($bbuserinfo['usergroupid'], array(6, $articlegroup))) {
$avatars=$DB_site->query("SELECT *
FIND:
$pagenav = getpagenav($totalavatars,"member.php?s=$session[sessionhash]&action=editavatar&perpage=$perpage");
REPLACE WITH:
$pagenav = getpagenav($totalavatars,"member.php?s=$session[sessionhash]&action=editavatar&perpage=$perpage");
}

STEP 5;
Open modifyavatar template (located in User Option Templates section) and perform the code change listed below.
FIND:
<tr>
<td bgcolor="#13486D" align="center" colspan="2">
<normalfont><b>Choose your avatar from the available list:</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#1C5780" colspan="2" align="center">
<table bgcolor="#0A293E" border="0" cellspacing="1" cellpadding="10">
$avatarlist
</table>
<normalfont>Displaying Avatars $limitlower to $limitupper of $totalavatars<br>$pagenav</normalfont>
</td>
</tr>
REPLACE WITH:
<tr>
<td bgcolor="#1C5780" colspan="2" align="center">
<table bgcolor="#0A293E" border="0" cellspacing="1" cellpadding="10">
$avatarlist
<normalfont>$pagenav</normalfont></table>
</td>
</tr>

STEP 8;
Still in your vBulletin Admin Control Panel, set your journalist avatars URL to your full website URL, like that:
Avatars > Modify > [edit]

and change the Path to image to the full URL, instead of your current value, images.
Example: http://www.yoursite.com/forum/images...journalist.gif

The default avatars will be from now your staff images. I recommend you to use pictures. They will work the same way like normal avatars, with the exception that they will be viewed only by your staff. The rest of members will be able to upload their own custom avatars, as usual.

If you don't want to allow avatars uploads, simply disable the Upload Avatar option, in Avatars section of
your Admin Control Panel.

JOURNALISTS GROUP
Enter here the usergroup ID value you generated in step 9. vBulletin uses 2 types of avatar groups, default and custom
(user uploaded). 99.99% of the cases, the default group is not used.
vbHome (lite) will use this group to store your journalists pictures or avatars.

The way are set the code changes, it will enable this default group of avatars to be viewed only by administrators and members who belong onto Journalists group. So if you have avatars enabled on your site, a normal user who wants to add his(her) avatar will not see the images.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01027 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete