Random Adoption
I'm trying to build a "Pokemon" adoptables site.
Here's what I'm trying to do: 1) Quickly make all adoptables/Pokemon have the same egg image (SQL query/script modification?) 2) Edit the adopt.php page so that it serves a random adoptable (only one) (the user won't be able to tell which adoptable it is as they all have the same image) This way the user won't know what they're adopting (no name, aids don't help, etc.) until they get past the egg phase. Here's an example of what I'm trying to do: http://www.virtuadopt.com/adopt.php Quote:
Is there also a quick way to add images? I have 500+ jpg images that I need to convert to gifs and upload. The Admin CP is way to slow at adding images (one at a time).[hr] I figured out how to get number 2 to work. I searched the forum and found this: http://www.rusnakweb.com/forum/showthread.php?tid=365 which helped a lot. I'm still trying to figure out how to get all the adoptables to share the same egg image without manually editing every single one and how to upload 500+ adoptables at once. New "todo": Get adopt.php to display eggs horizontally. |
RE: Random Adoption
Eggs are easy.. when making the "new adoptable" give them all the same egg image.
For horizontal change article content of your adopt.php page at line 127 to Code:
$article_content = $article_content." Uploading I can't help you. :( |
RE: Random Adoption
I tried uploading all the pictures to the picuploads directory but they don't show up. I think database editing is needed (?).[hr]
I just tried. The adopt.php file at the forum thread: http://www.rusnakweb.com/forum/showthread.php?tid=365 doesn't work with the latest release. A few includes and functions are missing. |
RE: Random Adoption
Delete the .htaccess file in picuploads, the same thing happened to me.
And, to show only 1 random adoptable... Find: PHP Code:
PHP Code:
PHP Code:
If you want an example of what it looks like: Http://PokemonEpiphany.com/adopt.php |
RE: Random Adoption
For me that code didn't work.
This was working for me: Code:
$query = "SELECT * FROM ".$prefix."adopts_adoptables ORDER BY RAND() LIMIT 1"; |
All times are GMT -5. The time now is 12:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.