MyBB Community Forums

Full Version: Online Manga Viewer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Can someone make me a Manga Viewer similar to OneManga.com's? It'd be nice if it were for MyBB 1.4 and 1.2.13.
From what I can tell, all you need is a bunch of HTML pages with an image on them, and back/forward links...
Yeah. But I need it to fit my theme, have the right tables, Automatically resize the images, and a series page. That's all. Thanks!
Just create a HTML page and use it as a template.

If you want to just have one page, you can make a basic PHP script - again, make the HTML page first.
After you have the HTML page, stick something like the following "PHP tag" in, where you want the image displayed:
<?php
$page = intval($_GET['p']);
echo '<img src="./images/image_'.$page.'.jpg" alt="" />';
?>

And maybe for the pages:
<?php
if($page > 1)
 echo '<a href="viewer.php?p='.($page-1).'" />Previous Page</a>';
?>
<?php
if($page < 100)
 echo '<a href="viewer.php?p='.($page+1).'" />Next Page</a>';
?>

Obviously, you might want to tweak some things in the above.

After that, save the file with a .php extension.
Thanks, but...uh...I kinda wanted something that would've been like I just add a image into the Admin CP and it would automatically sort it our for me. It'd be better if it were a ZIP archive or a folder. Because it's gonna take a looong time to insert ALL the images.
So you want someone else to spend hours coding something for you, so you can save a few minutes?
Just extract your ZIP, to a batch rename (so that it's all numbered), then batch upload through FTP. Can't be much simpler.
Ok. Sorry for being lazy. But could you explain how to do the HTML again?
If you can't write HTML, use a webpage editor, such as FrontPage or Dreamweaver. (free ones exist too)

I seriously recommend learning HTML though - IMO all website administrators should know it - it's a very easy markup language that shouldn't take more than about 15 minutes to get the gist of how it works, plus it's invaluable considering that most web things are based on it.
Sorry for not being clear. I know HTML, but my question is how do I get the HTML to fit my template?
Err, use the same HTML that's in your template??
Pages: 1 2