vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hide first x characters of a profile field with asterisks (https://vborg.vbsupport.ru/showthread.php?t=97065)

Mith 09-28-2005 01:21 PM

Hide first x characters of a profile field with asterisks
 
Hi,

Was wondering if anyone knew how this could be done, or can help me achieve this.

Basically, running a clan, I need to be able to display the last 8 characters of a users GUID in their profile, for anyone to read.

As clan leader, I need to see all 32 charachters of the field,
But Joe Public needs only see the last 8.

What would be perfect if I could specify the number of *'s to show in the field.... (so i may only want the first 2 characters of the public user profile field to be masked)

So, basically as Admin i see:
78309189837489374893274893749832

The member sees:
78309189837489374893274893749832

But everone else sees:
************************93749832

You help appreciated.

Mith

This application could be used for all sorts more.. for CD-Key's, serial numbers, Credit Card numbers, etc. So could be a very handy modification for privacy concerns. Adding encryption in the database, may also be needed for some info, and some sort of warning message, stating that the information may be visible to admin, or encrypted.... just ideas of how it could be expanded upon.

Mith 11-08-2005 11:53 PM

I've been hunting high and low for this for an age now....

Can anyone help, is there any regex guru's that can help me?

To recap.. my users put in detail in a user profile field as normal, but on their profile page it shows only the last x characters with the first x asterisked (*) out.

Thanks in advance


All times are GMT. The time now is 09:17 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.02443 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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