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
Chappy wrote:
Does this mean that the urls are the issue that causes javascript to drop-down menus wrong?
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)?
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');
}
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.
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)
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]
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.
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.
tl wrote:
It seems you have two versions of html.
Under admin, it is xxx.html
under modules, it is yyy.htm
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?
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');
}
//ob_start('ob_gzhandler');
//ob_start('absolutize');
ob_start('simplify_urls');
It worked for the modules. I like your idea of removing "m-" and the "." in "+.html"
BTW, your site looks great.
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.
include "simplified_url.php";
39:define('XOOPS_URL', 'http://localhost/');
40:
41:include "simplified_url.php";
42:
43:define('XOOPS_CHECK_PATH', 0);