singapore: the smallest big galery
home » forum » Templates » Can i include singapore in a php site? How?

You are not logged in.

#1 2011-01-24 22:36:13

NafirKeyh
Member

Can i include singapore in a php site? How?

I would like to include singapore in my site into images section but i couldn't do that. Please help me...

Offline

 

#2 2011-01-25 12:38:01

PrimaFoto
Moderator

Re: Can i include singapore in a php site? How?

If your just wanting to include the site in your sites page you just need to call external.php

<? include("yourdir/external.php") ?>

Then to show one gal you can make a direct link to that gal only that's the simplest way.


A Junior Scientist of the SGAL - Lab
http://sgal-lab.primaveraphoto.com

Offline

 

#3 2011-01-25 16:29:05

NafirKeyh
Member

Re: Can i include singapore in a php site? How?

hat is the address



http://nafirkeyh.0fees.net/image.php



I include it in that way. But when you click, it brings me my index.php page. Why?



In the doc folder it is written that there is a "external template". But i could't find that in the site? I think I need that external template without any css and meta tags...



Please help me...

Offline

 

#4 2011-01-25 17:27:20

DC
Administrator

Re: Can i include singapore in a php site? How?

Hi the reason this is happening is because SGAL is set to default at index.php, however the page you are including it into is called image.php ... so for this to work correctly you must change the page to match what you have named your page to.

This is done in the singapore ini file.
look for this line

index_file_url = "index.php?"
change it to match your page name.

DC


To code or not to code that is the question?

Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php

Offline

 

#5 2011-01-25 20:07:02

NafirKeyh
Member

Re: Can i include singapore in a php site? How?

So what about "external template"

Where can i find that?...

Offline

 

#6 2011-01-25 20:33:21

DC
Administrator

Re: Can i include singapore in a php site? How?

Are you not using it?
The external.php, thats the includer file as thats needed to do an include into a sep page.

It's in the main dir ...

DC


To code or not to code that is the question?

Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php

Offline

 

#7 2011-01-25 21:14:49

NafirKeyh
Member

Re: Can i include singapore in a php site? How?

I use that...

But I am asking for template. Not a script...

Offline

 

#8 2011-01-25 21:41:53

DC
Administrator

Re: Can i include singapore in a php site? How?

Dude you did it correctly almost, but you need to change the page name in the singapore ini as I said originaly so your page works correctly.

DC


To code or not to code that is the question?

Did my response help you out? Consider donating by buying me a slice, Whats this? Read More!
http://www.clickcraft.net/slice.php

Offline

 

#9 2011-01-25 21:56:30

NafirKeyh
Member

Re: Can i include singapore in a php site? How?

I had it done with your help. Thanks again DC. But now need external "TEMPLATE" not script. I did it but i can just include modern teplate. The other ones are problematic. Other teplates causes css breaking. Everyting changes places when i switch teplates.But modern template is okay. I wish i could use the other ones. How can i...

Offline

 

#10 2011-01-25 22:01:35

NafirKeyh
Member

Re: Can i include singapore in a php site? How?

Here it is...

Thank you DC... http://nafirkeyh.0fees.net/image.php

But I wanna use the other teplates. How can i prevent that css breaking...

Offline