1

Topic: My gallery

Again sorry, im trying to learn php best as I can by myself.

Ok, I have that miniportal thing installed on my board.  I would like to have another page but in a different directory.

My forums main directory is like this

http://mywebsite.com/forums

now I want to have this file placed in a part like this:

http://mywebsite.com/forums/pictures

Whats wierd is I got it to load all my info, but its not loading the gfx files. (like the css styles)

Tell me what I did wronge on my code please:

<?php
 
define('PUN_ROOT', '../');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Misc Pictures of August 9, 2006';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
?>
        <div class="block">
            
  <h2><span>The Gallery</span></h2>
            <div class="box">
                <div class="inbox">
                    
      <p> <strong><font color="#FF0000"><a href="http://www.mywebsite.com/forums/pictures/miscpics.php">Misc 
        Pictures of Today</a></font></strong></p>
      </div>
            </div>
        </div>
<?php
 
require PUN_ROOT.'footer.php';

Here is what my page looks like.

http://img60.imageshack.us/img60/3159/wtfci4.png

Re: My gallery

header.php isn't looking in the right spot?

<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />

3 (edited by cows 2006-08-10 03:47)

Re: My gallery

Actually,

I noticed, when I click on my links on the left side now, all the links are like this now.

http://www.mywebsite.com/forums/pictures/index.php
http://www.mywebsite.com/forums/pictures/search.php
ect.

What is causing this?

and the header.php file is working right, everything works except for the stuff in my pictures directory.

Re: My gallery

<a href="http://www.mywebsite.com/forums/pictures/miscpics.php">Misc
        Pictures of Today</a>

that is the issue...lol..
what gallery script are you trying to use?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

5

Re: My gallery

grrr...  You guys dont get what im doing tongue

I followed this tutorial:

http://wiki.punres.org/Miniportal   (im doing the  "New page template" section)

Now I am making another page. Instead of having blah.php in my forum's root directory I put it into another folder in my root directory called pictures.

So instead of going to: http://www.mywebsite.com/forums/index.php  You would have to go to http://www.mywebsite.com/forums/pictures/index.php to see my "New Page".


Quaker

This code:

<a href="http://www.mywebsite.com/forums/pictures/miscpics.php">Misc
        Pictures of Today</a>

is what is being put on the actual page itself, that has nothing to do with the settings....

The thing is, is that I have this page away from the root directory so its not getting all the info correctly, how do I make it so it dosnt look in the pictures directory, it goes back to my root directory (http://www.mywebsite.com/forums instead of http://www.mywebsite.com/forums/pictures/)

do you get what I mean now?

Cows

Re: My gallery

ok, i c how u didnt say you moved the file in another folder?
lmao..
you have to define the root ,header,common and parser.php files

<?php
 
define('PUN_ROOT', '../');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'../include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Misc Pictures of August 9, 2006';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'../header.php';
require PUN_ROOT.'../include/parser.php';
 
?>

or simple go get my lightbox gallery script..hahaha
http://www.punres.org/viewtopic.php?pid=8387#p8387

there only a few places u need to change if you dont want the defined gallery folder..

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: My gallery

cows wrote:

Actually,

I noticed, when I click on my links on the left side now, all the links are like this now.

http://www.mywebsite.com/forums/pictures/index.php
http://www.mywebsite.com/forums/pictures/search.php
ect.

What is causing this?

and the header.php file is working right, everything works except for the stuff in my pictures directory.

The reason of this is that all those links aren't relative to PUN_ROOT (as they should be). With this, it's impossible to have a fully functional page outside of your forum root wink

Re: My gallery

thanks elb, for better explaining it..hahaha...:P

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

9 (edited by cows 2006-08-10 14:29)

Re: My gallery

well, what do I do now?  I need to be able to customise each individule page, so I dont want to use a gallery mod, because I cant fully customise everything.

10

Re: My gallery

leave the gallery page in the main folder but link the images to the image folder.....

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

11

Re: My gallery

that why i made the light box gallery script so that people could mod it anyway they want. and it is very easy to change image folders
so u could have pic of the day pic of the month
etc.

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

12

Re: My gallery

quaker, do you have a demo of your gallery?

13

Re: My gallery

http://meshamodel.com/gallery.php
and i did a photographers site for him
http://7dphotography.com i integrated punbb to his site
is a punbb forum with light box
http://nalan.org/lbgallery.php

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

14

Re: My gallery

thats defently what im not looking for tongue

thanks for helping anyways.

15

Re: My gallery

get the litebox version 1.1 it is faster loading and it got a admin mod for uploading..

thanks...
Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!