vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   How To Add Custom Profile Field Information To The Postbit (https://vborg.vbsupport.ru/showthread.php?t=118896)

Wired1 08-08-2006 12:35 AM

Just found it, eep, that sucks. Time to use the ol' noggin :) I wonder if there's a way to let a *.php or template access the custom profile fields phrases, or to somehow auto-copy specified ones to a custom global phrase. Got any ideas?

What about 3.5.x, how does it store the titles?

peterska2 08-08-2006 12:48 AM

3.5.x doesn't store them as phrases, it just stores the plain text if I recall correctly.

cookiepants 10-30-2006 08:49 PM

I've been looking all over for something like this. Thank you so much!

DarkDraco07 11-29-2006 04:04 AM

can anyone post a global code so post[fieldx] can be used on any page? thx T_T

muan 04-06-2008 12:42 PM

Great tutorial, thanks for that :)

TimberFloorAu 05-07-2008 10:55 AM

Was given this link, as per a request. On VB' .com

Sweet tut' thanks.

Only thing to add, may not work on postbit.

I found i had to edit postbit legacy too.

Ozzy

oz_girl 05-27-2008 01:58 AM

Great tutorial :)

stardotstar 05-29-2008 08:49 PM

I have a request about how vB handles language keys and image associations. I had a postbit and user profile mod for phpBB which managed this and I have only just started looking at modding vB.

The simple addition of a country flag illustrates this well.
flag_au.GIF --> Australia.GIF works but that requires renaming all the flags according to the names in the list whilst the original bundle already provides a translation key:
...
au=Australia
...
in phpBB this is done using a language key where anything called for as 'au' shows up as 'Australia'; then the menu list would be the list of keys
...
au
...
which is an easier job to edit than the actual file names - including the fact that there are spaces and capitalisation in the file names and also some exceptions to the two letter country code etc...

There must be some simple code that would allow the supplied list to be used in both the dropdown and the image file translation without a lot of editing?

Language key:
at=Austria
au=Australia
aw=Aruba
ax=Aaland

Drop down menu is then set up as

at
au
aw
ax

but displays to users as

Austria
Australia
Aruba
Aaland

and when one is selected by the language key in the profile it translates to:

flag_at.GIF
flag_au.GIF
flag_aw.GIF
flag_ax.GIF

or

flag_$post[fieldX].GIF

I hope this is a reasonable place to ask this question.

bornoffire 06-13-2008 04:38 AM

I wanted to use a title for the displayed text option but dont know where i place the code, please help!

jammer2552 09-10-2008 06:17 PM

[s]I would like to use the custom profile field in other places than the postbit, for use as a Display Name.
Just realized $post[field5] wouldn't work when I went to the "Who's Online" template...
$userinfo[field5] and $vbphrase[field5] didn't work either.

SOMEONE?! PLEASE?![/s]

$bbuserinfo[field5] did the trick. :)


All times are GMT. The time now is 01:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01204 seconds
  • Memory Usage 1,726KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (3)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