vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Profile setting to control this... (https://vborg.vbsupport.ru/showthread.php?t=44896)

Tim Wheatley 10-23-2002 01:06 PM

Profile setting to control this...
 
1 Attachment(s)
Hi,

I have three user fields which are numbers.

I have it so that if a user has entered them, they show in the postbit, if they don't enter them, nothing shows - same thing with all three. I've controlled this in functions.php.

The three fields appear inside a new html table in the postbit.

What I want help with is:

I want a user option that they can specify whether they do or don't want to see other people's numbers.

If they select yes, they see the numbers and the table around them. If they select no, they don't see the table or anything inside it.

Here is what I currently have in functions.php below
PHP Code:

$post[homepage]="";
        } 

...

PHP Code:

// GPL Rank
if ($post[field18]!="" and $post[field18]!="0") {
    
$post[field18]="GPL Rank: $post[field18]<br>";
        } else {
            
$post[field18]="";
        }

// N2002 Rank
if ($post[field19]!="" and $post[field19]!="0") {
    
$post[field19]="N2002 Rank: $post[field19]<br>";
        } else {
            
$post[field19]="" ;
        }

// show edit rank info to member only
if ($bbuserinfo['userid']<"1") {
    
$editrankinfo "";
} else {
        
$editrankinfo "| <a style=\"COLOR: #000000; FONT-FAMILY: Verdana,Arial;\" href=\"member.php?s=$session[sessionhash]&action=editprofile\">edit</a>";
}

// RL Rank
if ($post[field21]!="" and $post[field21]!="0") {
    
$post[field21]="RL Rank: $post[field21]<br>";
        } else {
            
$post[field21]="";
        } 

Here is what I have in my test postbit:
Code:

<table width="100%"><tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #C0C0C0;"><smallfont>(<a href="http://gplrank.schuerkamp.de/" target="_blank" style="COLOR: #000000; FONT-FAMILY: Verdana,Arial;">driver ranks</a> $editrankinfo)<br>$post[field18] $post[field19] $post[field21]</smallfont></td></tr></table>
Uploaded is how it looks in the postbit.

Tim Wheatley 10-24-2002 12:22 PM

The B word. :)


All times are GMT. The time now is 01:28 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.01023 seconds
  • Memory Usage 1,723KB
  • 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)bbcode_code_printable
  • (2)bbcode_php_printable
  • (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