vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Pets (https://vborg.vbsupport.ru/showthread.php?t=61008)

NuclioN 01-31-2004 05:59 PM

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.

Oblivion Knight 01-31-2004 06:49 PM

Any examples of how this would look in the 'new' postbit.?

AutomatikStudio 01-31-2004 06:56 PM

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...

trinitym 01-31-2004 09:28 PM

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. :D

[high]* trinitym clicks install[/high]

SnowBot 01-31-2004 09:41 PM

OH MY WORD, vbpets :) great hack dude, i will try this one out i think :)

AutomatikStudio 01-31-2004 10:09 PM

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. :D

[high]* trinitym clicks install[/high]

Very nice. Thanks for the screenshot!

NyCwill 01-31-2004 11:31 PM

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

trinitym 01-31-2004 11:50 PM

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. :)

NyCwill 02-01-2004 12:03 AM

I got it fix :D

Link14716 02-01-2004 12:04 AM

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. ;)


All times are GMT. The time now is 02:07 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.01195 seconds
  • Memory Usage 1,779KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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