< Is there a function for getting the CONTENT author profile link? : How to upload...? >
|
ginkgo100 |
Created: May 25, 2009 02:31 Is there a function for the site URL?As I go about trying to modify a theme I created for general use, I realized that I can't find a function for the generic site URL. Is such a function available? I assume not, since I don't remember seeing a place to enter that info on install, and it's not on the Admin CP. I would like to set things up so a person can click on their header banner or logo and be brought home. I can't use a relative URI because I want this to work from any subfolder. Should I use a BASE tag in the head? The problem is that users would have to edit their theme manually to add their site's URI. Not a huge deal, as it's not a lot to ask and Injader makes it easy, but it would be cool to make this unnecessary.
Tags: None. |
|
ginkgo100 |
1
Created: May 25, 2009 03:01
... On further thought, in re: the BASE tag, it would be equally simple and would have far less potential for bugs to have the user add their domain URI directly to the link in the header-div. Duh.
|
|
Ben |
2
Created: May 25, 2009 09:19
There is a way to do it, but it would be easier with a function. Here's the PHP you'll need:
$strSiteIndex = "http://".SVR_HOST.URL_ROOT; I'll add it to the list of things to include in the next version. |
|
ginkgo100 |
3
Created: May 25, 2009 15:38
Why, that worked like a charm! Thanks!
|
You do not have access to post comments in this area.