11
Bender
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/16 12:18

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Richard,

it seems to be this file:

http://r286.com/xoops/modules/mydownloads/visit.php?cid=4&lid=23

I´d guess the other one is an add-on to make the included content searchable.


And no ... i can´t read that language either but there was a version number and a history list on another page so think/hope i grabbed the right file.

12
carnuke
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/16 15:26

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Thanks bender, yep, tha's a module alright. I'll check this one out as we now have a translated readme file from noisia.

13
Wheeler
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/16 16:39

  • Wheeler

  • Not too shy to talk

  • Posts: 145

  • Since: 2004/10/29


This is a very exciting module! I am stoked about it's ability to wrap whole php scripts in xoops.

by carnuke
Quote:
I am looking to write a very clear FAQ on this subject, because many users have asked about wrapping a whole website, or group of pages. If we can make this a well documented process, it will be valuable.


We do need better documentations for much of XOOPS 'stuff'. I find too many faq docs, of such unique modules, written in broken english. Thanks Richard and to all who noticed this module.

14
Olorin
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/17 9:37

  • Olorin

  • Just popping in

  • Posts: 50

  • Since: 2003/7/5 1


@carnuke
Quote:
I do not know what to do here? What module folder? Do I need to create one?


$modversion['dirname'] = "auth";

by changing the value of the variable above, you can have multiple instance with ease.

i.e.
modules/auth (default)
modules/auth2 (when "$modversion['dirname']" is "auth2";)

$auth_dir = "sample";

You can see "sample" directory in "auth" directory, right? This is where you put your contents by default.

If it doesn't work try the following values:

$auth_dir = "modules/auth/sample"; (default)
or
$auth_dir = "physical_path/modules/auth/sample"; (default)

What you have downloaded is an add-on to make your html contents searchable as Bender says. Don't forget to change the name of search function in "include/search.inc.php" when you use multiple instance. Or it causes conflicts

As regards its authentication, I have no idea since I don't use this module.

15
noisia
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/18 20:48

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


The Auth module is getting more exciting. Now you can even search the HTML contents that you have uploaded.

You will need to download the "Auth Search Patch" from the following site:

http://r286.com/xoops/modules/mydownloads/visit.php?cid=4&lid=27


The translation of the readme file is as follows

XOOPS2 Auth Module Search function 1.00 
-----------------------------------
-- 
Presented by ADMIN ROUTE2862005. --


&
#12539;This patch will add search functionality to pages put up with the Auth Module.
---------------------------------------


&
#12288;・It will search all the .htm file names that are put into the designated auth folder.
 ・It will also search the text contents of the files in the designated auth folder
 ・It will allow search via the standard XOOPS search.
 ・It will display the module header and file name in the XOOPS search result window. 

The original Auth module does not support searchso the Auth module needs to be patched to support search in the HTML files


Installation
-------------

The patch consists of the following files:

        
README.txt        This file
        search
.php        The core search function file
        search
.gif        The search result Auth module Icon
        xoops_version
.php Patched Auth core file sample

Store the “search
.php” and “search.gif” files in the Auth module root folder (By default the Auth module root folder is “auth”)

Then edit the “xoops_version.php” file as explained below:

The “xoops_version.php” requires to be edited before overwriting it:
It contains the following added search statements:

        
// ● 検索機能 (Begin Search Function)
        // 検索機能を追加する場合は以下のところを追加します。
        // (In order to enable search, the following statements have to be included.) 

        
$modversion['hasSearch'] = 1;
        
$modversion['search']['file'] = "search.php";
        
$modversion['search']['func'] = "auth_search";

        
// ここまで検索機能追加 (End Search Function)

The below statements need to be edited in the “search.php” 
First the directory name needs to be adjusted according to the selected “module” name
.

        
// ここから変更項目です。(Adjust the following:)

        // ● 認証ディレクトリ(フォルダ) 
        // config.php に記載しているものと同じですが、
        // 必ずフルパス(直接指定)で記載して下さい。
        // ● Watch Folder
        // has to be the same as stated in the “config.php”, but it needs
        // to be the full direct path.

            
$auth_dir "/home/(user)/htdocs/xoops/modules/auth/sample";

        
// ● 出力サイズ
        // 表示するサイズ(半角文字数)。
        // ファイルの頭部分が出力されます。
        // ● Output Size
        // The length of the output string 
        // as displayed in the header

            
$auth_size 77;

        
// ● 区切り(デリミタ)
        // config.php の記載に合わせて変更します。頭に index.php を含めて下さい
        // "index.php/" "index.php?" とします。
        // Apache による index.php の省略を行っている場合は "" とできます。  // ● Delimiter
        // Change in accordance to the “config.php” 。Include “index.php” in the header 
        // "index.php/" will become "index.php?" 
        // Depending on the used Apache “index.php” can be abbreviated to  "" 

            
$auth_delimiter "index.php/";

        
// ここまで変更項目です。以下は変更する必要はありません。
        // Edit up to this point, the below code does not require to be altered


With the above alterationsthe patch will enable the Auth module to be searchable.


Other Hints
--------------

Please read the latest updates of the Auth module on the ROUTE286/XOOPS homepage.

Please report any bugs to:

&
#12288; ROUTE286/XOOPS http://r286.com/xoops/


・Development history 
----------------------

2005/01/06 Search function version 1.00
 ・First version

16
khana
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/19 1:37

  • khana

  • Just popping in

  • Posts: 15

  • Since: 2005/1/11


Hi, noisia

In this the readme file, isn't the character-code EUC-JP?
I think, it should be better that change this other character-codes or that delete the part of listmarks and "marks written in Japanese code.

17
carnuke
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/19 9:10

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


From the translated reame file:
Quote:
It is recommended that the html files are linked to each other and have links to their images with the root relative path (not folder relative path).


Is that the also true for javascripts, stylesheets and any other includes?

iehttp://mysite.com/auth/sample/images/image-1.jpg

my test version calls /images/image-1.jpg and it does not show.

18
noisia
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/19 14:34

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


Thanks Khana,

I've changed it to EUC-JP

19
noisia
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/19 14:56

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


Hi Carnuke,

Quote:
iehttp://mysite.com/auth/sample/images/image-1.jpg

my test version calls /images/image-1.jpg and it does not show.


If the html file is stored in
mysite.com/auth/sample

then the picture can be called by
/images/image-1.jpg

There is some note in the readme about problems with Apache 1.3.

Which version of Apache are you using?

20
carnuke
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/1/19 15:23

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


I'm testing this all on XSAS local environment with Apache/2.0.49 (Win32) PHP/4.3.6

all images are in image folder and referenced scr=images/myimage.png etc but they are not displaying. Likewise javascript are not operating.

The only way I can make images and js work is to give a full url likehttp://localhost/xoops2/modules/auth/sample/images/image-1.jpg This now works. So I gues we are talking about a mass find/replace operation on all files to correct URLs.

Login

Who's Online

169 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits