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.


All times are GMT. The time now is 09:52 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.01251 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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