11
tl
Re: Simplified URLs Hack
  • 2005/1/19 15:17

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


@suin
[...... deleted]

Found my problem, please discard.

12
tl
Re: Simplified URLs Hack
  • 2005/1/19 15:24

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


@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]

13
ajaxbr
Re: Simplified URLs Hack
  • 2005/1/19 18:19

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Thanks, its a very interesting hack and will surely make many of us happy

Regarding
Quote:

sim_suin wrote:
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.


Quote:
©2005 Google
Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

14
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 "-"?

15
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)

16
Chappy
Re: Simplified URLs Hack
  • 2005/1/27 8:11

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


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.

17
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.

18
Chappy
Re: Simplified URLs Hack
  • 2005/1/27 9:18

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


Quote:

sim_suin wrote:
However if you want to use both simplified URLs and newbb2, you can modify URLs which cause some issues in newbb2's source code.


Thank you for your response. Does this mean that the urls are the issue that causes javascript to drop-down menus wrong? I know javascript a great deal less than I know php, which is practically not at all . Are you saying that I would need to use mod_rewrite to rewrite the urls for newbb2 to make it work? Is it possible to disable simplfiedURLs for newBB2 (per mod)?

19
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

20
tl
Re: Simplified URLs Hack
  • 2005/1/27 12:28

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


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


Not difficult at all, I just replaced all "+"s with "-"s in the out array then modified loadpage.php file accordingly.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

63 user(s) are online (34 user(s) are browsing Support Forums)


Members: 0


Guests: 63


more...

Donat-O-Meter

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

Latest GitHub Commits