Page 1 of 1

included php variables problem

Posted: Mon 21. Feb 2005, 09:53
by Juhana
HI

** EDIT // SWITCHED TO IFRAMES :( :x
But still looking solution to real embedding!!!

using 1.2 DEV

I am trying to include a Qdig-gallery script in phpwcms article.

I am using a html content-part with:

{PHP:http://www.j-s-c.net/alppis/qdig2.php}

gallery appears embedded on page and thumbnail links seems to have right url with extra variables:

http://www.j-s-c.net/alppis/index.php?i ... umbs&Qis=M
But page doesn't change.

Script works stand-alone.
http://www.j-s-c.net/alppis/qdig2.php?i ... umbs&Qis=M
( changes in "shepherdsXX.jpg" --> reflects to page links are not working because script is customized to be included.)

Is that a right way to include the script? Should I use "Ext. content "instead?
Would mysterious new "php-variables" content -part help me in this case?

thanks
Juhana

Posted: Mon 21. Feb 2005, 10:04
by Pappnase
hello

please use an iframe that should work :D

Posted: Sun 13. Mar 2005, 20:53
by cyaneo
Maybe the singapore gallery is what you search...

Integration:

1. download singapore
2. install singapore in a subdir (Ex. "singapore")
3. in site structure, create a new structure (Ex. "gallery")
4. create a new article with PLAIN TEXT in "gallery". enter for content: {PHP:singapore/external.php}
5. open singapore.ini
- change index_file_url = "index.php?" to index_file_url = "index.php?gallery&"
- change base_url = "" to base_url = "/"
- change url_gallery = "gallery" to url_gallery = "singapore"

done.

See the result here

Posted: Wed 27. Apr 2005, 20:15
by jlbach
cyaneo wrote: 1. download singapore
2. install singapore in a subdir (Ex. "singapore")
3. in site structure, create a new structure (Ex. "gallery")
4. create a new article with PLAIN TEXT in "gallery". enter for content: {PHP:singapore/external.php}
5. open singapore.ini
- change index_file_url = "index.php?" to index_file_url = "index.php?gallery&"
- change base_url = "" to base_url = "/"
- change url_gallery = "gallery" to url_gallery = "singapore"
Hi Cyaneo, I have tried to follow your instructions with no success.. I imagine that my problem is that I have not phpwcms installed in the root.

phpwcms is in http://www.lestany.net/life
and Singapore gallery in http://www.lestany.net/life/galeria

Here my integration attempt.. http://www.lestany.net/life/index.php?galeria

I don't know exactlly how to modify the singapore.ini to adress everything at his right way... Could you give me a hand, please?

Thanks!

Posted: Wed 27. Apr 2005, 20:51
by jlbach
Well now it works!! :D
I was using "galeria" in both subdir and new structure level..
I have rename one of them, an that's all:

With out your instructions I would not be able to integrate it. So, thank you very much, Cyaneo! :D :D