1
Xavi_R
Standardising URL formats - Help required
  • 2009/4/26 10:43

  • Xavi_R

  • Just popping in

  • Posts: 8

  • Since: 2008/3/20


Unfortunately my Domain Name Provider's web forwarding service is restrictive to say the least and I have found that the only way to get around this is to use a dynamic DNS service to help with my website redirection to allow me to host subdomains.

I then found I also have a problem with the XOOPS 2.3.3 CMS. The domain names I have used are fictitious as I still want the sites to remain priate until I have got them up and running. The setup is as follows:
Main Domain Name: http://paul.tandt.co.uk
Dynamc DNS Name: http://my.dns.pointer.org

Due to the restrictions on my Main Domain redirection. something like "http://paul.tandt.co.uk/themes/default/icons/favicon.ico" does not work however "http://my.dns.pointer.org/include/xoops.js" does work.

The result is that the opening page of the website and the home page once signed in have got little/no formatting although the Admin pages work fine. I have taken an extract from the sources of the opening page and the Admin page.

Extract from Opening Page



















Extract from Administration Menu











Paul





 « Home Page

 | Control Panel Home
 | XOOPS »


I have looked at the theme page and taken an extract of this:







What I would like to know is how can I change things like xoAppUrl, xoImgUrl and any other similar variables to use the value of XOOPS_URL set in the mainfile.config

Any help would be appreciated

Xavi

2
Xavi_R
Re: Standardising URL formats - Help required
  • 2009/4/26 10:46

  • Xavi_R

  • Just popping in

  • Posts: 8

  • Since: 2008/3/20


Oh! Before anyone tells me to change my DNS provider, I am trying to avoid that as much as I can for personal reasons.

3
trabis
Re: Standardising URL formats - Help required
  • 2009/4/26 11:01

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


File you're looking is class/smarty/xoops_plugins/compiler.xoAppUrl.php which has a dynamic way to find the url

But, you can replace <{xoAppUrl backend.php}> with <{$xoops_url}>/backend.php

With $xoops_url you are sure to use the url defined in mainfile.


4
Xavi_R
Re: Standardising URL formats - Help required
  • 2009/4/28 16:38

  • Xavi_R

  • Just popping in

  • Posts: 8

  • Since: 2008/3/20


Thanks very much for your input it has made my life alot easier. Saying that, I have had to start learning about PHP debugging - a completely new learning curve for me.

Xavi

Login

Who's Online

445 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 445


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits