Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   How can I do these things? (http://www.mysidiaadoptables.com/forum/showthread.php?t=2021)

ChibiMaestro 03-21-2011 03:08 PM

Actually, on the demo site: http://www.mysidiaadoptables.com/mys120a/ the pound is exactly the same. I just test pounded 2 adoptables, and readopted them.

Also, I'll try check out the inventory :) *goes to test on my site*

AlexC 03-21-2011 03:11 PM

hmm, that's not good. D: Is that how it's suppose to be displayed then?

it keeps telling me it can't find the file on line 113.

ChibiMaestro 03-21-2011 03:24 PM

I think the inventory script was for 1.1.X and I think you're using 1.2.0
And the furthest editing I got for the inventory script was:
Code:

<?php

include("inc/functions.php");
include("inc/config.php");

//***************//
//  START SCRIPT //
//***************//

$themeurl = grabanysetting("themeurl");
$links = getlinks();
$ads = getads("any");
$pagecontent = getsitecontent("index");
$article_title = $pagecontent[title];
$article_content = $pagecontent[content];
$article_content = nl2br($article_content);

$article_title = "Your Inventory";

if ($isloggedin == "yes") {
$article_content = "Here you can see a list of items that you have collected.<table width='500' border='2'>
<tr>
    <td width='200'><strong>Picture:</strong></td>
    <td width='230'><strong>Item Type: </strong></td>
    <td width='70'><strong>ID Number:</strong></td>
</tr>";
 
$query = "SELECT * FROM ".$prefix."useritems WHERE Owner = '$loggedinname'";
$result = mysql_query($query);
$num = mysql_numrows($result);

$i=0;
while ($i < $num) {

$iid=@mysql_result($result,$i,"ID");
$object=@mysql_result($result,$i,"Item");
$url=@mysql_result($result,$i,"imageurl");


$article_content = $article_content."<tr>
    <td><center><img src='".$url."'></center></td>
    <td><center>".$object."</center></td>
    <td><center>".$iid."</center></td>
  </tr>";

unset($iid);
unset($object);

$i = $i + 1;
}
$article_content = $article_content."</table>";

}
else {

$article_content = "You must be logged in to view items.";

}
//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title, $article_content, $date);

?>

I couldn't continue because I have no idea how to insert a new table, and it's required to insert a table which is:
Code:

id, int(11), not null, auto_increment
owner, varchar(40), latin1_general_ci, yes (NULL)       
itemtype, varchar(40), latin1_general_ci, yes (NULL)
imgurl, varchar(120), latin1_general_ci, yes (NULL)

But yeah :P

AlexC 03-21-2011 03:30 PM

i noticed that the person didn't actually say WHERE to add the tables, I know howto otherwise

http://ratties.x10.mx/inventory.php this was the result of adding the script. D: and yeah, I am using 2.0. Darn, I really wanted it to work. ;-; I've been promising items for ages.

ChibiMaestro 03-21-2011 03:38 PM

Gahhh, yes, TCK needs (well, it'd be epic if he did) to update the thread :P

So how do you actually ADD tables? o-o

AlexC 03-21-2011 03:43 PM

You go through to phpadmin or whatever, then you click whatever area you want to add it to. like, adoptables or something. then I clicked structure or something (one of the tabs along the top) and at the very bottom there was an option to another field. At least, I think that was what it was. It had all of the options that everyone wanted me to add, and it worked fine.

ChibiMaestro 03-21-2011 03:47 PM

Ohhh, I meant isn't there a way to kinda copy and paste the code? o-o

AlexC 03-21-2011 03:58 PM

I'm not sure. I'm rather hungry and thus confused at the moment, lol. Not a good place to be coding from.


All times are GMT -5. The time now is 06:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.