Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adoptables hack Details »»
Adoptables hack
Version: 1.2, by antialiasis antialiasis is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-01-2006 Last Update: 10-21-2006 Installs: 23
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

This hack adds a little adoption center to your forum where your users can adopt lovely little adoptables which will be 'upgraded' as the user gains the posts needed for the next stage. (Thus, an adoptable can be originally adopted as an egg, ten posts later the egg has cracks in it, twenty posts after that it hatches into a baby [insert something cute and loveable here], still fifty posts after that it has grown a little, and 100 posts later it's an adult - or something in that direction.)

2 template edits
4 files to upload
1 product to install


Features

Admin features
- Specify which usergroups can view adoptables, which can adopt, which can create adoptables and which can edit/delete others' adoptables
- Specify a maximum number of adopted adoptables per user for each user group
- Specify whether users can adopt adoptables that they created themselves
- Specify whether to use a "general description" for each adoptable, a description for each stage for an adoptable, or both

Adoptable creation features
- Create adoptables with up to five "stages", each with its own image, minimum posts to adopt it, user-specified posts needed to get from the previous stage to this one, and a custom description (if stage descriptions are enabled)
- View list of all your created adoptables
- Edit the adoptables that you have already created if you slipped up
- Only the first stage can be seen by a potential owner - surprise them with what their adoptable grows into

Adoptable management features
- Easily view a list of all adoptables (adopted and available)
- Edit or delete any adoptable easily from the list

Adopter features
- View a list of all available adoptables, only a button-click away from being yours, or of your own adoptables
- Disown an adoptable if you change your mind
- Release adoptables that are at their final stage to the wild so you can adopt new ones without leaving them for somebody else to pick up
- Show your own adoptables off in your profile


Installation

1. Download the zip file attached to this post and unzip it.
2. Upload all the files from the upload folder to the appropriate folder in your forum directory.
3. Import product-adoptables.xml through the Admin CP.
4. Two template edits:

In template MEMBERINFO

FIND

Code:
$footer
ABOVE it add

Code:
$useradoptables
-------------------

In template navbar

WHERE YOU WANT THE ADOPTION CENTER LINK, add

Code:
		<if condition="$permissions['adoptpermissions'] & $vbulletin->bf_ugp_adoptpermissions['canview']"><td class="vbmenu_control"><a href="adopt.php$session[sessionurl_q]">$vbphrase[adoption_center]</a></td></if>
5. Modify the adoptable permissions for all your usergroups and the adoptable options under vBulletin options as you want them.
6. You're done! Go notify your users. And if you like it, click "I have installed this hack".


Uninstallation

1. Undo the two template edits above.
2. Uninstall the Adoptables product.
3. Remove adopt.php, includes/functions_adopt.php, includes/xml/bitfield_adoptables.xml and includes/cron/updateadoptables.php from your server directory.


Support

Just ask in this thread and I'll do the best I can to help.


Version history

1.2: Added feature to allow or disallow normal users to view full adoptable list. To upgrade: Download the new zip file, reinstall the product with Allow Overwrite definitely set to ON, and reupload adopt.php.
1.1: Fixed missing templates and custom Who's Online status bug. To upgrade: Download the zip file again and reinstall the product, making sure that Allow Overwrite is set to ON. Nothing else has been changed.
1.0: Initial release.

Show Your Support

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

Comments
  #32  
Old 06-07-2006, 11:10 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dt~
Uninstalled.
Well, that's too bad, since I just added one of your features... =/

The other one turned out to be bit too much of a hassle code-wise for a not-particularly-useful feature, so I thought it wasn't really worth it in the long run. After all, if you want to see somebody's adoptables, you can just view their profile.
Reply With Quote
  #33  
Old 06-13-2006, 05:46 PM
dashaka2 dashaka2 is offline
 
Join Date: Sep 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the idea of this. I have a collectible card site. I was wondering If I can hatch an image of a card. If I can that would be perfect.

Can the Admin setup a page that the users can pick from?

Can users trade them?

Also are there any websites that I can see a working demo on this and what pages it effects?

Looking forward to the repsonses
Reply With Quote
  #34  
Old 06-15-2006, 12:35 AM
AMFMaree AMFMaree is offline
 
Join Date: Mar 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this idea but I would like to have some creatures with it.. I wouldnt know the first thing about creating them.
Reply With Quote
  #35  
Old 06-15-2006, 10:27 AM
AMFMaree AMFMaree is offline
 
Join Date: Mar 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I second the motion to have a link or the egg within the postbit ...

Once again.. are you going to supply the gifs for us to have a selection to add.. it would be nice if you could..pretty please
Reply With Quote
  #36  
Old 06-15-2006, 08:48 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool hack.

how about an option to make your adoptable turn into a fighting creature and pit peoples adoptables against eachother? The adoptables which are more mature can get new features or something

You could challenge someone's adoptable if they have set their status to be available for fights.

maybe an adoptable cemetery if there's like a life expectancy for each adoptable.

or what about adoptables that require care? maybe combine this with vbplaza/vbux so that users can user their points to buy stuff for their adoptable. (food, water, collar, etc) And you can use the vbplaza setting to display gifts, but display stuff that the adoptables have instead.

maybe a runaway center for adoptables that have left their owners do to lack of care.
Reply With Quote
  #37  
Old 06-16-2006, 04:30 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is such a cute idea!!! Can you...or anyone...supply some pet images though. I don't have a clue how to make them myself!
Reply With Quote
  #38  
Old 06-16-2006, 06:09 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These kind of hacks are always very popular... I am sure some people are going to worship you for releasing this. =)
Reply With Quote
  #39  
Old 06-19-2006, 01:18 AM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dashaka2
I like the idea of this. I have a collectible card site. I was wondering If I can hatch an image of a card. If I can that would be perfect.

Can the Admin setup a page that the users can pick from?

Can users trade them?

Also are there any websites that I can see a working demo on this and what pages it effects?

Looking forward to the repsonses
You can make any image you want hatch from the egg.

I'm not sure what you mean by the second question - there is already a page listing all available adoptables which users can access.

They can not be traded directly at the moment, but such a feature could probably be implemented in later versions.

This doesn't affect any existing pages except the user profile page - the rest of the adoption center is contained in a new file that you upload when you install the hack. The other template edit is just to add the adoption center link to the navbar.

As for a working demo, well, on my site guests can't see adoptables and my test forum is not accessible from any other IPs than mine, so I guess somebody else would have to show you one. =/ At least you have the screenshots.

Quote:
I like this idea but I would like to have some creatures with it.. I wouldnt know the first thing about creating them.
Quote:
This is such a cute idea!!! Can you...or anyone...supply some pet images though. I don't have a clue how to make them myself!
Well, the thing is that I'm no better at it than you are. I let my users create adoptables for each other, and then just watch on the sidelines. So sorry, I'm afraid I can't supply you with pet images.

Quote:
cool hack.

how about an option to make your adoptable turn into a fighting creature and pit peoples adoptables against eachother? The adoptables which are more mature can get new features or something

You could challenge someone's adoptable if they have set their status to be available for fights.

maybe an adoptable cemetery if there's like a life expectancy for each adoptable.

or what about adoptables that require care? maybe combine this with vbplaza/vbux so that users can user their points to buy stuff for their adoptable. (food, water, collar, etc) And you can use the vbplaza setting to display gifts, but display stuff that the adoptables have instead.

maybe a runaway center for adoptables that have left their owners do to lack of care.
I think you're looking for something more like P3tz. That's a full-fledged virtual pet thing that's compatible with currency systems where the pets can fight each other and need care. This is meant just to be a simple little thing if you're not looking for all those features and just want your users to be able to adopt something and then leave it alone.
Reply With Quote
  #40  
Old 06-19-2006, 03:43 PM
Renae Renae is offline
 
Join Date: Dec 2005
Location: Dayton, OH
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also second having the adopted animal on the postbit, instead of the profile. I'm sure this would not be hard to do though. I'm sure it's just moving things around. Or even in both.

I understand you cannot make the adoptables, I dont' think I can either. I've been asking members to step up and make them. But maybe we can set up some sort of sharing here, so that if one forurm has a bunch and they want to share, the other people can use their animals too. Just an idea.
Reply With Quote
  #41  
Old 06-20-2006, 06:04 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem with putting adoptables in the postbit is mostly all the queries it adds to every thread view.
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:44 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.05120 seconds
  • Memory Usage 2,323KB
  • 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
  • (3)bbcode_code
  • (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
  • (4)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
  • (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