Jump to content


Photo

Old comic script


  • Please log in to reply
2 replies to this topic

#1 Nami01

Nami01
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 March 2006 - 11:31 PM

Hello,

I'm sorry for being such a newbie. I actually really don't know anything about php almost at all. I had a script that my friend made me back in 2003 to help me with my webcomics and I wanted to use it again. I copied it and pasted it, but found it no longer worked. As I have no way of contacting him anymore, my only hope is to figure out something myself.

This is the basic idea of the script.

<?php
$comicpages = array(
"1_0"=> array(
"piclink"=> "comic/1_0.jpg",
"comments"=> "<div align=center>Yum, Ben.</div>",
"chapter"=> 1,
"page"=> 0,
"new"=> 1
),
);
?>


<?php

if(isset($id))
{



function navigatebar($id, $comicpages)
{
$plusone = $comicpages[$id]['page'] +1;
$minusone = $comicpages[$id]['page'] - 1;



if(isset($comicpages[$comicpages[$id]['chapter'] . "_$plusone"]))
{
?>
| <a href="comic.php?id=<?=($comicpages[$id]['chapter'])?>_<?=$plusone?>"><u><b>&lt;next&lt;</b></u></a>
<?php
}
?>
| reads. right. to. left. |
<?php
if(isset($comicpages[$comicpages[$id]['chapter'] . "_$minusone"]))
{
?>
<a href="comic.php?id=<?=($comicpages[$id]['chapter'])?>_<?=$minusone?>"><u><b>&gt;previous&gt;</b></u></a> |
<?php
}

}
?>



<!-- BODY TEXT START -->
<div align=center>
<p>&nbsp;

<font size="1">
<br>



<? navigatebar($id, $comicpages) ?>


<b><img src="<? echo $comicpages['$id']['piclink']; ?>" width="600" height="928" alt="click. to. return." border="0">

<br><a href="./"><img src="<?=$comicpages[$id]['piclink']?>" width="600" height="845" alt="click. to. return." border="0"></a><br>


<? navigatebar($id, $comicpages) ?>
<BR><BR>

</div>

<? echo $comicpages[$id]['comments']?>

<BR><BR>
<?php
}
?>
</font>






If I place '1_0' in the $id area, the image shows on my website. But the another part of the site that is working properly has it so the address for this page would be
[indent=1]www.mangacandy.com/vntm/comic.php$id=1_0
how can I have it so $id will show the value on the top part of my site?
Thank you in advance for any help that you can offer me!

#2 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 13 March 2006 - 11:38 PM

www.mangacandy.com/vntm/comic.php$id=1_0

should be..

www.mangacandy.com/vntm/comic.php?id=1_0

aside from that, i'll take a look..

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#3 Nami01

Nami01
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 March 2006 - 11:40 PM

[!--quoteo(post=354697:date=Mar 13 2006, 05:38 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 13 2006, 05:38 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
www.mangacandy.com/vntm/comic.php$id=1_0

should be..

www.mangacandy.com/vntm/comic.php?id=1_0

aside from that, i'll take a look..
[/quote]


Oops! Sorry, I meant www.mangacandy.com/vntwm/comic.php?id=1_0

I was typing fast and made two errors already. o_o the script was copy and pasted though, so thats the actual text.

v_v but for some reason it won't work...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users