Author Topic: making a additionally page with folder description  (Read 202782 times)

0 Members and 1 Guest are viewing this topic.

KGF

  • ezCustomer
  • *****
  • Posts: 100
making a additionally page with folder description
« on: August 14, 2014, 03:26:54 am »
Hi there,
I now have a written statement by German law.

1- we must have an Imprint and Disclaimer Site.
2- registration for people over 18 years old.

I made a screenshot for better understanding, ok

I want to use some html code for "gallery folder description" to create an imprint, contact and disclaimer page.

How can I do that?
« Last Edit: August 15, 2014, 05:17:36 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #1 on: August 21, 2014, 01:22:24 pm »
Attached example of making a custom page.
Rename custompage.php to what you need such as contact.php disclamier.php or imprint.php

Then inside it change page title property
Code: [Select]
$context['page_title'] = 'Your Page Title here';

And change the html in the middle
Code: [Select]
Your html Goes here
<b>test</b>


KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #2 on: August 21, 2014, 04:14:42 pm »
ok, where must be uploaded the custompage.php ?
in the root directory ?

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #3 on: August 21, 2014, 04:15:36 pm »
Yes the root directory

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #4 on: August 21, 2014, 04:56:58 pm »
ok, it works, thank you

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #5 on: September 02, 2014, 12:46:56 am »
Hello a question to create "custom pages".
I have created about 60 custom sites in "root" directory.
now it is unclear in the "root" directory.

I want to do all the "custom pages" in a folder with name "pages".

but now my "custom pages" is not displayed,
the browser looks for a index.php page.
the link is ok: ../pages/impressum.php

how can I do that?

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #6 on: September 02, 2014, 04:08:39 pm »
If you using a custom folder to save the pages into you would need to change your code a little bit
In your custom code page change
Code: [Select]
require 'startup.php';
To
Code: [Select]
require '../startup.php';

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #7 on: September 03, 2014, 12:10:26 am »
hello,
I tried also following code:
----------------------------------------------------------------------------------------------------------------------
require './startup.php';
require '../startup.php';
require '../../startup.php';
require '../pages/startup.php';
require '../../pages/startup.php';
-------------------------------------------------------------------------------------------------------

<?php
require '../startup.php';
SetupSite();
$context['page_title'] = 'Service';
SetupSmaryGlobals();
Ezc_template_header();
?>

<b>my text is here </b>

<?php
Ezc_template_footer();
?>
--------------------------------------------------------------------------------------------------------
but my browser shows always a blank white page

http://www.photoplaca.com/pages/Service.php

might need as an index.php page in my "pages" folder?


it is despair, but I do not get it not.
« Last Edit: September 03, 2014, 08:05:55 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #8 on: September 03, 2014, 11:05:22 am »
Open your file find
Code: [Select]
<?php
Add after
Code: [Select]
ini_set("display_errors",1);
Then visit the page again and see if there is an error reason.

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #9 on: September 03, 2014, 02:59:49 pm »
ok, now comes error message:

Warning: require(smarty/Smarty.class.php): failed to open stream: No such file or directory in /customers/a/4/5/photoplaca.com/httpd.www/sources/Framework.php on line 34 Fatal error: require(): Failed opening required 'smarty/Smarty.class.php' (include_path='.:/usr/share/php') in /customers/a/4/5/photoplaca.com/httpd.www/sources/Framework.php on line 34

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #10 on: September 03, 2014, 03:08:00 pm »
Ok copy startup.php to root directory.
Copy framework.php to sources folder

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #11 on: September 03, 2014, 04:55:05 pm »
ok, it will be better
the link goes but see screenshot

http://www.photoplaca.com/pages/Service.php
« Last Edit: September 03, 2014, 04:57:50 pm by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: making a additionally page with folder description
« Reply #12 on: September 03, 2014, 05:17:46 pm »
Open templates/default/global_header.htm
Find
Code: [Select]
<link rel="stylesheet" type="text/css" media="screen" href="templates/default/stylesheets/screen.css" />
<script type="text/javascript" src="templates/default/scripts/scripts.js"></script>
Change to
Code: [Select]
<link rel="stylesheet" type="text/css" media="screen" href="{$ROOTURL}/templates/default/stylesheets/screen.css" />
<script type="text/javascript" src="{$ROOTURL}/templates/default/scripts/scripts.js"></script>

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: making a additionally page with folder description
« Reply #13 on: September 04, 2014, 12:42:23 am »
ok great,
the navigation is ok,
but it does not display pages.

please make a test:
http://www.photoplaca.com/pages/Service.php
http://www.photoplaca.com/pages/Fotografie.php

I think the error comes from framework.php

the name of my template is "photoplaca":
http://www.photoplaca.com/templates/photoplaca/global_header.htm
----------------------------------------------------------------------------------------------
      <link rel="stylesheet" type="text/css" media="screen" href="{$ROOTURL}/templates/photoplaca/stylesheets/screen.css" />
      <script type="text/javascript" src="{$ROOTURL}/templates/photoplaca/scripts/scripts.js"></script>
--------------------------------------------------------------------------------------------------
« Last Edit: September 04, 2014, 03:09:58 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
8268 Views
Last post January 31, 2012, 11:21:09 pm
by Chinaren
4 Replies
7830 Views
Last post October 06, 2014, 04:34:17 pm
by KGF
0 Replies
5832 Views
Last post January 05, 2016, 04:49:22 am
by KGF

© 2024 ezCommunitySuite