vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display custom titles AND standard titles in posts (https://vborg.vbsupport.ru/showthread.php?t=34968)

importmix 02-25-2002 03:22 AM

Yeah, I just want my moderators to be able to do this. Not my regular users.

Mr. X 03-07-2002 05:10 AM

Excellent hack, I installed it. I really needed something like this, but I have a question: How can I make it so that all custom titles are in a different color? Im playing around with some code:

PHP Code:

<normalfont><b>$post[username]</b></normalfont><br>
<
smallfont>$extratitle</smallfont>
<
smallfont>$post[usertitle]</smallfont><br

note -I put the custom titles on the bottom.

JJR512 03-07-2002 05:40 AM

To change the color of only the custom title, do this. In the bit of code you add to functions.php, there is this line:
PHP Code:

$extratitle="$post[field5]<br>"

Change it to this:
PHP Code:

$extratitle="<font color=\"#FFFFFF\">$post[field5]</font><br>"

Of course, replace #FFFFFF with whatever color you want, using either the HTML #xxxxxx color codes, or an accepted named color.

Mr. X 03-07-2002 05:51 AM

awesome. Worked like a charm. I was applying color code to the template and it changed all the little text in the user pane (which looked sorta kinda almost maybe cool). Thanks again!

Mr. X 03-07-2002 06:07 AM

ooh ooh, just one more tiny thing: Is it possible to put "" around all custom titles automatically?

JJR512 03-07-2002 06:21 AM

Yeah, in the same line, change $post[field5] to \"$post[field5]\"

Mr. X 03-07-2002 06:29 AM

you are the man. :)

Chris M 06-04-2002 08:41 PM

How would I add a THIRD Title set?

Would I add :

PHP Code:

        if ($post[field9]) {
            
$extratitle="$post[field9]<br>";
        } else {
            
$extratitle="";
        } 

After

PHP Code:

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


Also...When you have these added, can you have them so the user cannot edit them?

Satan

Chris M 06-04-2002 08:52 PM

I figured it out...

You add :

PHP Code:

        if ($post[field9]) {
            
$extratitlea="$post[field9]<br>";
        } else {
            
$extratitlea="";
        } 

After :

PHP Code:

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


Then you add :

Code:

<smallfont>$extratitlea</smallfont>
to the Postbit template...

Satan

Smoothie 06-04-2002 11:24 PM

Custom titles are still there even after updating the counters.

Chris M 06-05-2002 12:43 AM

Huh?

Satan

Smoothie 06-05-2002 12:51 AM

Custom titles set by the members. It should display "Member" and then the custom title under that, but it's not. It's only displaying the custom title set by the user. I went to my user cp and edited my profile, and added a custome title, now it displays correctly under my username, but no one elses.

Warlord 06-05-2002 02:36 AM

*Hits the installed button*

:)

Smoothie 06-05-2002 08:21 AM

Fixed the problem. For anyone that installed this hack, and had previosly allowed custom titles, and you still had members without the default titles under their username, even after updating the counters, and turning off "allow custom titles" in the admin cp, run this query:

Resetting Custom user titles to default:

UPDATE user SET customtitle = 0 WHERE usergroupid <> 6

Then run the user title update counters. Note this will reset everyone's title except admins.

Chris M 06-05-2002 12:40 PM

Cool...

I finally understand what you mean!

Sweet...

Satan

Mr. X 09-06-2002 01:37 AM

Im having a bit of a prob. A user of mine has a custom title, but its not showing up. Everyone else's though is just fine, except for him. Im wondering if the "UPDATE user SET customtitle = 0 WHERE usergroupid <> 6" command will fix this? I did have custom titles enabled on my forum before this hack, so I disabled that, updated counters and it worked, but for some reason now this 1 user doesnt have his title displayed. 2.2.6 here btw.

Mr. X 09-06-2002 04:14 AM

Hmm, now it seems to effect a couple of users now. For example, 1 user has no title specified, so when I added one, it didnt display. However, I was able to modify the title of another user and it displayed fine.

Mr. X 09-07-2002 09:16 AM

Anyone, Anyone? Bueller?

Mr. X 09-16-2002 03:52 AM

....


All times are GMT. The time now is 01:16 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.01197 seconds
  • Memory Usage 1,768KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete