Member
Member
slaattnes   2009-10-12, 14:39
#1

How do I get for example `` in a new page (like http://example.com/pages/test)? I put the code in "Codeblocks" but it doesn't seem to prosess the include command. echo ect. works though.

Administrator
Administrator
acrylian   2009-10-12, 14:46
#2

Do you try to incldue the standard 404 page? If why? Its already a page if its own. Besides the syntax is wrong include("404.php").

Member
Member
slaattnes   2009-10-12, 14:57
#3

It was just to test because I want to include something else. But it doesn't work with the right syntax either. I've put `` in Codeblock 1.

Edit: What I really want to do is to use this code `` /ccmail/include.php is in the theme folder.

Administrator
Administrator
acrylian   2009-10-12, 15:16
#4

This can't work as the 404.php page is a full theme page that needs to be called via "page/404" or "index.php?p=404" to work correctly. Besides that it is an error page that does show nothing if there is no error...

Also including complete pages into another one will lead to heavy validation issues...

Try a snippet as the sidebar.php in the zenpage-default theme.

Administrator
Administrator
acrylian   2009-10-12, 15:18
#5

To your edit: You again did not use the brackets. Besides if it is in the theme you can include it using $_zp_themeroot/ variable. (see zenpage-default theme's css calls).

Member
Member
slaattnes   2009-10-12, 15:20
#6

Like this? ``

Administrator
Administrator
acrylian   2009-10-12, 15:30
#7

You don't need the dirname(__FILE__)

Member
Member
slaattnes   2009-10-12, 15:33
#8

Oh, it's for a php script in include.php. `` doesn't work either though.

Administrator
Administrator
acrylian   2009-10-12, 16:26
#9

I don't know what it is you are trying to include so you will have to figure out that yourself, especially since it is not really Zenphoto related.

Member
Member
kagutsuchi   2009-10-12, 17:06
#10

As long as the include is in one of your theme pages, you don't need to include the $_zp_themeroot variable. You should be able to reference it directly from the theme already. Removing that should make it easier to figure out.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.