Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3 Pets Details »»
vB3 Pets
Version: 1.00, by AutomatikStudio AutomatikStudio is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-30-2004 Last Update: Never Installs: 132
 
No support by the author.

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

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

Comments
  #12  
Old 01-31-2004, 05:59 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this is gonna be what it can be..it can be one of the funniest hacks around. I hope you find the support for this hack. If i can help..with flash or with psp images just PM me the details and i'll see what i can do.
Reply With Quote
  #13  
Old 01-31-2004, 06:49 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any examples of how this would look in the 'new' postbit.?
Reply With Quote
  #14  
Old 01-31-2004, 06:56 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
Any examples of how this would look in the 'new' postbit.?
Not as of now...but it will look exactly like the "pet table" in that screenshot...only it will be placed in differently...but like the install file says...you can place it anywhere you would like pretty easily as the pet table is in a template so all you have to do is put $vb3petsthreadbit whereever you want the pet table to be...
Reply With Quote
  #15  
Old 01-31-2004, 09:28 PM
trinitym's Avatar
trinitym trinitym is offline
 
Join Date: Jan 2004
Location: between hell & insanity
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
Any examples of how this would look in the 'new' postbit.?
This is what it looks like in mine, board is still in development but it's supposed to open tomorrow, so I guess it wouldn't hurt to post now. I did tweak it to fit with my design. Heh. Changed the pets to fit too, and it all works quite fabulously. I love it, it's so cute.

[high]* trinitym clicks install[/high]
Reply With Quote
  #16  
Old 01-31-2004, 09:41 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OH MY WORD, vbpets great hack dude, i will try this one out i think
Reply With Quote
  #17  
Old 01-31-2004, 10:09 PM
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trinitym
This is what it looks like in mine, board is still in development but it's supposed to open tomorrow, so I guess it wouldn't hurt to post now. I did tweak it to fit with my design. Heh. Changed the pets to fit too, and it all works quite fabulously. I love it, it's so cute.

[high]* trinitym clicks install[/high]
Very nice. Thanks for the screenshot!
Reply With Quote
  #18  
Old 01-31-2004, 11:31 PM
NyCwill NyCwill is offline
 
Join Date: Feb 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error when i add the queries

Quote:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE user ADD petname varchar( 25 ) NOT NULL ALTER
Reply With Quote
  #19  
Old 01-31-2004, 11:50 PM
trinitym's Avatar
trinitym trinitym is offline
 
Join Date: Jan 2004
Location: between hell & insanity
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NyCwill
I got this error when i add the queries
If you're using the built in query runner in VB, I believe it only lets you run one query at a time, so just do one alter statment at a time. If you're using phpmyadmin, then add a ";" without the quotes after each statement.

I also wanted to suggest that maybe having the options in the profile stay selected for whatever it was you'd chosen, would be great. I had a user alter their profile and found that their pet had changed, and that was because the drop downs return to their default.

Man. That sounded convoluted. I hope that made sense, been staring at a pooter all day... Oh and np on the screenshot.
Reply With Quote
  #20  
Old 02-01-2004, 12:03 AM
NyCwill NyCwill is offline
 
Join Date: Feb 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it fix
Reply With Quote
  #21  
Old 02-01-2004, 12:04 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could someone try this code for the modifyprofile template edit instead:
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="$petowned == 1">selected</if>>Yes</option>
<option value="0" <if condition="$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="$petgender == 1">selected</if>>Female</option>
<option value="2" <if condition="$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="$pettype == 1">selected</if>>Dog</option>
<option value="2" <if condition="$pettype == 2">selected</if>>Cat</option>
<option value="3" <if condition="$pettype == 3">selected</if>>Hamster</option>
<option value="4" <if condition="$pettype == 4">selected</if>>Frog</option>
<option value="5" <if condition="$pettype == 5">selected</if>>Fish</option>
<option value="6" <if condition="$pettype == 6">selected</if>>Bird</option>
<option value="7" <if condition="$pettype == 7">selected</if>>Catepillar</option>
<option value="8" <if condition="$pettype == 8">selected</if>>Dino</option>
<option value="9" <if condition="$pettype == 9">selected</if>>Puppy</option>
<option value="10" <if condition="$pettype == 10">selected</if>>Snail</option>
<option value="11" <if condition="$pettype == 11">selected</if>>Squirrel</option>
<option value="12" <if condition="$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>
I was bored so I looked for a fix for the dropdowns not staying selected.
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 07:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15718 seconds
  • Memory Usage 2,349KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_html
  • (5)bbcode_quote
  • (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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete