View Full Version : Best way to place a php include ?
Janet
07-30-2005, 12:49 PM
I have had some specialist programming done for an addon application to go with my article live site. Ideally, I'd like to wrap the article live template around this application so everything is seamless.
I was thinking of creating a "page" and then somewhere in the structure using a PHP include, to pull in the application code. I'm still coming to terms with how everything hangs together, with panel, html forms and templates etc. So I'm seeking some pointers from the knowledgable ones out there, as to the best place to put this include.
Thanks in Advance
Jordie (Interspire Staff)
08-01-2005, 08:17 AM
Hi Janet,
I have created a new include function for ArticleLive and it will be available in the next release.
e.g. you just put %%Include./path/to/your/script.php%% and it will wrap everything around that.
If you have any suggestions for this feature, be sure to let me know!
tariqali
08-01-2005, 11:35 AM
Hi Jordi,
this is great :)
When do you plan to release the new release?
Jordie (Interspire Staff)
08-02-2005, 04:04 AM
Hi Janet,
We are not too sure at the moment, but probably within 3 weeks or so.
tariqali
08-02-2005, 11:38 AM
Hi Janet,
We are not too sure at the moment, but probably within 3 weeks or so.
I was hoping I can get this faster since this is the only thing right now holding me from transferring to ArticleLive.
How do you guys let customer now of new releases besinde checking the forum? is there a newsletter that I can subscribe to so I can be informed of new releases to articlelive?
Jordie (Interspire Staff)
08-02-2005, 11:36 PM
Hi,
If you go to http://www.interspire.com/ you will find the newsletter on the right hand column.
We also announce any updates to our products on our blogs page at http://www.interspire.com/blogs/
If you specifically ask us through a trouble ticket I will be able to send you this new feature. Note: I can only do that with this feature as most other features require multiple files which have been edited with mutliple features, while this one is modified in a single file. Although I can't guarantee it is bug-free.
geoffco
10-08-2005, 04:47 AM
Is it possible to pass variables to scripts that are included in this way?
Was this addon ever released?
I need to include a php script within a created page. Is this possible yet? thanks
Jordie (Interspire Staff)
10-24-2005, 12:40 AM
Hi,
Yes its available in our current version, ArticleLive NX.
Hi,
Yes its available in our current version, ArticleLive NX.
I have recently purchased the recent Article Live NX. I think it might have been you that helped me with my mod_rewrite/htaccess problems :)
I'm not sure how to include php files.
You say below to use this:
%%Include./path/to/your/script.php%%
Can please you tell me where you put this?
Thanks
Jordie (Interspire Staff)
10-27-2005, 06:02 AM
Hi,
You put that into any of your template html files. These can be found via your control panel > templates then in either the .html files in Layout or in Panels. Layout files control the larger basic structure for each page, while the Panels are more specific areas.
chaikin
10-31-2005, 08:41 PM
Does it mean that there is no way to have php include in the old version?
jurgennijhuis
01-22-2006, 06:53 PM
I don't understand the include function. I want to include a link directory. Its URL is /links/index.php from the root of the AL script. I want to have a link in my topmenu that opens the link directory within the site. What should I do where??
Rob Locke
01-24-2006, 08:51 PM
Hi Jordie and the Interspire Team,
Quick question...I am creating an identicall skin to that of my vBulletin and want the collapsible tables to work in ArticleLive. I have no problem linking the respective pages to the vBulletin global Javascript to make these work. However, I want the collapse states to be remembered in a cookie. The vbulletin_global.js script will add the state to a cookie, but it is the global.php file which tells the page to read the cookie when it loads.
Hence, can I just use this %%Include./path/to/your/script.php%% command to point to my vBulletin global.php file in order for the collapsed table states to be recalled correctly? If so, should I basically place the %%Include./path/to/your/script.php%% command on any pages that have collapsible tables?
Of course, to make this work I need to add an "require_once" command in the php files. I am guessing that %%Include./path/to/your/script.php%% actually includes the php IN the article page, so this is probably no good for my needs. If this is the case, which files can I put my "require_once" code in?
I hope this makes some kind of sense.
Thanks for your help,
Rob Locke
01-30-2006, 07:26 PM
Can anyone help?