From: Eloi G. <el...@re...> - 2004-11-05 19:07:07
|
Hey all! I just got back off the campaign trail, so it'll take me a little while to get back up to speed... Unless I'm missing some background that happened over IRC, it looks like we're trying to re-invent the wheel here. All these ideas I've seen in the past few days were already discussed and analyzed almost 2 years ago in these same discussion lists when I was developing the mod_rewrite hack. These same theories and various versions of testcode were in turn based on ideas gleaned from discussions on the boards of various php-nuke variants going back years before that. The following quotes are from different messages in this thread. Sorry if it's kind'a confusing. >> The site claims: "Because doing mod_rewrite on sites with a lot of pages takes up a large amount of resources.<< That's if you're assigning a different name for each page. We don't have to worry about that with phpws. >> The moduleLink and secureLink functions can have a switch to deliver the links in this format or not automatically.<< The Hack contains a switch in Core.php. Just set "MOD_REWRITE_ENABLED" on line 11. >>Even "pagemaster" is a bit of an odd name. I"d like to see http://www.site.com/page4 << How about http://www.site.com/page4.html <http://www.site.com/page4> ? That's the URL that the Hack currently recognizes. The "html" extension used in the created links is there to make sure that *every* SE is fooled into thinking that this is a static site. >> That"s where to put it although not everybody uses moduleLink. Just a matter of getting people to change.<< Once mod_rewrite becomes part of the core, they'll change. >> One other thing that might be nice is some virtual links.<< mhnoyes has been asking for this for a while. It's the basic idea that Wikis work off of. I've explored doing it with Article Manager, but it really should be done as a core class. . >> I"d perhaps suggest that if we"re to create a function to create the short urls, if someone wants to do it differently, they could replace the function themselves anyway. << Again, it's already been done. The only changes that we'll want to make for 0.94 is to change the delimiter to "/". If you look back at the old discussions, you'll see that the only reason the mod_rewrite hack uses "~" as a delimiter instead of "/" is because the pre-0.94 templating code looks for all its files relatively, and therefore breaks. -Eloi George- |