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
  #42  
Old 08-01-2006, 05:27 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude you have no idea how awesome this is for a Pokemon-based message board since Pokemon themselves do hatch from eggs and 'evolve' in stages.

In fact, the egg sprite in those screenshots looks like it was ripped off of the Gameboy Advance games?

Looks great. I'll install tomorrow most likely.
Reply With Quote
  #43  
Old 08-14-2006, 10:03 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, indeed it was. Pok?mon fan with Pok?mon forum here.
Reply With Quote
  #44  
Old 08-23-2006, 02:38 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That explains it. Well, I finally got around to actually doing this but now I have a problem.

I created an adoptable but the 'next stage' stuff isn't working.

I am 99% sure that I put in all the stuff properly and it works just fine, creates the adoptable. They just don't go on to the next stage when the user gets the appropriate number of posts. There are no errors either.

Any ideas? :\
Reply With Quote
  #45  
Old 08-23-2006, 04:57 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's most likely just because the adoptables are updated via a scheduled task. It should run every hour exactly (as in one o'clock, two o'clock, three o'clock, etc). Wait until that time has passed and then see if it hasn't been updated.

(You can, of course, run the scheduled task immediately through the Admin CP if you'd rather not wait to test it - not that said adoptable shouldn't already have been updated now, if the member had enough posts at the time you posted here.)
Reply With Quote
  #46  
Old 08-23-2006, 05:25 PM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed all the stages so no, it didn't update because there's nothing to update.

I'll check that out, thanks.
Reply With Quote
  #47  
Old 09-21-2006, 05:27 AM
givemeplain givemeplain is offline
 
Join Date: Dec 2004
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack. by any chance could you make it that more than one user can adopt the same thing? by making an adoptable unique to every person, there would have to be hundreds to accomdate any medium sized - larger forum.
Reply With Quote
  #48  
Old 09-26-2006, 10:17 AM
Doc31's Avatar
Doc31 Doc31 is offline
 
Join Date: Sep 2006
Location: Australia
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AMFMaree
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
I third forth and fith this motion. needs to have a link to adoptable in postbit or people dont know you even have one unless they check your profile. and who bothers with that.
Reply With Quote
  #49  
Old 10-13-2006, 12:38 PM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe it is a mistake on my side but I doubt it. I have installed this hack and all hell broke lose on my forum. I can't modify permissions for groups. I get this erroratabase error in vBulletin 3.6.1:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Registered Users',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`adoptpermissions` = '15',
`maxadopted` = '5',
`arcadepermissions` = '7',
`forumpermissions` = '1044991',
`genericpermissions` = '304723919',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '0',
`calendarpermissions` = '17',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericoptions` = '63',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '172031',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '20000',
`sigmaxrawchars` = '800',
`sigmaxchars` = '400',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '2'
WHERE usergroupid=2;

MySQL Error : Unknown column 'adoptpermissions' in 'field list'
Error Number : 1054
Date : Friday, October 13th 2006 @ 06:34:18 AM
Script : http://www.XXXX.com/XXX/admincp/usergroup.php?do=update
Referrer : http://www.XXXX.com/XXX/admincp/user...&usergroupid=2
IP Address : XXX.229.XXX.84
Username : haytham
Classname : vb_database
=====================================
I tried to uninstall the hack but got this message:
-------------
Database error in vBulletin 3.6.1:

Invalid SQL:
DROP TABLE adopt;

MySQL Error : Unknown table 'adopt'
Error Number : 1051
Date : Friday, October 13th 2006 @ 06:37:06 AM
Script : http://www.XXXX.com/XXX/admincp/plug...do=productkill
Referrer : http://www.XXXX.com/XXX/admincp/plug...=adoptables&s=
IP Address : XXX.229.XXX.84
Username : haytham
Classname : vb_database
-==================================
so what can I do now to uninstall this hack?
Reply With Quote
  #50  
Old 10-22-2006, 06:29 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, it looks like something went wrong during the installation itself. Couldn't be sure exactly what it is, but from the looks of it, the hack isn't really installed at your forum so you don't exactly need to uninstall it...

Okay, the code seems to be a little buggy. I'm going to reupload the product and you can try it again.
Reply With Quote
  #51  
Old 11-16-2006, 02:41 PM
Ophelia Ophelia is offline
 
Join Date: Feb 2006
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like for the egg to show up in the area where their name is when they post (I can never remember what that is called). Right under their avatar. Is there a way to do this?
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 01:58 AM.


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.05467 seconds
  • Memory Usage 2,313KB
  • 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
  • (1)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
  • (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