NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

Post a reply

Write your message and submit
Options
Humanity test

What is five + ten?

Go back

Topic review (newest first)

Twighlight
01-04-2009 20:21:55

no, in fact, look what happened to my layout o.o

i did what u told me

Rage
01-04-2009 19:23:20

Twighlight wrote:

what dint i do right?

T-T

If you have:

Code:

// Start HTML
send_html_headers();
?>
<script type="text/javascript" language="javascript" src="lytebox.js"></script>
<link rel="stylesheet" href="lytebox.css" type="text/css" media="screen" />

Above the <head> tag in your header.php file, it should work.

Did you upload all of the files within the Lytebox zip?

Twighlight
01-04-2009 19:03:03

i cant get this to work.
i put this in the body tag of header

Code:

<script type="text/javascript" language="javascript" src="lytebox.js"></script>
<link rel="stylesheet" href="lytebox.css" type="text/css" media="screen" />

and this into the body lie rage said

Code:

// Print image
if ($adult_block_mode == 0) {
echo <<<EOF
            <a href="$master_image" rel="lytebox"><img src="$thumbnail_image" class="$img_class_type" {$scale_size} alt="Pic #{$outerrow['PIC_ID']}" title="Pic #{$outerrow['PIC_ID']}" /></a><br />

its not working right, see?
http://twighlight.tw.funpic.org/Oekaki/


what dint i do right?

T-T

Demu
12-31-2008 00:59:03

Oh I see what I was doing wrong now. xD Thank you! My users are really enjoying it already. [:

Rage
12-30-2008 23:22:26

Demu wrote:

I'm confused on what to do in index.php. I'd really love to have this feature for my oekakis.

What exactly am I supposed to do in the index.php file for Lytebox to work for me?

Change:

Code:

        // Print image
if ($adult_block_mode == 0) {
echo <<<EOF
            <a href="$master_image"><img src="$thumbnail_image" class="$img_class_type" {$scale_size} alt="Pic #{$outerrow['PIC_ID']}" title="Pic #{$outerrow['PIC_ID']}" /></a><br />

To:

Code:

        // Print image
if ($adult_block_mode == 0) {
echo <<<EOF
            <a href="$master_image" rel="lytebox"><img src="$thumbnail_image" class="$img_class_type" {$scale_size} alt="Pic #{$outerrow['PIC_ID']}" title="Pic #{$outerrow['PIC_ID']}" /></a><br />

It's pretty easy, and a nice feature, everyone loves it big_smile

Demu
12-30-2008 22:58:59

I'm confused on what to do in index.php. I'd really love to have this feature for my oekakis.

What exactly am I supposed to do in the index.php file for Lytebox to work for me?

Rage
11-06-2008 02:42:34

Twighlight wrote:

wait, cam u explain what exactly u have to edit and what to edit it to
as in, before and after?
i'd like to use this

^ That's basically what I was asking above Rainbow tongue This looks like a really cool thing to have, my members would love it. big_smile

I'm too lazy to log in tongue

rainbow
11-05-2008 22:07:47

Waccoon wrote:

You group images by a label.  Here's how Lytebox does it:

Normal images:  <img ... rel="lytebox[normal]" />
Adult images:  <img ... rel="lytebox[adult]" />

Just use the appropriate keyword depending on the picture's adult rating and the user's adult flag, and of course, don't use a "rel" XHTML tag if the user doesn't have the adult flag at all.  The "rel" tag is what tells Lytebox that the image is supposed to be a boxed image.

Thanks! I'll bookmark this forum post and try it out in a couple of months time. wink

Twighlight
11-05-2008 21:45:29

wait, cam u explain what exactly u have to edit and what to edit it to
as in, before and after?
i'd like to use this

Waccoon
11-05-2008 05:00:24

You group images by a label.  Here's how Lytebox does it:

Normal images:  <img ... rel="lytebox[normal]" />
Adult images:  <img ... rel="lytebox[adult]" />

Just use the appropriate keyword depending on the picture's adult rating and the user's adult flag, and of course, don't use a "rel" XHTML tag if the user doesn't have the adult flag at all.  The "rel" tag is what tells Lytebox that the image is supposed to be a boxed image.

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB