vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Professional Names (https://vborg.vbsupport.ru/showthread.php?t=107662)

TrueDeath 02-09-2006 10:00 PM

Professional Names
 
Professional Names


About this hack:
If your forum is aimed to look stylish or professional yet your staff or users insit to use their nicknames instead of their proper names then this hack is for you.

This is a simple hack which shows a users real name under their title in a professional style.

Features:
Show users/staff real names under posts.

Installation information on hack:
Files edited: 0
Templates edited: 2 (both postbit)
Files to upload: 0
Cronjobs to add: 0
Time to install: 2 minutes max

Instructions:
1) In admincp Add a New User Profile field
------------------------------------------
Type: Single-Line Text Box
Title: Real Name
Description: Please enter your real name to be displayed on the forum or leave blank.
Max length: 30
Field Required: No
Field Editable by user: Yes
*If you want it staff only set Editable by user no so it can only be changed in AdminCP*
Private Field: No
Display Page: Edit Profile
------------------------------------------
Now the Profile Field is made you need to remeber the field number, (i.e field5 = 5)

2) In template named: postbit
------------------------------------------
Find:
------------------------------------------
Quote:

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
------------------------------------------
Below Add:
------------------------------------------
Quote:

<if condition="$post[fieldX] != ''"><div class="smallfont"><i>$post[fieldX]</i></div></if>
------------------------------------------
Be sure to change the two X to your field number!

Click Save

3) In template named: postbit_legacy
------------------------------------------
Find:
------------------------------------------
Quote:

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
------------------------------------------
Below Add:
------------------------------------------
Quote:

<if condition="$post[fieldX] != ''"><div class="smallfont"><i>$post[fieldX]</i></div></if>
------------------------------------------
Be sure to change the two X to your field number!

Click Save

4) Press Install on vBulletin.org

MAKE SURE YOU CLICK INSTALL!

TrueDeath 02-10-2006 07:44 PM

Question: What if i already had my members sign up entering their first and last name in two different fields?
Answer: Add this instead:
Quote:

<if condition="$post[fieldX] != ''"><div class="smallfont"><i>$post[fieldX]$post[fieldY]</i></div></if>
Change the X to the field with the first name, and Y to the field with the second name.

Nutz 02-10-2006 09:47 PM

Great hack, good work :)

Thanks,
Mat

tehste 02-10-2006 10:17 PM

It looks strange to have a 'professional' name underneath a screen name like TrueDeath.

Tony G 02-10-2006 11:25 PM

Thanks for sharing your mod, could you place your instructions in a .txt file and attach it please? Makes it easier for members to re-install your mod.

BCC 02-11-2006 12:09 AM

This Looks So Much The Same As:
https://vborg.vbsupport.ru/showthread.php?t=93783

dirtycrow 02-11-2006 02:16 AM

what is i already had my members sign up entering their first and last name in two different fields?

hiiped 02-11-2006 03:48 AM

Quote:

Originally Posted by BCC



nonsense

20 users can be "TITLED" DEVELOPER, or HACKER, or CHIEFS

but with this its a million to 1 shot if theres two Harry J Porter ( Professional Names ) is on the same forum

TrueDeath 02-11-2006 01:41 PM

Quote:

Originally Posted by Tony G
Thanks for sharing your mod, could you place your instructions in a .txt file and attach it please? Makes it easier for members to re-install your mod.

Are you unable to see the ReadMe.txt? :ermm:

TrueDeath 02-11-2006 01:45 PM

Quote:

Originally Posted by dirtycrow
what is i already had my members sign up entering their first and last name in two different fields?

Then add this instead:

Quote:

<if condition="$post[fieldX] != ''"><div class="smallfont"><i>$post[fieldX]$post[fieldY]</i></div></if>
Change the X to the field with the first name, and Y to the field with the second name.


All times are GMT. The time now is 09:58 PM.

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.01224 seconds
  • Memory Usage 1,739KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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