1
sim_suin
Simplified URLs Hack 1.3 Released
  • 2005/2/16 4:14

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Simplified URLs version 1.3 was released.

Added feature:
- become free to stop simplifying URLs at a given module.

Download:
http://www.suin.jp/mydownloads+visit.cid+3+lid+9.htm

thank you

suin



2
sim_suin
Re: Korean language pack for XOOPS 2.0.x Available!
  • 2005/1/29 1:06

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


It's nice work for me.
I have waited for Korean language pack for long.
Thanks, wanikoo.



3
sim_suin
Re: Simplified URLs Hack
  • 2005/1/27 10:45

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

Chappy wrote:
Does this mean that the urls are the issue that causes javascript to drop-down menus wrong?

Yes, it does. The simplified URLs' directory is different from the real directory. If some URLs are relative path, they will not locate right path.
Quote:
Are you saying that I would need to use mod_rewrite to rewrite the urls for newbb2 to make it work?
I mean that you need to edit php files in newbb2 to fix the relative URLs. Quote:
Is it possible to disable simplfiedURLs for newBB2 (per mod)?
Yes. Please modify 'simplified_url.php' like this:
if(  ( !preg_match("//modules/([^/]*)/admin//"$_SERVER['SCRIPT_NAME']) ) 
  && ( !
preg_match("//modules/system//"$_SERVER['SCRIPT_NAME']) )
[
color=ff0000]  && ( !preg_match("//modules/newbb//"$_SERVER['SCRIPT_NAME']) )[/color]
  && ( !
preg_match("/admin.php/"$_SERVER['SCRIPT_NAME']) )  ) {
    
//ob_start('ob_gzhandler');
    //ob_start('absolutize');
    
ob_start('simplify_urls');
}


I'm sorry for my clumsy English



4
sim_suin
Re: Simplified URLs Hack
  • 2005/1/27 9:00

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

Chappy wrote:
Sim_suin

I really like the work that you and Reynaldo have done to try and implement this hack. I tried to install it yesterday on one of my sites and had problems with the javascript on the forums newbb2.01. I reported it here and also on xoops-tips. Is there any workaround for this issue? I'd like to try to use this as I have been sold for some time on the value of simpler urls. I searched for a post on the javascript issue with this hack but didn't see anything specific. tl indicated that it was an issue, as well. Any info would be appreciated.


URLs in JavaScript is one of the problems which bothers me.
As yet, I do not hit on the available workaround.
I do not use newbb2, because it is a slow mover and complicate for me, so I cannot check the semantics.
(You permitting I would like to recommend newbb1..^-^;)
However if you want to use both simplified URLs and newbb2, you can modify URLs which cause some issues in newbb2's source code.



5
sim_suin
Re: Simplified URLs Hack
  • 2005/1/27 7:54

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Some men wrote about the linkage between Google and a dynamic URL.
Relating to this, I add a postscript.
If you read the follow text, you will know Google does not like to crawl dynamic URLs.

Quote:
Your pages are dynamically generated. We are able to index dynamically generated pages. However, because our web crawler can easily overwhelm and crash sites serving dynamic content, we limit the amount of dynamic pages we index.
(Sorce:http://www.google.com/intl/en/webmasters/2.html)



6
sim_suin
Re: Simplified URLs Hack
  • 2005/1/27 7:31

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

tl wrote:
@suin
Would it be feasible to convert all the "+" in the url into "-"?

xxx-yyy-xxx.htm looks nicer than xxx+yyy+zzz.htm

[edit]managed to change the format, thanks. [/edit]

I am sorry . I could not help you.
Wasn't it difficult to change "+" into "-"?



7
sim_suin
Re: Simplified URLs Hack
  • 2005/1/19 9:24

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

Mithrandir wrote:
Quote:
Have you visited Google directory,Amazon.com and Yahoo!?
Why do you think these famous sites convert URLs?

My main guess is that it looks nicer.

That is a interesting answer.
I wish Xoops's URLs would be also nicer like Google Directory.(>_<+)



8
sim_suin
Re: Simplified URLs Hack
  • 2005/1/19 9:02

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

Herko Coomans wrote:
Quote:

sim_suin wrote:
Search engines like Google do not crawl the URLs which contain parameters, like “…*.php?abc=1&xyz=2….”. In spite of this truth, almost all of URLs in XOOPS include parameters.


This has been discussed here before, but this fact is a myth.

That is partly right. Actually, Google index the URLs which have a few parameters. As Google is intelligent, it can do so. But this hack is not only for Google.

Have you visited Google directory,Amazon.com and Yahoo!?
Why do you think these famous sites convert URLs?
I do not know a correct answer because I am not intersted in SEO, but these sites know the answer.



9
sim_suin
Re: Simplified URLs Hack
  • 2005/1/19 3:15

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


Quote:

tl wrote:
It seems you have two versions of html.

Under admin, it is xxx.html
under modules, it is yyy.htm

The difference between “htm” and “html” has a clear meaning.
Under the root directory of Xoops, “html” is assigned to the URL.
Under modules’ directory, “htm” is assigned.

For example,
http://xoops-site/register.php changes into
http://xoops-site/register.html
http://xoops-site/modules/news/index.php changes into
http://xoops-site/news+index.htm
Of course http://xoops-site/admin.php changes into
http://xoops-site/admin.html

This hack distinguishes between root directory and modules directory with those extensions.
Quote:

It does not work well if you were to navigate through module admin and want to go back to system admin. The hack would transform systme admin to "system-admin.htm" which does not work under your hack. Only system-admin.html would work. Any reasons of using two extensions?

This hack does not convert the URLs of admin pages.
There are two reasons.
First reason is that clawlers do not clawl there. You need not convert URLs at such pages.
Secound reason is that if you had errors there, you could not manage your site or you would have to remove this hack.
This hack does not work there to manage the contents safely.

But if you want to let it work, please change "simplified_url.php" like follows
Change
if(  ( !preg_match("//modules/([^/]*)/admin//"$_SERVER['SCRIPT_NAME']) ) 
  && ( !
preg_match("//modules/system//"$_SERVER['SCRIPT_NAME']) )
  && ( !
preg_match("/admin.php/"$_SERVER['SCRIPT_NAME']) )  ) {
    
//ob_start('ob_gzhandler');
    //ob_start('absolutize');
    
ob_start('simplify_urls');
}

into
//ob_start('ob_gzhandler');
    //ob_start('absolutize');
    
ob_start('simplify_urls');


Quote:

It worked for the modules. I like your idea of removing "m-" and the "." in "+.html"
BTW, your site looks great.

thank you



10
sim_suin
Simplified URLs Hack
  • 2005/1/18 3:59

  • sim_suin

  • Just popping in

  • Posts: 10

  • Since: 2005/1/13


This hack Simplified URLs ,which is based on ShotURLs released by reynaldo, converts XOOPS URLs into shorter and static ones that can be indexed by search engines.

Search engines like Google do not crawl the URLs which contain parameters, like “…*.php?abc=1&xyz=2….”. In spite of this truth, almost all of URLs in XOOPS include parameters. This hack solves such a problem at once by converting all dynamic URLs into static ones.
Quote:

Quote reynaldo's words;
I've found other hacks that do the same but I didn't like the way the worked because I haven't had good results with urls within deep directorys like:
http://www.domain.com/modules/news/article/1/arg1/arg2
In my experience, some Search Engines (Google for example) didn't like to crawl pages so "deep" within the site.

For this reason, this hack gives you shallow URLs. For example ;

[Default] http://xoops_site/modules/news/article.php?storyid=1
[Converted] http://xoops_site/news+article.storyid+1.htm

[Default] http://xoops_site/modules/userinfo.php?uid=1
[Converted] http://xoops_site/userinfo.uid+1.html

I checked this hack in Xoops2.0.9.X and 2.0.6.
This probably runs in the other versions.
I also checked more than 30 modules so I think it is available for most of the modules. Yet errors must exist in this hack. When you find some bugs or errors, please let me know.

Finally I'm sorry for my poor English and I appreciate reynaldo who developed ShortURLs.

You can download HERE >>> Simplified URLs 1.1

How to Install
1) Modify your loadpages.php.
Set your start module's dir name at line 33.
If you don't set a start module, please set it blank like: $start_module = "";
Set the position of "loadpages.php" at line 38.

2) Upload this two files to your XOOPS root dir:
- loadpages.php
- simplified_url.php

3) Modify your .htaccess file, the one you have in your XOOPS root dir (if any)
and add the contents of the included .htaccess file. If you don't have one, just upload the one I provided.

4) In the XOOPS root dir, there is a file named mainfile.php
Open it and add the following line just after the disclaimer (line 41 for
Xoops 2.09):
include "simplified_url.php";

It must be put under "XOOPS_URL"
ex :
39:define('XOOPS_URL''http://localhost/');
40:
41:include "simplified_url.php";
42:
43:define('XOOPS_CHECK_PATH'0);

5) Save mainfile.php and upload it to your server.




TopTop



Login

Username:
Password:

Lost Password? Register now!

Who's Online

68 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 68


more...

Donat-O-Meter

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

Latest GitHub Commits