Member
Member
seroxatmad   24-10-2012, 11:07
#1

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

Administrator
Administrator
acrylian   24-10-2012, 11:17
#2

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

Member
Member
seroxatmad   24-10-2012, 16:44
#3

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

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

Cheers

John

Administrator
Administrator
acrylian   24-10-2012, 17:10
#4

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.

Member
Member
seroxatmad   24-10-2012, 17:15
#5

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.