141
BelaS
Re: FAQ problem (strange URL)
  • 2004/3/11 11:55

  • BelaS

  • Just popping in

  • Posts: 62

  • Since: 2003/5/26


Hi Karuna,

Did you do that through .htaccess as well? Could you share the code? I'm such a newbie at that file that I couldn't make it work properly.

Thanks,

Béla

142
karuna
Re: FAQ problem (strange URL)
  • 2004/3/11 12:13

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Hi belas

The url direction i said is provided by the domain host.
i didn't change these file.
and if use url direction then http://www.domain.com/abc.abc will not work~~

143
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/11 13:09

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


eikke:

Most of the times, those errors are caused by a template using urls which does not complies with HTML standards.

For example, a common error is using the url like:
<a href=/dir/page.html>texta>

while the correct way to do it is:
<a href="/dir/page.html">texta>


The same happens with statements. You can see if that is the case by checking the original template, or deactivating ShortUrls and viewing page source.

Unfortunately, I don't think there is a solution for this other than editing the template as forcing it into the hack, could break other modules or cause further problems.

144
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/11 13:13

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

BelaS wrote:
Thanks again, Reynaldo. One more question: certain interstitial ad codes on my sites translate the + signs in the hacked URLs into %20, thus breaking the link. Would it damage anything in the way the hack works if I changed the + signs to - signs? And where would I change that?


Béla:
The hack needs the "+" sign to separate the script name from the dirs and the arguments. The way it is coded, it is not possible to change "+" to "-" and I don't think it would be possible in the future neither unless a customized version is written for your site.



145
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/11 13:17

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Bélas:

I think there is more to that than just the link not including "www.".

Read my reply to eikke about templates with incorrect statements.

146
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/11 13:22

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


karuna:

If your default module is other than News, edit line 20 of loadpage.php, the one that reads like this:
//What is your default module? just enter the Dir name, for example, "news" or "newbb" etc.
$su_defaultmodule "[size=medium][b]news[/b][/size]";


There, you have to write the DIR for your default module. If you don't have a default module, just set it to nothing, which means this:
//What is your default module? just enter the Dir name, for example, "news" or "newbb" etc.
$su_defaultmodule "[b][/b]";


147
karuna
Re: FAQ problem (strange URL)
  • 2004/3/11 14:33

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


It's ok now

Thanks~~

148
BelaS
Re: FAQ problem (strange URL)
  • 2004/3/11 14:59

  • BelaS

  • Just popping in

  • Posts: 62

  • Since: 2003/5/26


Quote:

reynaldo wrote:
Bélas:

I think there is more to that than just the link not including "www.".

Read my reply to eikke about templates with incorrect statements.


Hi Reynaldo,

No, I'm pretty sure that's not it. No wonky html in my templates, as far as I can tell. But I just took another look at mainfile.php and realized that I must have changed the "virtual path to xoops" setting to "http://www.internetadsales.com" from "http://internetadsales.com" at the same time I added the hack code, just to add another variable to the mix. That would explain the basic change in behavior.

Now, if I switch the setting back to only
http://internetadsales.com as the "virtual path to xoops" in mainfile.php, XOOPS loads properly on http://internetadsales.com with the hack enabled. At that setting and at the URL http://www.internetadsales.com, XOOPS loads but the News module is not found.

In the converse situation, specifying http://www.internetadsales.com as the virtual path in mainfile.php, everything loads perfectly at that URL but nothing loads at all at http://internetadsales.com - completely blank page.

Things are too chaotic around here at the moment for me to test the four combinations properly (www and no www, each with and without the hack enabled), but I suspect there might be a slim chance the problem has something to do with the way the hack translates the URL for the default start module in the particular case that:

the virtual path to XOOPS is set to http://www.etc.etc

and

a user attempts to access the site at http://etc.etc

for a webserver on which browsing without the www is permitted.

On another site I run, the exact opposite occurs. http://aboutmichaeljackson.com has that URL defined as the virtual path and works fine with the hack. The same URL with www, i.e. http//www.aboutmichaeljackson.com suffers from blank page syndrome.

It's not that big a problem, but it would still be preferable to display a partial load of Xoops, minus the default module, than a blank page. I suppose the simplest workaround would be to add another redirector to .htaccess that would add or strip the www as needed. Anyone know a simple line of code to do that?

Cheers,

Béla

149
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/12 0:11

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Béla:

I'll take a look at this later and try to determine if it is related to the hack.

150
reynaldo
Re: FAQ problem (strange URL)
  • 2004/3/12 0:20

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Bela:

This problem is caused by the hack. I'll take a deeper look at it later and try to find a solution.

Login

Who's Online

179 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits