vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Using ALT characters in profile fields? (https://vborg.vbsupport.ru/showthread.php?t=309258)

Checkmate MK8 03-07-2014 12:51 AM

Using ALT characters in profile fields?
 
In vB4.2.2, how can I set one of the particular profile fields to accept ALT characters? Currently, when a user enters an ALT character, it defaults to the numerical reference to the character.

In other words, what should be showing as ★ is showing as "&9733" in the profile field upon clicking "save".

Thanks,
CheckM8

ForceHSS 03-07-2014 01:02 AM

Is this a default field or custom. Some screenshots would help explain

Checkmate MK8 03-07-2014 01:45 AM

It is the Clan Tag profile field which is custom.

ForceHSS 03-07-2014 01:52 AM

Without more info we can't help.
The code being used
A place where you got the code from ie plugin, template change etc etc.
screenshots and link to site with temp login

Checkmate MK8 03-07-2014 02:02 AM

I added the Clan Tag profile via this mod.

https://vborg.vbsupport.ru/showthread.php?t=273551

tbworld 03-07-2014 02:09 AM

@ForceHSS is right, you need to make it a bit easier for us to help you. Always error on the side of too much information. If you want us to spend 10-20 minutes helping you, then you need to spend more then 30 seconds typing out a one-liner. Anyway, I think you get the point. Try again and we will try to help. :)

Checkmate MK8 03-07-2014 02:13 AM

What else can I tell you that would lead you in the right direction, LOL? All I did was add a single custom profile field per the simple instructions in the link above. It's not rocket science.

tbworld 03-07-2014 02:25 AM

It is more of a science then you understand. Custom profile fields are processed differently, depending where they are being used. Sorry, I could not be of assistance.

Checkmate MK8 03-07-2014 02:32 AM

I did the following:


Go to AdminCP --> User Profile Fields --> Add New User Profile Field

for profile field type select Single-Line Text Box

Title= Clan Tag
Profile Field Category= (Uncategorized)
Max length of allowed user input= 4
Field Required= Yes, at registration and profile updating
Field Editable by User= Yes
Private Field= No
Field Searchable on Members List= Yes
Show on Members List= Yes

Now Go To postbit_legacy And Find:
HTML Code:
Code:

<vb:else />


{vb:raw post.musername}


right above it add: (Replace Red XX with the profile feild number)
Code:
Code:

<vb:if condition="$post['fieldXX']">
<font color="red" size="4"><B>{vb:rawphrase fieldXX}[{vb:raw post.fieldXX}]</B></font></vb:if>


ozzy47 03-07-2014 02:40 AM

I believe the HTML, is already parsed, so just use the star character (copy & past it), not the alt code.


All times are GMT. The time now is 03:34 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.01076 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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