![]() |
Can anyone help me get this to work?
1 Attachment(s)
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 :D 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. |
I want to be the very best, like no one ever was. To catch them is my retest, to train them is my cause..
I will travel throughout the land, searching far and wide.. to understant the power thats inside.. |
=(
Insanity really is your gift. Heres what isnt working: When you update your profile I am fairly sure it adds it to the database ok - but it wont show up right in the postbit. It shows the petname ok, but not the gender or type. |
Poke-Neo!
I actually requested this hack a while back lol https://vborg.vbsupport.ru/showthrea...threadid=44462 What exactly are you updating in the profile? Have you defined the right variables? I'll be willing to help if I can, but I'm no php whizz lol Edited: Just saw the attachment - *doh* |
Ok, take a peek at the attatchment and you should get the idea, I really hope you can help, I have been looking at the code for a while and cant figure out what is wrong... I hope you can :)
I intend on modifying the code a lot more... integrating the RPG stats hack to have Pet stats etc. |
From what I know, and it's not a lot :p, I think there's currently no way of putting the user's pet info into the database - but I dunno exactly *shrugs*
Try adding one manually using phpMyAdmin or something, and see if it shows |
There is, lots of other hacks do it.... I have got it to add the pet name to the database, so that part works... Its just the other 2 things.
|
Like I said, I'm no PHP whizz - have you tried adding one manually?
|
Yah, but then in the postbit it displays the number of the pet, in the functions it should change the 1 to dog, 2 to cat etc. but its not doing that... I bet dark vincent could help, cos its his hack I based it on... grrr.
|
I'll have a look at his -
|
Thanks :) Hope we get it working, I have a lot of plans for this... hehe.
|
Hey Ember lol
Try this: replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
No luck. It doesnt display anything there now, I will have a play around... see what I can do :(
|
I think its something to do with the member.php - not putting the things into the database, or not correctly...
|
Sorry lol -
Can you tell me what it did and didn't display before - Just realised I have another hour before my next lesson ^^ |
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. |
Its not putting stuff into the database, so I am now putting info in via phpmyadmin, and checking how it displays.
|
ok, I am going to use
PHP Code:
But first need to reboot. |
I asked you like 3 times to try putting stuff in using phpMyAdmin lol :P
|
I know, and I thought it was working :P
|
:P any luck?
|
Result!
Its getting it out of the database fine now... I just need to it to put the info in when the user updates his profile... |
OOO Nice 1
Try replacing: pettype='$bbuserinfo[pettype]',petgender='$bbuserinfo[petgender]' with pettype='$pettype',petgender='$petgender' |
Will do, I am fixing a few things I spotted in the template first, then I will try that :)
|
KK lemme know how it goes!
|
It works! :D
|
Fantastic!
|
I am just remaking the install guide, then I will release this version.
My friend is making the images for version 2 now, and I will include pet stats in that version. |
cool cool
|
Quote:
If I had'nt made 4 hacks yesterday and was up 18 hours I would have helped... but after that post I kinda passed out. :banana: |
awww, there there :)
Well its done and released now, and now I am working on the stats. |
All times are GMT. The time now is 08:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|