, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Previous Page Next Page

User Help > General Support Requests > Script Include Syntax (Go To Message)
Wolf
 
Thank youNovember 21, 2007 @ 3:13pm
Thanks David!
User Help > Code Snippets > Upcoming Calendar Events in a Page (Go To Message)
DCSun
 
November 21, 2007 @ 2:56pm
Admin Note:
Support request concerning the syntax for including scripts in a page has been moved here: http://www.flexcms.com/index.php/forum/6/296.html.

Please open a new thread in the General Support Requests board for future support requests.


Thanks!
User Help > General Support Requests > Stay logged in across browser sessions (Go To Message)
DCSun
 
November 21, 2007 @ 2:35pm
Wolf,

If you're concerned about people using one instead of the other, you can also tweak your site's DNS settings to redirect users to the www. when they enter the domain without it. You'd have to talk to your hosting company about that, though, since it's not really FlexCMS related and depends on the exact setup of the server.


David
User Help > General Support Requests > Script Include Syntax (Go To Message)
DCSun
 
November 21, 2007 @ 2:28pm
Wolf,

There isn't any easy way to access a FlexCMS page from within another page. And yes, they're stored in the database -- the core-Pages table to be exact.

If you really wanted to do it that way, you could add "exit();" at the bottom of the page you're including (which will stop the blocks and template from being added to it), and then include it with the full url -- "include_once('http://www.yoursite.com/index.php/pages/pagename');".

Ideally you'd create a .php file in or below your "public_html" folder, and then include it in a page that way. I like to make a "scripts" folder to keep them all organized, and then the syntax becomes "include_once('./scripts/yourscript.php');"

And you could also just paste that block of code directly into the page you want it to appear in.


David
User Help > General Support Requests > Script Include Syntax (Go To Message)
Wolf
 
ConruzuledNovember 20, 2007 @ 11:41pm
Hey Otter,

I think I'm confused and maybe misinterpreting the original directions.

When it was said, "save this snippet as its own file and then use a php include statement" I saved the code as a Flex page, not a regular filesystem file.

My include statement can't seem to find the flex page (and using cpanel, I can't locate it either - so I'm thinking it's in the database, right?)

If it is in the database, can I include it from there?

Thanks!
Wolf
User Help > General Support Requests > Stay logged in across browser sessions (Go To Message)
Wolf
 
ThanksNovember 20, 2007 @ 8:57pm
Hi David,

Thanks for your speedy reply!

I'm thinking in terms of users, who someimtes might use "www" and other times not -- they may think they are not still logged in.

Flex rocks!

Cheers,
Wolf
User Help > General Support Requests > Script Include Syntax (Go To Message)
Wolf
 
Page locationNovember 20, 2007 @ 8:53pm
Hi Otter,

Thanks for the speedy reply. When I create a page in Flex, to use as an include page... is the page location the root directory (i.e. public_html)?

Thanks,
Wolf
User Help > General Support Requests > Script Include Syntax (Go To Message)
otter
 
November 20, 2007 @ 6:10pm
Hey Wolf,

An include goes like this:


Code

include_once('scriptlocation');


Make sure you check the Enable PHP box as well.

If you want to add text above or below that include, simply use the following:


Code

?> your text here <?

include_once('scriptlocation');



Otter and Out!
User Help > General Support Requests > Script Include Syntax (Go To Message)
Wolf
 
Syntax when "including"November 20, 2007 @ 5:39pm
What's the sytax for using it as an "include" on a page?

Thank you!
User Help > General Support Requests > Stay logged in across browser sessions (Go To Message)
DCSun
 
November 20, 2007 @ 1:23pm
Yes, I believe that would work if you need to make that change for your site.

The other thing that's worth noting, and may solve your problem, is that although the initial page you hit shows you as not being logged in, if you click on any link on that page you'll return to the site's main URL (with the www.), which will have you logged in again.


David

Previous Page Next Page





Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.09073 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS