Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Can anyone help me get this to work? Details »»
Can anyone help me get this to work?
Version: , by Ember Ember is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-23-2003 Last Update: Never Installs: 0
 
No support by the author.

Hi, I am working on my first hack, it is a bit of a modified version of dark vincents RPG stats hack, but only used bits, and added some more.

Its so each member can have their own pet, each pet has its own name, its own breed, and wether its male or femal.

I have attatched what I have so far, but I cant get it to work... I dont know why, can anyone help me? Major credits to anyone who can

Thanks in advance

PS. Please tell me what I am doing wrong and not just fix it, I need to know my mistakes, so I can learn from them

PPS. Any comments on the hack are very grateful!

PPPS. My friend is working on some little graphics for the animals, so I will add them to version 2.

Download Now

File Type: (21.4 KB, 10 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-23-2003, 12:06 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Hope we get it working, I have a lot of plans for this... hehe.
Reply With Quote
  #13  
Old 01-23-2003, 12:22 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 01-23-2003, 12:32 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No luck. It doesnt display anything there now, I will have a play around... see what I can do
Reply With Quote
  #15  
Old 01-23-2003, 12:34 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think its something to do with the member.php - not putting the things into the database, or not correctly...
Reply With Quote
  #16  
Old 01-23-2003, 12:34 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry lol -

Can you tell me what it did and didn't display before - Just realised I have another hour before my next lesson ^^
Reply With Quote
  #17  
Old 01-23-2003, 12:37 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 01-23-2003, 12:40 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not putting stuff into the database, so I am now putting info in via phpmyadmin, and checking how it displays.
Reply With Quote
  #19  
Old 01-23-2003, 12:47 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I am going to use

PHP Code:
$pettype1 
and see if that works in the postbit, it should.

But first need to reboot.
Reply With Quote
  #20  
Old 01-23-2003, 12:52 PM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I asked you like 3 times to try putting stuff in using phpMyAdmin lol :P
Reply With Quote
  #21  
Old 01-23-2003, 12:55 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know, and I thought it was working :P
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:28 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.04432 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete