vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Bevel Coding (https://vborg.vbsupport.ru/showthread.php?t=45014)

BigJohnson 10-26-2002 10:32 AM

Bevel Coding
 
I am in my MEMBER.PHP file.

When you go to user cp and the modify profile there is an area on the bottom of the page called additional information.

No the template for additional info is register_customfields

and the colors for each TD is $bgcolor

Now I am trying to make my whole site in bevel which means 3d.

$bgcolor makes the colors go back and forth

{firstaltcolor }
{secondaltcolor }

Like that goes back and forth. I have two bevel codes. One for the firstaltcolor and secondaltcolor

{bevel1 }
is for the firstaltcolor and i am guessing you probably know what the other one is for. Well the only thing i am having trouble with is making this part of the site bevel.

I know it needs some php coding in the member.php file

PHP Code:

  // get extra profile fields
  
$customfields '';
  
$profilefields=$DB_site->query("SELECT *
                                  FROM profilefield
                                  WHERE editable = 1
                                  ORDER BY displayorder"
);
  while (
$profilefield=$DB_site->fetch_array($profilefields)) {
    
$profilefieldname="field$profilefield[profilefieldid]";
    if (
$bgcolor=="{firstaltcolor}") {
      
$bgcolor="{secondaltcolor}";
    } else {
      
$bgcolor="{firstaltcolor}";
    }
    eval(
"\$customfields .= \"".gettemplate("register_customfields")."\";");
  } 

This is what the area in the member.php file looks like for this template. This is what i changed it too.

PHP Code:

  // get extra profile fields
  
$customfields '';
  
$profilefields=$DB_site->query("SELECT *
                                  FROM profilefield
                                  WHERE editable = 1
                                  ORDER BY displayorder"
);
  while (
$profilefield=$DB_site->fetch_array($profilefields)) {
    
$profilefieldname="field$profilefield[profilefieldid]";
    if (
$bgcolor=="{firstaltcolor}") {
      
$bgcolor="{secondaltcolor}";
    } else {
      
$bgcolor="{firstaltcolor}";
    }
    if (
$bevelcolor=="bevel1") {
      
$bevelcolor="{bevel2}";
    } else {
      
$bevelcolor="{bevel1}";
    }
    eval(
"\$customfields .= \"".gettemplate("register_customfields")."\";");
  } 

then i added $backbevel to the correct template and it didn't work. Maybe the PHP is wrong but can someone help me finish this. Thanks so much.

N!ck 10-31-2002 12:01 AM

first, you need to change this:
PHP Code:

    if ($bevelcolor=="bevel1") {
      
$bevelcolor="{bevel2}";
    } else {
      
$bevelcolor="{bevel1}";
    } 

to this:
PHP Code:

    if ($bevelcolor=="{bevel1}") {
      
$bevelcolor="{bevel2}";
    } else {
      
$bevelcolor="{bevel1}";
    } 

second, the variable is $bevelcolor, not $backbevel.


All times are GMT. The time now is 02:44 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.01034 seconds
  • Memory Usage 1,731KB
  • 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
  • (4)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