Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
  #1  
Old 01-09-2016, 05:49 PM
SteveU SteveU is offline
 
Join Date: Jan 2015
Location: UK
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Using a mixture of real names and user names in forum

I'm setting up a vB5 board, and for various reasons need to use a mixture of the member's real name and user name.

I have created a Custom Profile field and called it Real Name. Now if I wanted to use this throughout the forum, previous advice was to replace username and musername throughout the templates with this Real Name field.

However, this is not my objective. Users still need to log in with their username and password, but the real name, not the username needs to appear in the post bit, and also in things like the private message form.

I have used the search and have been able to list all the forms/templates that username or musername appear in, however, I don't know how to preview their function to know what I need to have appear in them, or if I need to use username, musername or Real Name for the desired result.

Is there any way to preview the templates I'm editing? Please can someone point tin the right direction if there are any tutorials or documentation on doing this?

Thanks in advance.
Reply With Quote
  #2  
Old 01-10-2016, 12:20 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no preview. Make your template change with the page containing that template loaded in another tab. Hit ctrl- F5 to refresh the page to see your changes. If you screw up the templates, you can revert them in the style manager page in the admincp. You should also turn off any webpage caching on your website while you are making changes.
Reply With Quote
  #3  
Old 01-11-2016, 06:50 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Test the changes on a test installation first, not your live board.
Reply With Quote
  #4  
Old 01-11-2016, 10:55 AM
SteveU SteveU is offline
 
Join Date: Jan 2015
Location: UK
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Cellarius,

The board is not yet live. Thanks for the warning.

Hi Replicant, thanks for the advice, I'm not that familiar with vB5, so how can I track down the page that the template exists in? For example, in Admin Templates, I have a template called admin_subscriberlist but can't easily find the pages/pages that use it. Please could you point me in the right direction, and thanks.
Reply With Quote
  #5  
Old 01-11-2016, 12:23 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have that template in my system. I'm on 5.1.9. The only thing I have that is close is in the Group Admin Templates and it's sgadmin_subscriberlist. It would be good to know but templates aren't like modules. You can call a template from any other template with {vb:template and there is no way the software would know about it. You can see the templates used in a page by viewing the page source and keep a log of it so you have the info handy.
Reply With Quote
Благодарность от:
MarkFL
  #6  
Old 01-14-2016, 07:00 PM
SteveU SteveU is offline
 
Join Date: Jan 2015
Location: UK
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much. I'll start at page level and work back. I'll just need to start a spreadsheet to keep records.

Thanks very much for your help.
Reply With Quote
Благодарность от:
MarkFL
Reply

Thread Tools
Display Modes

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 11:19 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.07151 seconds
  • Memory Usage 2,201KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete