vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   simple request (user titles) (https://vborg.vbsupport.ru/showthread.php?t=45173)

Esdee 10-29-2002 09:36 PM

simple request (user titles)
 
Wel, on mine, like on most forums, mods want to feel special and thus have their rank in a special color they'd like.
Normally, they have to rquest this in the qtaff forum, but that's why I'm asking.

Couldn't there just be a hack which gives mods the possibility to use html in their title and that <br>Moderator is automatically added to it ?

Or even beter would be a seporate field for them to choose the color.

or, if the color changing option would also be avaiable for veteran members

Thankies ^_^

Erwin 10-29-2002 09:45 PM

You can do this in many ways.

Make a custom profile field, and make it only modifiable by staff, and not visible to members. Get people to enter their color "blue" or hex code "#000000" in it.

Then in your postbit, replace $post[usertitle] with:

<font color=$post[fieldx]>$post[usertitle]</font>

(x being the custom user profile field id). This way your staff can choose their color.

If you make custom titles enabled, your mods can directly just enter <font color=xxx>Moderator</font> in the custom user title field in their Profile. But then members can do that too then.

There are also hacks available that can do this - do a search for them.

Chris M 10-29-2002 09:48 PM

Create 2 new profile fields...

Call the first one : Special Title - Set it to editable by the user to no
Call the second one : Glow colour - Set it to editable by the user to no

Open admin/functions.php
Find:
PHP Code:

        if ($post[aim]!="") {
            eval(
"\$post[aimicon] = \"".gettemplate("aim")."\";");
        } else {
            
$post[aim]="";
        } 

add after:
PHP Code:

if ($post[fieldx]) {
  if (
$post[fieldy]) {
    
$extratitle="<div style=\"width:100%; filter:glow(color=$post[fieldy], strength=3)\">$post[fieldx]</div>";
  } else {
    
$extratitle="$post[fieldx]<br>";
  }
} else {
  
$extratitle="";


Change x & y to the field ids of the profile fields...

Then add $extratitle to your postbit template...

Then you want to install a hack by Xenon that allows Mods to edit profiles, and you want them to be able to edit those 2 fields:)

Satan


All times are GMT. The time now is 09:18 AM.

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.01039 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete