![]() |
I was adding a description column to the myadopts page's table to display the description of the stage to show the basic description of the stage the creature is at.
|
I see, this sounds like a big change to the core script, you will have quite a bit of work to get it done.
|
Ill edit this in a second with my code and SS of my database, its not a big change to the core script at all.
Okay first in your MYSQL make sure you create a new table in your adopts_levels I called mine Descriptions: http://i46.tinypic.com/25zph1h.png Then you will be able to add descriptions to the inside of the table like this:http://i49.tinypic.com/nvaxkp.png After that you want to make sure your myadopts.php and levelup.php have the right fields in them so it can insert it into the table: myadopts.php should look like this: Code:
// Determine what to show for next level: For yours I took a look and I think this is the problem : Code:
$table->buildtable(array("<img src='picuploads/{$adopt->gender}.png'>", "<em>{$adopt->name}</em> the {$adopt->type}", "<a href='myadopts.php?action=manage&id={$adopt->aid}'><img src='{$image}'></a>", $adopt->totalclicks, $level->description), Code:
$table->buildtable(array("<img src='picuploads/{$adopt->gender}.png'>", "<em>{$adopt->name}</em> the {$adopt->type}", "<a href='myadopts.php?action=manage&id={$adopt->aid}'><img src='{$image}'></a>", $adopt->totalclicks,"{$levels->description}"), |
1 Attachment(s)
You need to make a filed in the adopts_adoptables table and then just call it where you want to show the description. I've done this with both my sites and it's not too hard if you know what you're doing. It looks really nice too.
I don't think attachments are working but I tried to attach one to show you an example. |
I forgot to tell you to add this:
So instead of this: (it occurs at least twice in the file) Code:
$stmt = $adopts->query("SELECT * FROM {$prefix}owned_adoptables WHERE owner='{$loggedinname}' and aid='{$id}'"); Code:
$stmt = $adopts->query("SELECT * FROM {$prefix}owned_adoptables, {$prefix}levels WHERE owner='{$loggedinname}' and aid='{$id}' and type=adoptiename and currentlevel=thisislevel"); |
I got it to work awhile ago, thanks though for the help ;)
|
Well the syntax from Kamalya is for mys v1.3.1, it won't work with mys v1.3.2. Be careful if you use it.
|
Its 1.3.0 I use, I can't get anything higher to work.
|
All times are GMT -5. The time now is 04:16 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.