PDA

View Full Version : More Organized Adoptables Page


LilPixie
02-17-2009, 11:39 AM
I waned to make something like this for my adoptables page http://www.arvyre.com/pets/adopt.html

I went to edit the "index.php" file in my FTP file manager so I could copypasta in a new file and edit for this type of page), but the content of the article is (article_content) instead of the actual text.

If the Arvyre person is here (or anyone else that can help, of course ;P), how did you do it? I know how to put in the HTML for he page, I just don't know the coding for the page.

Am I making sense?

trollis76
02-17-2009, 11:59 AM
Where did you find the Index.php? Please tell me!
I only find the Index.htm... :(

LilPixie
02-17-2009, 12:11 PM
>_> it's in the place you installed the script on

trollis76
02-17-2009, 12:14 PM
Oh, I'll install it again to make sure I got it then...
<_<

LilPixie
02-17-2009, 12:17 PM
LOL
It should be there xD

BMR777
02-17-2009, 03:48 PM
Well, there's two ways that will affect how adoptables are shown. One way they are affected is by the template you use on your site. This can change how they are displayed.

Also, in adopt.php there is code that shows how they are arranged on the adopt page. Below is the code that shows adoptables to logged in members, but there is a second set of code that is similar for guests...

$article_content=$article_content."<p align='center'><b><a href='adopt.php?aID=".$aID."'>".$name.":</a></b></p>
<p align='center'><a href='adopt.php?aID=".$aID."'><img src='".$imageurl."' border='0'></a> </p>
<p align='center'><a href='adopt.php?aID=".$aID."'>Adopt ".$name."</a></p>";

As you can see, there is HTML code in there along with variable names. (The things with dollar signs in front are variables and change based on the adoptable we are showing.)

You can edit that as well to change the look.

Hope it helps,
Brandon

LilPixie
02-17-2009, 07:37 PM
Ohhhh
Okay I will try it ^^