Jump to content

Old comic script


Nami01

Recommended Posts

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]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!
Link to comment
Share on other sites

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

should be..

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

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...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.