Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-10-2002 Last Update: Never Installs: 13
 
No support by the author.

This is a small hack that I wrote several months ago. Originally it was only a template mod, then turned into a hack but remained in the template mods forum at vbulletin.com, so it never made it over here.

Basically, all it does is show both a custom title, selected by the user, and the user's standard title (Junior Member, Member, Moderator, etc.) in posts. It uses a custom profile field that you create through the admin cp to store the custom title.

As I said, it's an older hack by me, and was originally tested on 2.0.3. It still works for me on 2.2.2, though.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 02-25-2002, 03:22 AM
importmix's Avatar
importmix importmix is offline
 
Join Date: Dec 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I just want my moderators to be able to do this. Not my regular users.
Reply With Quote
  #43  
Old 03-07-2002, 05:10 AM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #44  
Old 03-07-2002, 05:40 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #45  
Old 03-07-2002, 05:51 AM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #46  
Old 03-07-2002, 06:07 AM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooh ooh, just one more tiny thing: Is it possible to put "" around all custom titles automatically?
Reply With Quote
  #47  
Old 03-07-2002, 06:21 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, in the same line, change $post[field5] to \"$post[field5]\"
Reply With Quote
  #48  
Old 03-07-2002, 06:29 AM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you are the man.
Reply With Quote
  #49  
Old 06-04-2002, 08:41 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #50  
Old 06-04-2002, 08:52 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 06-04-2002, 11:24 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Custom titles are still there even after updating the counters.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04396 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete