#1
|
||||
|
||||
I love questions =)
I wanted to disallow leveling up adults (increasing their clicks)
so I found this: Code:
// Now we see if the adoptable is frozen by its owner. If it is, we do not level... if($isfrozen == "yes"){ $article_title = $lang_isfrozen_title; $article_content = $lang_isfrozen_explain; } Code:
// Now we see if the adoptable is an adult. If it is, we do not level... if($currentlevel == "5"){ $article_content = "Adults can not be leveled up!"; } |
#2
|
||||
|
||||
Well find these lines in your levelup.php:
PHP Code:
PHP Code:
Hall of Famer
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
wonderful!!! *more cookies for you* need some milk?
|
#4
|
||||
|
||||
Well this is up to you. XD
Did you try the code on Silvadopts? Lemme know if you have more questions regarding customizing your site.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
Yep, it worked perfect! That's why I gave you cookies!! I do have another question but maybe more complicated. I want to show a link that will list all the children an adopt has had. How difficult would this be?
|
#6
|
||||
|
||||
Oh I see, I am glad it works for ya.
Well its not really complicated, are you using Arianna's family tree script? As I've said before, that one is not compatible with Mys v1.2.x, but perhaps you've got it to work. If so, you will find the two columns 'father' and 'mother' in prefix.ownedadoptables table. What you should do is to make a PHP table that retrieves data from all rows of child adoptables whose father(if the gender is male) or mother(if the gender is female) is very parent adoptable you have selected. If you do not use Arianna's family tree script, then create two columns 'father' and 'mother' in table prefix.owned_adoptables and repeat the same procedure as mentioned above.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
Yes I'm using her script and it's working wonderfully(after tweaking some things) however, my coding is still not advanced so... err.. can you show me? I learn better seeing it. It's hard to follow how to do it all myself.
|
#8
|
||||
|
||||
Alright I will show you. But since I am not that familiar with Arianna's family tree script, what I provide below should NOT be directly copy/pasted to your site. It merely serves as a reference, especially since I do not know exactly what your database owned_adoptables looks like and what mysql command you uses to retrieve data.
First of all, you need to retrieve the gender of your parent adoptable. The parentid should be available to you already, and I strongly advise you to name it $parentid to avoid confusion. Write the codes below: PHP Code:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#9
|
||||
|
||||
ok the only part that confuses me is
Quote:
|
#10
|
||||
|
||||
That I figured. Would you mind showing your script file so I can tell you which one is supposed to be $parentid?
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Just A Few Questions: | Mousewhisper | Questions and Supports | 4 | 04-14-2012 07:05 PM |
Just some Questions i have. | rickasawr | Questions and Supports | 3 | 04-30-2011 11:04 PM |
Some Questions? :) | blondbananamix | Questions and Supports | 10 | 04-25-2011 01:47 PM |
two questions | RoconzaArt | Questions and Supports | 10 | 02-24-2011 09:15 AM |
What's New? |
What's Hot? |
What's Popular? |