Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 10:40 pm EST

Geeklog Forums

Need some help


Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
I need to be able to have a section go to a directory to pull off a topic like this http://www.foo.bar/section/ instead of the default http://www.foo.bar.com/index.php?topic=section
 Quote

Status: offline

Tony

Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
Would this will take a bit of work. If you are on *nix use mod_rewrite. If not, I have a url class in cvs in 1.3.x tree in system/classes. That class can turn a url like: http://www.example.com/index.php?topic=foo into http://www.example.com/index.php/foo That class also require *nix as there is a bug in the windows CGI that prevents this from working properly.
The reason people blame things on previous generations is that there's only one other choice.
 Quote

Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
Good idea on both ends, the problem is, I need Section One/ Section Wto/ ectra to all look different each with different headers, block content ectra/ While sharing a database. The current backend for my site is a scrapped together speghetti code written in c. For blatently obvious reasons I am looking towards moving to php. After conciderible testing of various CMS and portal packages, (PostNuke, PhpNuke, EzPublish,PhpWebsite,Backend,Drupal,DaCode, Siteseed, Scoop, PhpSlash) I like the features,and the enchanced security found in this Application. Its just about everything I want, without the hasle of having to write it myself While I just am starting to learn PHP, I am am looking to turn my website evil-ware.com, into a geeklog site without any change to the UI.
 Quote

Status: offline

MLimburg

Forum User
Chatty
Registered: 12/17/01
Posts: 35
Location:Adelaide, AU
Has anyone looked into the uses of mod_rewrite with geeklog? I'm sure something could be put together, maybe I'll pull another week out of my arse and code it up Smile
Friends help you move. Real friends help you move bodies.
 Quote

Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
Actaully, I have done some research into this. I need to do some extensive testing of this, but for now , this seems to work. RewriteEngine on RewriteLogLevel 0 RewriteCond /www/vs/link/webroot/% !-f RewriteRule ^(.+) /index.php?topic= To me , this seems okay, but eventually i will write a php class /hack to allow for modular topic design.. I.e. Different headers, footers, side boxes, themes, per topic.
 Quote

All times are EST. The time is now 10:40 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content