1
teibaz
more flexible xoops?
  • 2006/7/7 9:18

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Hi, last two or three weeks I developed my project based on Xoops. I changed some things in it and want to know your ideas about that. (I just suggest to pay attention to this, not to do this)

1. Redirect page.
I definately hate it so i made a constant USE_REDIRECT. In my project this const is 'false' So, i just send headers to needed page. One more thing with this, sometimes at the end of url (for ex.https://xoops.org/?) we can see '?'. I pregmatche it and kill :) i think we don't need it, yea?

2. Directory structure.
Why there are several cache dirs? Now:
ROOT_DIR/templates_c
ROOT_DIR/cache

first one is for smarty, second for xoops, but all in all both are for cache, so i do this:
ROOT_DIR/cache/temp
ROOT_DIR/cache/templates_c


3. Modules directory
I changed my modules directory 'name' because of more friendly url. There could be several ways: to use mod_rewrite (not all users can do that) or to change modules directory name. I created 'XOOPS_MODDIR_NAME' and used it instead of 'modules'.

4. CSS and IMAGES
I put them just into root dir in IMAGES and CSS directories. xoops.css too. I just separated html, css, images files, because now they are just mixed in themes. (actualy, i named themes into layout, because i use them like my layouts, not as themes).

This part is mostly for structure and naming.. I made core changes to generate cute keywords, description or title. Few SEO things like URL constructing and so on.. Why i said, that this is just offer and not TODO list items.. Because a lot of users couldn't upgrade theirs XOOPS to such version. Because almost all modules needs fixes and so on.. I made changes in news, newsbb and several other modules, but we have lost of them.. In other hand, now i can have SEO friendly urls like (in news)

http://PROJECT_URL/PROJECT_SPECIFIC/news/my-super-duper-news.html

just for thinking..

2
davidl2
Re: more flexible xoops?
  • 2006/7/7 11:31

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


1 - Think this is coming in 2.3

2 - Being re-organised in 2.3 I believe

3 - See above

4 - Makes more sense to keep them with the relevent themes .. but more powerful in 2.0.14 -> 2.3


Saying which, if you've coded some improvements like you've discussed, why not visit the XOOPS development forum on Sourceforge and discuss your ideas - and perhaps submit code suggestions etc? I'm sure the core devs are willing to listen.

Sourceforge Forum here

3
Dave_L
Re: more flexible xoops?
  • 2006/7/7 11:49

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
Why there are several cache dirs? Now:
ROOT_DIR/templates_c
ROOT_DIR/cache

first one is for smarty, second for xoops


Both of those directories are for Smarty:
http://smarty.php.net/manual/en/variable.compile.dir.php
http://smarty.php.net/manual/en/variable.cache.dir.php

4
m0nty
Re: more flexible xoops?
  • 2006/7/7 13:45

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i personally don't see why all the fuss or apparent panic about SEO urls.

for 1, 90%++ of search engines now don't penalise you for the type of urls you see with xoops. search engines can definitely read the urls..

so is it more of SEO or more of user friendly urls that look pretty instead? :-|

5
patagon
Re: more flexible xoops?
  • 2006/7/7 13:53

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi Teibaz,

This seems very interesting..any site where we can see it working? (the site on your profile gave me an error).

thanks

Login

Who's Online

214 user(s) are online (146 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits