PDA

View Full Version : is this possible?


exdiogene
10-06-2009, 01:11 PM
is it possible to show the 2nd image level (not egg) on the adopt pet page, otherwise you end up with a page full of eggs :D


Also...

Is it possible to make it in catagories? so they click a link and it takes them to a different page containing a seleciton of pets?

Seapyramid
10-06-2009, 01:53 PM
On the first, just make the 2nd level image the start image if you don't want eggs.

On the 2nd, it is possible but would take some coding to do it.

Sea

exdiogene
10-06-2009, 02:07 PM
I want egs though, its just members cant see what the pet actually looks like before adopting.

Can it be changed in the Adopt.php to show the second level not the egg image??

here:
$eggimage=@mysql_result($result,$i,"eggimage");

Bloodrun
10-07-2009, 11:47 AM
I want egs though, its just members cant see what the pet actually looks like before adopting.

Can it be changed in the Adopt.php to show the second level not the egg image??

here:
$eggimage=@mysql_result($result,$i,"eggimage");


Isn't that the whole point.. them not being able to see what it is?...

And yes it is possible, but it would require that you completely change your MyAdopts Page.

exdiogene
10-07-2009, 11:53 AM
lol not really, people arent adopting because they dont know what the pet will look like before adopting, and it looks kinda strange having a page full of eggs :)

Bloodrun
10-07-2009, 11:57 AM
lol not really, people arent adopting because they dont know what the pet will look like before adopting, and it looks kinda strange having a page full of eggs :)


I understand this, but look it via a alternative perspective.

You go out and find a egg in a birds nest. You take it home and put it in a inccubater. Now, can you by any means determine what will come out of that egg?

It is possible yes, through deductive reasoning, but otherwise no.

Now, like I said, it is possible to do what you ask, but you would have to rewrite your MyAdopts page in order to do it.

The reason behind the whole analogy, is that if you don't want your members to have "suspense" on what they will get. You can either change the starting image, or just tell them what it will be in the description..

exdiogene
10-07-2009, 12:00 PM
I see what you mean bloodrun, but this is what the people i have asked are looking for, they are members of one of my sites. I asked them what they thought of the new site and 1 was this and the other thing was wanting the pets to be siplayed in a table instead of down the page :)

Bloodrun
10-07-2009, 12:03 PM
I see what you mean bloodrun, but this is what the people i have asked are looking for, they are members of one of my sites. I asked them what they thought of the new site and 1 was this and the other thing was wanting the pets to be siplayed in a table instead of down the page :)


Well we have already told you how to solve the first problem.

The second problem, im afraid I can't help you with. Because I have been searching for an answer to that problem for quite some time now, and still haven't found it.

exdiogene
10-07-2009, 12:10 PM
Can the egg image string not just be replaced with a MySQL query taking the level "This is level 1"

For example

SELECT * FROM `adopts_levels` `adoptiename` WHERE `thisislevel` = 1
(I know the syntax isnt right :) )

Bloodrun
10-07-2009, 12:12 PM
Can the egg image string not just be replaced with a MySQL query taking the level "This is level 1"

For example

SELECT * FROM `adopts_levels` `adoptiename` WHERE `thisislevel` = 1
(I know the syntax isnt right :) )


Trail and Error.

Test it out, if it doesn't work, then you have answered your own question.

Seapyramid
10-07-2009, 04:38 PM
I see what you mean bloodrun, but this is what the people i have asked are looking for, they are members of one of my sites. I asked them what they thought of the new site and 1 was this and the other thing was wanting the pets to be siplayed in a table instead of down the page :)


This is coding I am using to display eggs in a row...

$article_content = $article_content . "<table align='center' >
<tr> <td align='center'>";


// Begin the output of all the adoptables to the user...
$query = "SELECT * FROM " . $prefix . "adoptables";
$result = mysql_query($query);
$num = mysql_numrows($result);


//Loop out code
$i = 0;
while ($i < $num) {
//The adoptable's ID
$aid = @mysql_result($result, $i, "id");
$eggimage = @mysql_result($result, $i, "eggimage");

$article_content = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $article_content . "
<a href='adopt.php?id=" . $aid . "'><img src='" . $eggimage . "' border='0'></a>&nbsp;&nbsp;";


$i++;
}
$article_content = $article_content . " </td></tr></table></div>";
// End the looping out of all adoptables...

Sea

exdiogene
10-08-2009, 02:01 AM
thanks sea. You got any ideas on displaying the second image? I cant get the SQL query to work

Seapyramid
10-08-2009, 06:50 AM
I have some ideas but it would take some rewrites. Personally it's not something I would work on. Makes more sense to me to just add a cheat guide if you really want to ruin the surprise of what's in an egg.

Sea

Bloodrun
10-08-2009, 07:41 AM
I see what you mean bloodrun, but this is what the people i have asked are looking for, they are members of one of my sites. I asked them what they thought of the new site and 1 was this and the other thing was wanting the pets to be siplayed in a table instead of down the page :)


This is coding I am using to display eggs in a row...

$article_content = $article_content . "<table align='center' >
<tr> <td align='center'>";


// Begin the output of all the adoptables to the user...
$query = "SELECT * FROM " . $prefix . "adoptables";
$result = mysql_query($query);
$num = mysql_numrows($result);


//Loop out code
$i = 0;
while ($i < $num) {
//The adoptable's ID
$aid = @mysql_result($result, $i, "id");
$eggimage = @mysql_result($result, $i, "eggimage");

$article_content = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $article_content . "
<a href='adopt.php?id=" . $aid . "'><img src='" . $eggimage . "' border='0'></a>&nbsp;&nbsp;";


$i++;
}
$article_content = $article_content . " </td></tr></table></div>";
// End the looping out of all adoptables...

Sea


Oh, I thought he was asking about how to get them to be side by side. Sorry about that.