Include php function

etemorom

Avatar: etemorom

2007-09-24 15:20

How can i include another php files in Quick.Cms?
I tried in a demo category at Full Description to add teh line "<?php include("file.php"); ?>" but it's not working...

» Quick.Cms v1.x

cgan

Avatar: cgan

2007-09-24 19:50

You use the IFRAME element. For example <iframe src="file.php"></iframe>

cgan

savan

Avatar: savan

2007-09-28 12:39

well, you dont have to use iframe.
you can add your own plugin reffering to your own tpl file which will generate the page.

cgan

Avatar: cgan

2007-10-01 19:30

Savan,
can you give an example of what you mean?

testas

No avatar

2007-12-09 14:55

it will be very good, if someone explaine how to include php without iframes?
Does somebody know?

mirelesotelo

No avatar

2007-12-09 17:13

I am trying the iframe and it doesn't work in the html editing area also..

would be great if was possible to work with the tag include also... is it possíble?

brazilian girl

gkulka

No avatar

2007-12-09 22:48

i use iframes, and it works fine, but I edit tpl file, and paste it there

Greg

merci

No avatar

2007-12-10 08:42

in new version Q.Cms 2.0 it is possible to add php code, but in 1.x the best way is to use iframe.

mirelesotelo

No avatar

2007-12-10 20:23

I am not a programer but I can understand well how it works.. can you tell me "how I can put the iframe or use the include" in the tpl file? I had worked on the container.tpl and the menus pages.. but how to allow an iframe or include?
I want put a message board in a page and a form, both in php... just let me know.. please...

Thank you

brazilian girl

cgan

Avatar: cgan

2007-12-11 08:16

I made it this way. Create a form page with the form elements you want. Name it e.g. myform.php.
Then create a new page in the QCMS and call it e.g. &#8221;Contact form&#8221;. In the Short description field in this QMS page you type code like below. Do not use the WYSIWYG editor for this code! Just plain text.
<iframe id="form1" name="form1" frameborder="no" src="myform.php" style="width:450px;height:350px;border:none;overflow:hidden;"></iframe>

I named the id &#8221;form1&#8221; that means I can use the id to style the iframe element in the css file if I want.
Good Luck!

mirelesotelo

No avatar

2007-12-12 00:17

Hi Cgan

I did as you said.. and it still doesnt work.. I put the code line using the HTML area.. and it doesn't fix there.. when I open the page.. it shows empty, nor the frame area. seems like the HTML is not saving the informations... I got the newest version.. which is your version?

wouldn't be better to try the include of php? By the way I tried the include in the html area.. opening the PHP Tags also, and nothing... =(

brazilian girl

merci

No avatar

2007-12-12 08:20

mirelesotelo - if you have v2.0 you can include php, but you have to make this:
http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_execute_php_code_in_templates

cgan

Avatar: cgan

2007-12-13 11:41

mirelesotelo - You can´t use the WYSIWYG editor. Not even in HTML-mode. The code you type in will disappear by some reason. You'll have to check in settings that WYSWIG editor is set to "No" before you type in the code. Else it will not work.
I use QCMS 2.0

avwebnet

Avatar: avwebnet

2008-01-09 18:08

using "includes" in templates is ok, but I need to use several includes inthe page itself, preferably without having to use the iframe method, because of my dynamic content.

Is there a way to do it? Is the info being pulled into the page being treated as plain text?

I want to plug this in with an www.ecommercetemplates.com solution (this is a christian, non-profit project that I am doing at no charge)

http://www.praylancaster.com/index.php

AV Web Designs

avwebnet

Avatar: avwebnet

2008-01-17 22:07

I guess no one wants to answer this (conflict of interest?).

Anyway, the <iframe> method is what I am having to use to use my shopping cart because the Quick Cart doesn't have the features that I need. Sorry, merci!

However, I am absolutely impressed with Quick.CMS. And I plan on ordering the full-blown version soon.

Nice setup - Easy to Use - Pretty easy to tweak (for being an unknowing ASP/PHP person)

AV Web Designs

Back to top
about us | contact