BLOG:CMS :: Support Forum

Support Forum for BLOG:CMS

You are not logged in.

#1 03.11.2005 17:24

heddesheimer
newbie...
Registered: 03.11.2005
Posts: 9

FancyURLs does not work on different domain

Hi,
I installed Version 4.0 with the core and the final blog on different domains. This work fine as long as I don't use Fancy URL.

The problem is:
If a permalink is built in function fancyLink() it will just return the URL path without the http://www.domain.com part. This results in duplicating the URL over and over so that you get something like this:

http://www.domain.com/blog2/index.php/i … first-item

where http://www.domain.com/blog2/ ist the path where the blog is installed.

I suggest, instead of return fancyTitle($id,$obj->iurltitle) you just put the domain in front of the returned link which will fix this.

Another problem is:
If I click on a link on the Navigation sidebar, I get links to the domain where the core script is installed instead of the domain where the blog is installed.

I could narrow down the problen in function fancyTitle() where you use $CONV['ItemURL'] which is generally set to the core domain. Using the URL of the blog domain should fix this problem.

Best Regards
Marian

Offline

 

#2 03.11.2005 18:34

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: FancyURLs does not work on different domain

heddesheimer, are you sure you have set $CONF['Self'] correctly in fancyurls.config.php? I am using fancy urls on my own weblog  without any issues.


--= BLOG:CMS developer =--

Offline

 

#3 03.11.2005 19:50

heddesheimer
newbie...
Registered: 03.11.2005
Posts: 9

Re: FancyURLs does not work on different domain

Thanks Radek, that helped to solve the first problem. I did not set up it correctly.

The second problem still persists. If I call the first item via permalink and look at the link to "next article", it still points to the wrong domain. The variable $CONF['ItemURL'] that is used to build the link contains the URL of the core installation.

I'm not sure if the variable should contain the URL of the blog instead. If you say yes, I will see if I have missed something else during installation.

Best Regards
Marian

[Edit] Meanwhile I could narrow the problem to this point:
In the default skin $CONF['ItemURL'] is overwritten with $CONF['IndexURL'] in parse_commentform(). All links that are created after this point, are pointing to the wrong domain.

I think $CONF['IndexURL'] is supposed to contain the URL of the blog domain, so maybe I have missed something in my setup. Maybe with this information you can give me a hint how to find what did wrong.

Last edited by heddesheimer (03.11.2005 20:11)

Offline

 

#4 03.11.2005 21:05

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: FancyURLs does not work on different domain

this is how it is done:

$CONF['ItemURL'] = $CONF['Self'];
$CONF['IndexURL'] = blog domain

What you have found in parse_commentform() is a leftover pending to be deleted


--= BLOG:CMS developer =--

Offline

 

#5 03.11.2005 21:12

heddesheimer
newbie...
Registered: 03.11.2005
Posts: 9

Re: FancyURLs does not work on different domain

Okay, it works fine now when I remove the assignment.

If you are already at it: there is another one in parse_commentpreview()

Thanks for your help

Marian

Offline

 

#6 03.11.2005 21:19

Radek Hulán
Site Admin
From: Prague, Czech Republic
Registered: 17.03.2004
Posts: 2509
Website

Re: FancyURLs does not work on different domain

Thanks as well.

There are several to be deleted in NP_PDF, NP_RSSBlog and print.php as well.


--= BLOG:CMS developer =--

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

TOPlist