xoops forums

Forum Index


Board index » All Posts (reynaldo)




reynaldo

Not too shy to talk
Posted on: 2004/3/12 0:11
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#31

Re: FAQ problem (strange URL)

Béla:

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


reynaldo

Not too shy to talk
Posted on: 2004/3/11 13:22
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#32

Re: FAQ problem (strange URL)

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]";



reynaldo

Not too shy to talk
Posted on: 2004/3/11 13:17
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#33

Re: FAQ problem (strange URL)

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 <a href> statements.


reynaldo

Not too shy to talk
Posted on: 2004/3/11 13:13
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#34

Re: FAQ problem (strange URL)

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.




reynaldo

Not too shy to talk
Posted on: 2004/3/11 13:09
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#35

Re: FAQ problem (strange URL)

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>text</a>

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


The same happens with <img> 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.


reynaldo

Not too shy to talk
Posted on: 2004/3/5 11:27
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#36

Re: FAQ problem (strange URL)

Béla:

Quote:
...and don't try to fool me with this "I'm no guru" stuff...

No, I'm serious, I'm not!

Béla, what you want can be easily done but you have to add a rule for each url format. For example, for your URL above, try something like the following (I haven't tested this, it is just an example):

RewriteRule ^/xoops/modules/wfsection/article.php?articleid=([0-9]+) http://www.internetadsales.com/m-wfse ... article+articleid-$1.html [L,R=301]


reynaldo

Not too shy to talk
Posted on: 2004/3/5 9:31
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#37

Real weight for default module

Hi:

I don't know if this has been suggested/asked before, but I think it would be great if you could assign real weight for all modules/blocks appearing at the center of the page.

Let me explain this. Normally,the main page is controlled by the default module, let's say News, but when you add center blocks to this page, they push down the content from News.

For example, you add block "Recent Comments" and "Recent News" as center blocks, the page is seeing like this:
[Recent Comments]
[ Recent News ]
[ NEWS ]

What i'm requesting is that you can also assign a weight value to the default module. That way, you could you the default module content before any blocks, in between, or after, whatever way you would like it.





reynaldo

Not too shy to talk
Posted on: 2004/3/5 9:20
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#38

Re: Could Xoops be this...?

Snow77:

Just do a search for "multiple sites" or "multisites" or "multi-sites", you will find a thread started by me with some interesting ideas.

I'm running XOOPS from multiple websites sharing only users.


reynaldo

Not too shy to talk
Posted on: 2004/3/5 8:50
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#39

Re: FAQ problem (strange URL)

Bela:

I'm glad everything is working excellent for you
I'm having the same results with my sites.
I noticed you mentioned you use XF/WF-Sections, does it works ok with my hack? I haven't tested it as if I remember correctly, it requires header.php file to be replaced with its own version.

About your question with Mod_Rewrite, I'm not a guru either, LOL, and I didn't quite understand your question, but if you meant you are trying to convert your old urls to ShortURLs format using Mod_Rewrite, I can't say it can't be done, but I think it would require lots of rules to be added into the .htaccess file

Or did you say that after the external redirect, my hack stops working?


reynaldo

Not too shy to talk
Posted on: 2004/3/4 15:16
reynaldo
reynaldo (Show more)
Not too shy to talk
Posts: 106
Since: 2004/2/13
#40

Re: FAQ problem (strange URL)

Tl:

If you want to keep robots out from a directory, the safe way is with a robots.txt file as google can index some dynamic urls if your page has high pageranking.

Anyway, I'll look into adding module exclusion as soon as all the big details are done.



TopTop
« 1 2 3 (4) 5 6 7 ... 11 »