61
avtx30
Re: http:// and http://www double login issues?
  • 2008/4/23 16:07

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Quote:

2. Also what do I have to do to stop the double login issues, with http ://sitename and http ://www.sitename?


Redirect the first to the second using .htaccess or changing your DNS records
Xoops Demos:
http://www.nhatban.net/info/a0021.html



62
avtx30
Re: Editor (content) - HTML Table Errors!
  • 2008/4/23 16:04

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


You have to delete all the CR so that your table (html code) became one-line. Please give a try!

Hmmm That's one weak point of the News that makes me to think of migrating (completely) News data to Xigg....
Xoops Demos:
http://www.nhatban.net/info/a0021.html



63
avtx30
Re: Protector... what on earth does it all mean?
  • 2008/4/23 15:58

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


There is a very good document for it, right on the Protector download page at GIJOE's site.

http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?lid=105&cid=1&easiestml_lang=xlang%3Aen
Xoops Demos:
http://www.nhatban.net/info/a0021.html



64
avtx30
Re: multiple language content site and xoops
  • 2008/4/23 15:55

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Third party module will do.

I suggest The Easiest Multi-Language Hack (EMLH) for XOOPS 2.

(PS. cubeUtils (for XOOPS Cube Legacy) will be the best solution for XOOPS Multi-language future.)
Xoops Demos:
http://www.nhatban.net/info/a0021.html



65
avtx30
Re: Xoops Security
  • 2008/4/23 8:57

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


-2. Delete 'install' directory
-1. Chmod '404' mainfile.php
-0. Chmod others properly
3. Try to move '777' stuffs out of your public_html
4. Remove unused files (e.g. xmlrpc.php, pda.php)
5. Use good modules
6. Use .htaccess properly

/.htaccess
Options -Indexes
<FilesMatch "(mainfile|header|footer).php">
Order allow,deny
Deny from all
</FilesMatch>


/cache/.htaccess, /class/.htaccess, /kernel/.htaccess, /language/.htaccess, /templates_c/.htaccess
Order allow,deny
Deny from all


/images/.htaccess, /modules/.htaccess
Options -Indexes


/include/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(js|css)$">
Allow from all
</FilesMatch>


/themes/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png|js|css|swf)$">
Allow from all
</FilesMatch>


/uploads/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png)$">
Allow from all
</FilesMatch>
Xoops Demos:
http://www.nhatban.net/info/a0021.html



66
avtx30
Re: Make Xoops URLs professional
  • 2008/4/21 22:14

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Quote:

thanks for sharing, but in the mainfile.php i assume the <?php line was a typo right ?


It's not a typo. I purposely added the "<?php" so that you can be sure that these line of codes must be put at the very beginning of the mainfile.php.

Quote:

atv your reqrite code is missing something

its written if the person sepcifically types in the words
news
sns
stuff
and so on
and that will redirect their browser to the correct pages
however youll need to add this to the end flag
chage this [L]
to this [R=301,L]

this way it doesnt matter if the person types in upper / lower / or mixed case words.

After changing [L] to [R=301,L], what has to be changed in the mainfile.php? It did not work for me if only changed the Rewrite rules without changing the mainfile.php. It made a loop said Firefox.
Xoops Demos:
http://www.nhatban.net/info/a0021.html



67
avtx30
Re: Make Xoops URLs professional
  • 2008/4/21 14:54

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Xoops Demos:
http://www.nhatban.net/info/a0021.html



68
avtx30
Re: Make Xoops URLs professional
  • 2008/4/21 9:34

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Thanks for the report.

It seems that some escape characters have been manipulated when saved into xoops.org database. I will make the codes available for download soon.
Xoops Demos:
http://www.nhatban.net/info/a0021.html



69
avtx30
Re: Using mod_rewrite to remove "modules" from URL's?
  • 2008/4/21 3:50

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Have a look at this topic
Xoops Demos:
http://www.nhatban.net/info/a0021.html



70
avtx30
Re: Make Xoops URLs professional
  • 2008/4/21 3:38

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Here we go!

The original idea came from GIJOE - a well-known XOOPS master. Click here to see it. It's really a magical piece of codes. All you want to do is add 8 lines of PHP codes into the very beginning of your mainfile.php then add 1 lines to your XOOPS_ROOT_PATH/.htaccess

GIJOE's method is safe for almost (all) of XOOPS modules.

The idea then came to nobunobu - another great XOOPS master who created SysUtils/cubeUtils (Autologin hack and Multi-language utility), SysUtils for XOOPS and cubeUtils for XOOPS Cube Legacy. GIJOE said nobunobu's cubeUtils is the first one in the XOOPS history that can beat his 'Easiest MultiLanguage Hack'.

Nobunobu made XOOPS URLs even more good looking - you cannot figure-out that one site is powered by XOOPS just by looking into its URLs!!

OK, now back to the topic.

Requirements
- XOOPS runs on Apache web server with mod_rewrite loaded and .htaccess available.
- You are not XOOPS newbies
- You have experience dealing with Apache's mod_rewrite and PHP language
- You have to solve problem yourself if this does not work with some modules

Successfully tested XOOPS cores/modules
- XOOPS 2.0.16a-JP
- XOOPS Cube Legacy 2.1.4
- XOOPS 2.0.18.1
- XOOPS 2.2.6
- XOOPS 2.3.0-apha2
- XOOPS Mexico
- Simple-Xoops 0.8.2
- Impress.CMS 1.0 Final (Janus)
- Modules: d3forum, d3downloads, d3xcgal, xsns, pico, mylinks, Xigg, news, Xpress, SmartFAQ, Xwords, Liaise, other custom modules

Limitations
- This method described here is not an universal for every XOOPS modules. It may not work on some modules, xoopspoll for example.
- This may not work on some Apache RootDirectory which are configed as 'aliases'
- This may not work on XOOPS_URL different from ones likehttp://www.mysite.com, for examplehttp://www.mysite.com/xoops
- Some functions of a module may not work, for example 'Print' function of the pico module

How to
Suppose that what you want to change is as following (4 modules, 1 javascript, 1 stylesheet):

Before: XOOPS_URL/modules/Xigg
After: XOOPS_URL/news

Before: XOOPS_URL/modules/xsns
After: XOOPS_URL/sns

Before: XOOPS_URL/modules/d3downloads
After: XOOPS_URL/stuffs

Before: XOOPS_URL/modules/mylinks
After: XOOPS_URL/links

Before: XOOPS_URL/xoops.css
After: XOOPS_URL/main.css

Before: XOOPS_URL/include/xoops.js
After: XOOPS_URL/include/main.js

First, add to your .htaccess file under XOOPS_ROOT_PATH so that it will look like this
RewriteEngine on  
RewriteRule 
^news/(.*)$ /modules/Xigg/$[L]  
RewriteRule ^sns/(.*)$ /modules/xsns/$[L]  
RewriteRule ^stuffs/(.*)$ /modules/d3downloads/$[L]  
RewriteRule ^links/(.*)$ /modules/mylinks/$[L]  
RewriteRule ^main.css$ /xoops.css [L]  
RewriteRule ^include/main.js$ /include/xoops.js [L]


Finally, add to your mainfile.php under XOOPS_ROOT_PATH so that it will look like this

<?php

// Available for download shortly
// Sorry, I deleted the codes because
// it changed when pasting here


Conclusions

Demos for above works here:
- XOOPS demos:http://www.nhatban.net/info/a0021.html
- Our site (in Vietnamse):http://www.nhatban.net

Original works here (in Japanese):
http://www.kowa.org/modules/yybbs/viewbbs.php?bbs_id=4&serial=2164

Thanks to GIJOE and nobunobu for their great idea and implementation.

Cheers!!
Xoops Demos:
http://www.nhatban.net/info/a0021.html




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 18 »



Login

Who's Online

196 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

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

Latest GitHub Commits