The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3 Pets Details »» | |||||||||||||||||||||||||
vB3 Pets v1.0
by AutomatikStudio and others +What This Hack Does+ This hack gives your users the option to have their very own furry little pets. Posting on your boards is what keeps them alive! +Installation+ + Queries - 4 + File edits - 3 files + Template Additions - 1 + Template Edits - 2 + Image Uploads +UPDATE+ +Thanks to Link14716, your selections stay selected after your users save them in their profiles. The ZIP file has been updated with the new code. Or if you just want the code then check out THIS post. +IF YOUR HACK HAS THE ANIMAL 'CATEPILLER' MAKE SURE YOU FIX THE SPELLING ERROR!! Silly me, I misspelled the word 'catepiller'. You need to update /includes/functions_showthread.php and the MODIFYPROFILE template from the word 'catepillar' to 'catepiller' with an E. *Note: I no longer support this mod in any form or fashion. Please don't PM me with questions about it. Show Your Support
|
Comments |
#22
|
||||
|
||||
I gave the above a try and it didn't work unfortunately. It looked like it should though, based on the conditionals. Perhaps the pet-related variables just aren't set to translate on that particular template. This would be my n00b guess. Heh. Kudos for giving it a shot though.
|
#23
|
||||
|
||||
Try this then:
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[additional_information]</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]"> $customfields[regular] <!-- end if custom fields --> </if> </div> </div> </td> </tr> </table> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">Pet Information</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]"> <fieldset class="fieldset"> <legend>Pet Ownership</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td colspan="2">Do you own a pet?</td> </tr> <tr> <td><select name="petowned"> <option value="1" <if condition="$bbuserinfo[petowned] == 1">selected</if>>Yes</option> <option value="0" <if condition="$bbuserinfo[petowned] == 0">selected</if>>No</option> </select></td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>Your Pets Name</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td colspan="2">Name your pet.</td> </tr> <tr> <td><input type="text" class="bginput" value="$bbuserinfo[petname]" name="petname" value="$bbuserinfo[petname]" size="40" maxlength="40"></td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>Your Pets Gender</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td colspan="2">Set the gender of your pet.</td> </tr> <tr> <td><select name="petgender"> <option value="1" <if condition="$bbuserinfo[petgender] == 1">selected</if>>Female</option> <option value="2" <if condition="$bbuserinfo[petgender] == 2">selected</if>>Male</option> </select></td> </tr> </table> </fieldset> <fieldset class="fieldset"> <legend>Type of pet</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td colspan="2">Select what type of animal your pet will be.</td> </tr> <tr> <td><select name="pettype"> <option value="1" <if condition="$bbuserinfo[pettype] == 1">selected</if>>Dog</option> <option value="2" <if condition="$bbuserinfo[pettype] == 2">selected</if>>Cat</option> <option value="3" <if condition="$bbuserinfo[pettype] == 3">selected</if>>Hamster</option> <option value="4" <if condition="$bbuserinfo[pettype] == 4">selected</if>>Frog</option> <option value="5" <if condition="$bbuserinfo[pettype] == 5">selected</if>>Fish</option> <option value="6" <if condition="$bbuserinfo[pettype] == 6">selected</if>>Bird</option> <option value="7" <if condition="$bbuserinfo[pettype] == 7">selected</if>>Catepillar</option> <option value="8" <if condition="$bbuserinfo[pettype] == 8">selected</if>>Dino</option> <option value="9" <if condition="$bbuserinfo[pettype] == 9">selected</if>>Puppy</option> <option value="10" <if condition="$bbuserinfo[pettype] == 10">selected</if>>Snail</option> <option value="11" <if condition="$bbuserinfo[pettype] == 11">selected</if>>Squirrel</option> <option value="12" <if condition="$bbuserinfo[pettype] == 12">selected</if>>Teddy</option> </select></td> </tr> </table> </fieldset> </div> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" /> <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" /> </div> </td> </tr> </table> |
#24
|
||||
|
||||
Rock on with your bad self. The above worked perfectly. Gracias!
|
#25
|
||||
|
||||
I have installed but I don't see any pets on my site
Can someone please let me know where I can begin to look to see why? I went through everything step by step. I used phpmyadmin to do the queries and added a ";" to the end of each line before i submitted it. Any ideas? I am dying to see the little pets! |
#26
|
||||
|
||||
Quote:
Quote:
|
#27
|
||||
|
||||
Okay...I went through each step very carefully again. I do see "Pet Information" under "Edit Profile." I entered a test pet in there, pressed Save and I get this:
"There are no subscribed threads to display in this folder for this time period." (Seems like it does something with the subscription...not sure why.) I viewed some of my posts but do not see any pet pics yet. What do you suggest I should do? |
#28
|
||||
|
||||
Quote:
|
#29
|
||||
|
||||
Quote:
|
#30
|
||||
|
||||
Quote:
|
#31
|
||||
|
||||
hmm..I put the "bars" and the "pets" folder inside /forums/images/ directory...
I do see the Pet info to fill out, i enter some info, and then press Save. Then i posted a test post to see if I see the pet graphic...but my post is just as if I didn't install the pet hack. SO I don't see the pet graphic or other info that is supposed to be in the post...I think it should show in the post, by my username or something..i don't see it there This is my postbit template where i put that $vb3petsthreadbit variable: Code:
<div> $vbphrase[posts]: $post[posts] $vb3petsthreadbit <if condition="$show['reputation']">$post[reputationdisplay]</if> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|