Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:03:56 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: PHP include/gallery problem.  (Read 794 times)
aimeeish

Offline Offline

Posts: 28


« on: April 27, 2008, 02:41:36 AM »

I dislike the GDPICS gallery as the displaying the text files are very messy and it will not display subfolders alphabetically.

I am using the Single File Page Gallery (http://sye.dk/sfpg/) and trying to implement the gallery within the gallery page.

I put the sfpg.php file inside the pages/ folder. Then I changed the directory to which the gallery is located (home/*****/public_html/tmp/gallery/) , then I included the code it requires me to which is
Code:
<?php sfpg(); ?>

However, since <?php and ?> are already implemented in the CODE module, I did this:
Code:
sfpg();

Won't display at all. Let me know and will need this for future reference as I have other php codes that need to be included within pages, not templates.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: April 27, 2008, 07:29:00 AM »

you need to make WebsiteBaker aware, that this php file is actually there ... so you need a require/require_once/include function call with the path to the script. I would also not put it into the tmp folder, they are only for temporary files. Put it into a subfolder of the mediadirectory.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

aimeeish

Offline Offline

Posts: 28


« Reply #2 on: April 27, 2008, 07:26:46 PM »

I created the tmp folder myself, so it's not technically a real "tmp" folder. I need it though, cause I'm triyng to transfer all my stuff.

Anyhow, can you write the code exactly how it should be put in the CODE module?
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!