Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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

Category: Major Additions - Version: 3.6.4 Rating:
Released: 06-11-2006 Last Update: 09-03-2006 Installs: 37
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

(For screenshots, please view this thread for vBulletin 3.5.)

Note that if you already have this installed for vBulletin 3.5 and then upgrade to 3.6, it should not be necessary to upgrade this hack; however, if something is wrong, by all means try the new product. No changes have been made to the hack files since the 3.5 version.

----------------------------

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 whether all users can view the full adoptable list or only those who can administer 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 Install.


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


SUPPORT

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

Show Your Support

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

Comments
  #2  
Old 06-13-2006, 06:52 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. But is there any chance of a screen shot or a working demo?

Or have you posted those and I just missed them?
Reply With Quote
  #3  
Old 06-13-2006, 09:48 AM
Pathor Pathor is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
(For screenshots, please view this thread for vBulletin 3.5.)
..
Reply With Quote
  #4  
Old 06-14-2006, 04:46 PM
Yukino_AE Yukino_AE is offline
 
Join Date: Jul 2005
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is almost like p3tz lite.
Reply With Quote
  #5  
Old 06-14-2006, 05:38 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not really. The fundamental difference is that the adoptables don't actually do anything; they're just there. They don't get hungry, need care or anything.
Reply With Quote
  #6  
Old 08-05-2006, 05:03 PM
cooldude714 cooldude714 is offline
 
Join Date: Feb 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this MySQL error when I try to edit user group permissions to use it and try to uninstall it as a product.
Code:
Database error in vBulletin 3.6.0:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = 'Administrators',
	`description` = '',
	`usertitle` = '',
	`opentag` = '<font color=\"red\"><b>',
	`closetag` = '</b></font>',
	`passwordexpires` = '180',
	`passwordhistory` = '360',
	`forumpermissions` = '1048575',
	`genericpermissions` = '1073741759',
	`attachlimit` = '0',
	`pmquota` = '50',
	`pmpermissions` = '7',
	`pmsendmax` = '5',
	`calendarpermissions` = '63',
	`wolpermissions` = '31',
	`adminpermissions` = '3',
	`genericoptions` = '55',
	`profilepicmaxwidth` = '100',
	`profilepicmaxheight` = '100',
	`profilepicmaxsize` = '65535',
	`avatarmaxwidth` = '80',
	`avatarmaxheight` = '80',
	`avatarmaxsize` = '20000',
	`signaturepermissions` = '245759',
	`sigpicmaxwidth` = '500',
	`sigpicmaxheight` = '100',
	`sigpicmaxsize` = '2000',
	`sigmaxrawchars` = '0',
	`sigmaxchars` = '0',
	`sigmaxlines` = '0',
	`sigmaxsizebbcode` = '7',
	`sigmaximages` = '0',
	`adoptpermissions` = '15',
	`maxadopted` = '50',
	`hkc_competition_permissions` = '3',
	`vbppermissions` = '65529',
	`vbp_discountrate` = '5.00000',
	`vbp_paycheckamount` = '500.00000',
	`vbp_secondarycost` = '0.00000',
	`vbp_primarycost` = '0.00000'
WHERE usergroupid=6;

MySQL Error  : Unknown column 'adoptpermissions' in 'field list'
Error Number : 1054
Date         : Saturday, August 5th 2006 @ 07:01:50 PM
Script       : http://www.limeo.co.uk/community/admincp/usergroup.php?do=update
Referrer     : http://www.limeo.co.uk/community/admincp/usergroup.php?do=edit&usergroupid=6
IP Address   : 84.68.246.195
Username     : Squashter
Classname    : vb_database
Can someone help?
Reply With Quote
  #7  
Old 08-10-2006, 03:57 AM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fails to work for me, cant edit the usergroup settings and also gives error for uninstall.
Reply With Quote
  #8  
Old 08-10-2006, 03:48 PM
mighty_warrior mighty_warrior is offline
 
Join Date: Aug 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks good.thanks
Reply With Quote
  #9  
Old 08-14-2006, 09:31 PM
antialiasis's Avatar
antialiasis antialiasis is offline
 
Join Date: Jan 2006
Location: Iceland
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eep... I've been on vacation, but now I return to find a major problem with my hack. @_@

Okay, those were two related problems, both of which have been fixed now. Since the fix edited only the install and uninstall codes, I don't think it's necessary to make this into a separate version. I think you should be okay with just reinstalling the product, but if you get a database error, then run this SQL query:

Code:
ALTER TABLE usergroup DROP maxadopted
and then you should definitely be fine when you run through the install process again. Sorry about that; I'm not sure how I managed to miss it when originally testing the hack.
Reply With Quote
  #10  
Old 08-15-2006, 12:55 PM
Spookysalem Spookysalem is offline
 
Join Date: Oct 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it thanks.

Just need to find some adoptables now
Reply With Quote
Reply

Thread Tools

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 06:32 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.05690 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (5)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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