vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Preferred Name (Display Name) (https://vborg.vbsupport.ru/showthread.php?t=165253)

shadowevil 12-16-2007 04:21 AM

Nice mod .. But i want "display name" showing all is: register, login, who's online, profile ..v..v.. so, i want this mod show replace all username .... i waiting version 2.0 :)

shadowevil install

Kirk Y 12-16-2007 05:50 AM

You might want to consider changing the replacements to:
Code:

<if condition="$bbuserinfo['fieldX']">$bbuserinfo[fieldX]<else />$bbuserinfo[username]</if>
Otherwise people who haven't set a "Preferred Name" won't have a Username. :p

Hornstar 12-18-2007 11:16 AM

I wish vbulletin had the one implemented like on IPB boards default

MiahBeSmokin420 12-18-2007 03:08 PM

Quote:

Originally Posted by Kirk Y (Post 1401963)
You might want to consider changing the replacements to:
Code:

<if condition="$bbuserinfo['fieldX']">$bbuserinfo[fieldX]<else />$bbuserinfo[username]</if>
Otherwise people who haven't set a "Preferred Name" won't have a Username. :p

LMAO Good thinking

PinkDaisy 12-20-2007 12:50 PM

Okay.. I did this and then decided agaisnt it. Took all my templates back and now everyones posts is showing up in their username, even if its posted by someone else, it shows their username in the threads. Any help?

PinkDaisy 12-20-2007 02:14 PM

Okay.. now all my posts aren't showing up and it's just all messed up. Gosh.. what did I do? :(

DJ RRebel 12-23-2007 05:06 AM

Sorry Pink .. Can't really understand what your problem is ... everything should be fine if you reverted your templates back to their defaults.

RDx321 01-15-2008 11:49 PM

How can I add this to the main page for the Last Post By .

Illustrious 02-12-2008 04:21 AM

Yeah, I was just going to post that you may want to make it conditional:

Code:

<if condition="$post[field7]">$post[fieldX]<else />$post[musername]</if>
Also, by doing this, you're stripping the name of all of its markup. It may not be the best idea.

Edit: You can retain the usergroup's html markup if you edit it the functions.php file, but is there any other way to do it without file edits?

landspeed 02-24-2008 02:05 AM

Quote:

Originally Posted by Illustrious (Post 1441212)
Yeah, I was just going to post that you may want to make it conditional:

Code:

<if condition="$post[field7]">$post[fieldX]<else />$post[musername]</if>
Also, by doing this, you're stripping the name of all of its markup. It may not be the best idea.

Edit: You can retain the usergroup's html markup if you edit it the functions.php file, but is there any other way to do it without file edits?


I don't see any way to do it without code modification. The board isn't developed to handle the thought of a user having a different editable bit that is displayed aside from login. It would be nice.

I'll look at hacking the function code.


All times are GMT. The time now is 02:26 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.01076 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_printable
  • (2)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