vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   disable names (https://vborg.vbsupport.ru/showthread.php?t=254491)

jacobskinner811 12-01-2010 01:31 AM

disable names
 
does anyone know how to disable the block making users all have a different name...i want people to be able to use there real names like facebook. i dont know if removing the block would mess anything up or not tho....if anyone has heard of a way to do this or knows someone who might be able to please let me know

DataHero 12-01-2010 11:02 AM

Waht you could do is to replace the $post[musername] in postbit for example, and use a custom profile field there.

jacobskinner811 12-01-2010 10:06 PM

I have been hearing people talk about the profile field...would that change everything that normally has the user names...for example the links to peoples profiles?... or would it just change the name above the profile pic?

DataHero 12-02-2010 07:55 AM

Only doing so in postbit will not change the rest, no. This is just right out of the top of my head, but what you could do is to make a plug-in at global_start (correct me if I'm wrong, anybody?) and use a str_replace() as to replace the variables. For instance, make sure to make your own variable, ie.

PHP Code:

$var1 /*var of modification(s) or your own*/

And use that as to replace the current one, ie:

PHP Code:

$find $post[musername];
$replace $yourvar;
$subj 'Array of strings or so here';

str_replace($find$replace$subj); 

Could be wrong as to the approach of method, but there should be a way to globally replace variables instead of ahving to edit each template.


All times are GMT. The time now is 01:54 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.01243 seconds
  • Memory Usage 1,715KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete