vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Can anyone help me get this to work? (https://vborg.vbsupport.ru/showthread.php?t=48025)

Ember 01-23-2003 12:06 PM

Thanks :) Hope we get it working, I have a lot of plans for this... hehe.

geniuscrew 01-23-2003 12:22 PM

Hey Ember lol

Try this:

replace

PHP Code:

//start Pet types
    
if ($post[pettype] == "0") {
     
$pettype "None";
    } elseif (
$post[pettype] == "1") {
     
$pettype "Dog";
    } elseif (
$post[pettype] == "2") {
     
$pettype "Cat";
    } elseif (
$post[pettype] == "3") {
     
$pettype "Hamster";
    } elseif (
$post[pettype] == "4") {
     
$pettype "Frog";
    } elseif (
$post[pettype] == "5") {
     
$pettype "Fish";
    }
//end Pet types 


PHP Code:

//start Pet types
    
if ($post[pettype] == "0") {
     
$pettype1 "None";
    } elseif (
$post[pettype] == "1") {
     
$pettype1 "Dog";
    } elseif (
$post[pettype] == "2") {
     
$pettype1 "Cat";
    } elseif (
$post[pettype] == "3") {
     
$pettype1 "Hamster";
    } elseif (
$post[pettype] == "4") {
     
$pettype1 "Frog";
    } elseif (
$post[pettype] == "5") {
     
$pettype1 "Fish";
    }
//end Pet types 

and replace

PHP Code:

<b>Type:</b$post[pettype]<br>
<
b>Gender:</b$post[petgender]<br

with

PHP Code:

<b>Type:</b$post[pettype1]<br>
<
b>Gender:</b$post[petgender1]<br

PS - I have a very vague idea how this works, but I dunno if it will :P

Ember 01-23-2003 12:32 PM

No luck. It doesnt display anything there now, I will have a play around... see what I can do :(

Ember 01-23-2003 12:34 PM

I think its something to do with the member.php - not putting the things into the database, or not correctly...

geniuscrew 01-23-2003 12:34 PM

Sorry lol -

Can you tell me what it did and didn't display before - Just realised I have another hour before my next lesson ^^

Ember 01-23-2003 12:37 PM

Ok, the name displays fine...

It didnt show the name of the type, or the name of the gender.

I am still checking its putting stuff into the database.

Ember 01-23-2003 12:40 PM

Its not putting stuff into the database, so I am now putting info in via phpmyadmin, and checking how it displays.

Ember 01-23-2003 12:47 PM

ok, I am going to use

PHP Code:

$pettype1 

and see if that works in the postbit, it should.

But first need to reboot.

geniuscrew 01-23-2003 12:52 PM

I asked you like 3 times to try putting stuff in using phpMyAdmin lol :P

Ember 01-23-2003 12:55 PM

I know, and I thought it was working :P


All times are GMT. The time now is 07:43 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.01081 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_php_printable
  • (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