PDA

View Full Version : Add more pages...???


Fred
04-05-2006, 05:19 PM
Sorry i now this sounds stuppid but i am trying to add more pages where i am trying to ad the footer and the header
but it all gets mesd up any one now where i can get more info or help

example i have my directory on {url no longer in service}
but i would like to have a page cald {url no longer in service} (for ex)
wich has the same header and footer but i can change the content of it

please help


:)

Neticus
04-05-2006, 05:45 PM
Example: creating an 'About Us' page

1. Create a file called about.tpl place in templates folder where main.tpl is etc

about.tpl to contain:

Content visible to registered users only.


2. Create a file called about.php, place in root where index.php is etc.

about.php to contain:

Content visible to registered users only.

Notice about.php fetches about.tpl (at the bottom)


3. Call the new page up by placing destination link wherever you want to place it, like this:

Content visible to registered users only.


You can use this template process for any other new pages you wish to create.


Net.

Fred
04-05-2006, 07:28 PM
So if i want to put this in diffrent folders
for ex i want to put the about page in a folder cald about what do i do then?

Fred
04-05-2006, 09:35 PM
Content visible to registered users only.


i tried but all i got is this...

Warning: Smarty error: unable to read resource: "about.tpl" in /home/busy/public_html/libs/smarty/Smarty.class.php on line 1088

please help :roll: :roll: :roll:

anon
04-05-2006, 09:46 PM
Content visible to registered users only.

you put the about.tpl into the templates folder?

Fred
04-05-2006, 09:51 PM
thanks :)
my problem is that i am trying to greate about 200 diffrent pages so i would like to have them in a sepprate folder is this possible

???

Fred
04-06-2006, 01:26 PM
Anyone???

css59
04-06-2006, 04:06 PM
I don't see why not. Just make a folder and do the steps posted above. I think it will work

Fred
04-06-2006, 04:21 PM
Content visible to registered users only.

Yes but then i need to put the about.tpl in the template folder
i would like to put the about.tpl and the about.php in the about folder
and then have a folder for exampel2 with exampel2.tpl and exampel2.php
is this possible?
Cheers...


Fred

Optimit
04-20-2006, 12:09 AM
I have not tried this, but I would imagine it should work.

Just put your folders in the templates folder. Then in the code for the php file in the root, change the fetch to look like I have it.

Content visible to registered users only.

Steven Myers
05-10-2006, 04:48 AM
This worked like a charm, I just added a page and loaded it up and works flawlessly :)

Thanks guys :)

ewwharhar
05-14-2006, 08:13 PM
EDIT:// nvm, fixed

devilishqueen
07-21-2006, 12:54 PM
HELP!!!!!!!!!!
Fatal error: Smarty error: unable to write to $compile_dir '/home/httpd/vhosts/808.com/httpdocs/ld/temp/templates'. Be sure $compile_dir is writable by the web server user. in /home/httpd/vhosts/808.com/httpdocs/ld/libs/smarty/Smarty.class.php on line 1088

devilishqueen
07-21-2006, 12:57 PM
Why Did I Get That? I Changed The Codes Like What's Instructed

Neticus
07-21-2006, 01:05 PM
@devilishqueen

Try deleting the template files from the /temp/templates folder. It's ok you can do this.

devilishqueen
07-21-2006, 01:16 PM
{url no longer in service}

can anyone help me how to get back to my directory wityhout that error message.. i tried to undo the changes and upload the files back.. but still the samne error..

devilishqueen
07-21-2006, 01:19 PM
@neticus

are u sure? sorry..im just worried now.. :(

Neticus
07-21-2006, 01:20 PM
Have you done this in the INSTALL.txt:

Upload the files in the archive to your host.
Change permissions on the following file and four folders to 777
include/config.php
temp/
temp/adodb
temp/cache
temp/templates
If the folders do not exist please create them.

devilishqueen
07-21-2006, 01:20 PM
Fatal error: Smarty error: unable to write to $compile_dir '/home/httpd/vhosts/808.com/httpdocs/ld/temp/templates'. Be sure $compile_dir is writable by the web server user. in /home/httpd/vhosts/808.com/httpdocs/ld/libs/smarty/Smarty.class.php on line 1088

i still got the same error message

devilishqueen
07-21-2006, 01:23 PM
ok.. i just changed the permission on the four folders.. so what should i do next?

i just need to get the dir back.. without the error messages... :(

devilishqueen
07-21-2006, 01:28 PM
@Neticus

I dont know which one of those u instructed me worked.. but biggie thanks..i dont know how to thank u enough.. :)

I got the dir back working now..

without the changes i made that is..

thank you! thank you!!

so.. can i add changes now again?

Neticus
07-21-2006, 01:33 PM
Glad it worked out :)

Yes, you can attempt the changes again. If you get the same error then try clearing your temp/templates folder again.

jojomart
10-20-2006, 06:42 PM
With regard to the code below, I created a page for submission guidelines, and I had a problem where the name of the directory and link was just showing up as SITE NAME, and there was no title for the page next to it, but fixed it like this:

Instead of this code:

$path[] = array ('ID' => '0', 'TITLE' => _L('SITE_NAME'), 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' => '');
$path[] = array ('ID' => '0', 'TITLE' => _L('About'), 'TITLE_URL' => '', 'DESCRIPTION' => _L('About'));


I used this code:


$path[] = array ('ID' => '0', 'TITLE' => _L(SITE_NAME), 'TITLE_URL' => DOC_ROOT, 'DESCRIPTION' => SITE_DESC);
$path[] = array ('ID' => '0', 'TITLE' => _L('Submission'), 'TITLE_URL' => '', 'DESCRIPTION' => _L('Submission'));

Then there was no problem showing the site name and page.

tldir.com
02-02-2007, 08:59 PM
Anyone got this to work in a sub-folder?

I am just getting the error: No template(s) available!

naboo
06-24-2007, 03:37 PM
This is handy, i just used it to create an About Us page for one of my directories, im sure i can find a number of uses for it, thanks loads, its really helpful.

listfree
10-28-2007, 03:44 AM
Content visible to registered users only.

I'm having the same problem in creating an 'about us' page and an 'articles' page.
This code is not in my topbar.tpl file, so I was just wondering where exactly I might find it?

Cheers,
Jane :)

listfree
10-28-2007, 04:39 AM
D'oh!

Just saw it...lol

Thanks anyway guys!

Cheers,
Jane :p

hazardouspunch
01-18-2008, 01:07 PM
just copy the contact us page, edit it and copy the contact us template and edit it too.I made an advertisement page doing it.Check my directory: Panc.biz

leme
03-10-2008, 07:44 AM
I just stumbled about this page in the forum. But first I looked everythere else on the page. Perhaps it could be useful to make an article out of this thread and put it into the knowledge base??

James
03-10-2008, 07:58 AM
With version 3.3 this become moot.