![]() |
#1
|
||||
|
||||
![]()
My coding skills are improving. lol I have just edited the adopts.php, adoptspost.php and admin cp so that when users view the adoptables they see the hatched version of them rather than the eggs. I thought it would be boring to go to adopts and see the same egg images not moving even tho i have 17 different eggs.
So basicly you see all the pokemon but once adopt it you get it as an egg. Required me adding a table to adoptables as well i just called hatched and links to the hatched image. I am pretty excited i figured this out on my own by trial and error and if anyone wants this mod i would be happy to share files or help implement it. Heh I can do some real damage after I actually take a PHP course ;)
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
#2
|
|||
|
|||
![]()
Sounds Nice to me, I would like to try out this mod on my site..
![]()
__________________
![]() |
#3
|
||||
|
||||
![]()
Well a while ago I was considering that I should design an egg-stage system, in which the admins can specify how egg images change before they finally crack. Not sure if this is exactly what you are planning to do though, but I wish you good luck. It sounds intriguing to me so far.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
![]()
no i'll explain this better. basicly my site has all 650 pokemon and 17 different eggs. one for each type. so a blue egg for water and a yellow egg for electric etc...
so the page doesnt take for ever to load and so its faster to adopt the pokemon you want i sorted the adopts my type. Now I had this problem when you went to adopt say an electric pokemon all you saw was yellow eggs and it was rather boring. So my mod makes it so you see the adopt at lvl 1 on the adopt page but when you adopt it you actually get it as an egg. this way i can keep the eggs and good adopt pages :)
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
#5
|
||||
|
||||
![]()
I see, sounds interesting. I wonder how many people here are making pokemon sites, but what you've done will be a helpful guide for them.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
|||
|
|||
![]()
Nemesis, I would like to try out your Mod.
![]() Could you send me the files...?
__________________
![]() |
#7
|
||||
|
||||
![]()
eehhh im having a hard time tracing what I did. But i think it was this. First you need to add an extra column to your mysql table. I called mine hatched and it goes last right after cost. you can google for this sql command to do it.
Now you have the new column and it will be null for all existing adopts. you will need to manually add the desired image to show rather than the egg, this should be a url just like egg image column, in fact copy that columns properties exactly when making the column. Okay now to easily allow new adopts to have their hatched images added edit admincp/adoptpost.php so the admin control panel has a box to enter the url for hatched images. I copied the code for first egg image. renaming the id to hatched. Now we just need the adopts page to show the hatched url img rather than the egg url img when it access the database. so in adopts.php find the two variables called $eggimage and replace those two lines with this: $eggimage=$row->hatched; I could share you these files but my other mods are catred to my site and won't work for you so it may be better for you to let me do it for you if you still need help. feel free to ask questions as well. i tried explaining it my best.
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
#8
|
||||
|
||||
![]()
Well another quick note is that Nemesis is using Mys v1.3.0 so it is unlikely that his Mod will be compatible with your site. You can always edit a few lines to make it work, but not without some basic PHP skills.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
![]() |
|
|
What's New? |
What's Hot? |
What's Popular? |