vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Adoptables hack (https://vborg.vbsupport.ru/showthread.php?t=117376)

Oddjob 06-02-2006 03:44 AM

<font color="Lime">Installed</font> fine.....looking forward to playing w/ this.

Ziki 06-02-2006 04:07 AM

So this is similar to Petz I guess.....Nice work though.Must have been hard :)

antialiasis 06-02-2006 09:09 AM

Quote:

is this almost like a pets sorta thing? but based on posting?
Well, they don't actually do anything except sit in your profile and look cute (or grotesque, if either somebody was fooling around when they made it or you have that sort of taste) and then occasionally turn into an older version of themselves - they don't need care, get hungry, battle each other or anything. (That is in fact the reason I didn't want to refer to it as a pets hack, since it could make users expect something more than it is.)

Quote:

and at some point can you make them die so they have to adopt a new one?
At the moment at least, there is no such feature, but I think most people would end up getting bored of having an adoptable staying completely static in their profiles after growing to its final stage. They're bound to end up releasing it and adopting something new sooner or later...

Quote:

what do they look like once they hatch?
They look like whatever the adoptable's creator has specified - when you make one, you have to enter an image URL for each stage. There are no adoptables that actually come with it, so you'll just need those with creation permissions to go wild.

Quote:

I tried installing it but had trouble, so I will try again in the morning

Also, can you recommend a place to put the Adoption Link, I tried placing it in several different spots within my navbar template and none worked. Thanks!
What trouble are you having exactly? I have a bit of a history of managing to mess something up with either the installation instructions or the product XML, so the problem might be on my end. (I did install it on a test forum using the files I attached and following the steps I put in the post and it seemed to work fine, but just in case.)

Well, in the navbar template, you can find this:

Code:

                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

That's the link to the User CP. If you want the adoption center link right after that, just put the code right below that bit. However, what should be already below the user CP link is this:

Code:

                <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]">$vbphrase[faq]</a></td>
And that's obviously the FAQ link, so if you want the adoption center link after that, then put it below there. You should be able to figure out the other locations from that...

Quote:

So this is similar to Petz I guess.....Nice work though.Must have been hard
Heh, thanks. It wasn't as hard as I thought it would be, actually - everything turned out to be surprisingly straightforward even for me as a fairly inexperienced coder. But it was a lot of code just to type. I think I was working on this thing pretty much for two or three days straight with eating/sleeping breaks but not much else... I really have too much time on my hands.

projectego 06-02-2006 09:25 AM

Looks awesome, thanks! :)

bada_bing 06-02-2006 05:55 PM

Just an idea.. If there were seveal pets or live things to choose from for example

a baby to adult male/female
a tatpole to from
a fish egg to fish

and so on

PabloAM 06-02-2006 08:23 PM

Please, I need a "gif?s" of creatures :)

dt~ 06-02-2006 08:32 PM

the $useradoptables code isn't working. Please assist.

Krahl 06-02-2006 08:40 PM

Cute.

How difficult would it be to change the "growth" to be dependant on something other than post count? For example, Reputation or cash or something entirely new?

I'll have other questions, but that's the primary one for the moment.

Thanks for creating it.

Krahl

theodonnells 06-02-2006 11:42 PM

Quote:

Originally Posted by dt~
the $useradoptables code isn't working. Please assist.

Same here have run the cron and still nothing showing..
Attached are 5 small images for members to test with!!!An egg that turns into a smiley!!
Attachment 48792
Also getting this error in who's online
Code:

Parse error: parse error, unexpected T_STRING in public_html/forum/includes/functions_online.php(765) : eval()'d code on line 234
Error goes away if adoptable product disabled....

antialiasis 06-03-2006 12:36 AM

bada_bing, as I said, no adoptables actually come with the hack - you or some of your users will have to make them yourselves. The hack allows you to make tadpoles > frogs or whatever you want, as long as you supply the images.

Both the $useradoptables and Who's Online glitch should be fixed now - to upgrade, just download the zip file again and reinstall the product with Allow Overwrite set to On.

Changing the number the growth is dependent on should be very easy - you'd just need to change a few phrases and find all the instances of $vbulletin->userinfo['posts'] in the templates, adopt.php, includes/cron/updateadoptables.php and the Get Member's Adoptables plugin. Then just replace them with something like $vbulletin->userinfo['reputation'] for reputation, etc.


All times are GMT. The time now is 04:33 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.01957 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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