ZenphotoCMS Forum
Problems with URL generation. - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Problems with URL generation. (/thread-10533.html)



Problems with URL generation. - seroxatmad - 2012-10-24

Hi
I am currently developing a plugin which is working fine apart from this simple problem:

Using data-href="http://www.mydomain.co.uk"
which works fine but I am trying to get the 'my domian' to be automatic also - I have tried using WEBPATH but I am not sure if this is the correct way or my PHP programming isn't upto much.

Cheers

John




Problems with URL generation. - acrylian - 2012-10-24

Generally you don't need the domain as a browser autotically adds it. but using WEBPAT would be the right way.




Problems with URL generation. - seroxatmad - 2012-10-24

Its a facebook "like" plugin (even though i dont use it my self)

I have got this to work fine data-href="

Cheers

John




Problems with URL generation. - acrylian - 2012-10-24

There is also a FULLWEBPATH and a SERVERPATH constant. But WEBPATH should be enough actually.

The getMainSiteURL() refers to the url you have to set on the backend yourself manually and is meant to be used if your site users Zenphoto only for the gallery part for example.




Problems with URL generation. - seroxatmad - 2012-10-24

Hi

Thanks for the info.

I will have a play about and send you a link to the plugin to see what people think before asking you to add it to your site.

Regards

John