1
chefry
Desperate for Assistance with WRAPS
  • 2006/10/24 14:46

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I'm still a little confused with the WRAPS install and I was hoping someone could point me in the right direction. I dunno, I guess I'm an idiot.

I'm running the following system

Website URL:
http://localhost/xoops

XOOPS Version:
XOOPS 2.0.15

XOOPS Theme:
karate_redux_blue

XOOPS Template Set:
wraps

PHP Version:
5.1.6

MySQL Version:
5.0.24a-community-nt

Server Software:
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6

User's Browser:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; iebar; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50215; Avalon 6.0.5070; WinFX RunTime 3.0.50215; InfoPath.1)


I didn't have to do anything with .css files because my site is hard coded and I never used a style sheet. What I plan to do, if I can get this to work, is strip out all the header and footer info on each page, edit the links to /localhost/ and do the wrap.


I unziped the archive.

From /html/modules/wraps I moved /wraps to the /xoops/modules/ directory, so it's at /xoops/modules/wraps

I created a second directory called /whip_cream, so it's at /xoops/modules/whip_cream.

I moved the /xoops_trust_path to /xoops/xoops_trust_path.

Inside /xoops_trust_path is
/xoops/xoops_trust_path/modules
/xoops/xoops_trust_path/modules/admin
/xoops/xoops_trust_path/modules/class
/xoops/xoops_trust_path/modules/language
/xoops/xoops_trust_path/modules/language/english
/xoops/xoops_trust_path/modules/language/japanese
/xoops/xoops_trust_path/modules/main
/xoops/xoops_trust_path/modules/sql
/xoops/xoops_trust_path/modules/templates
/xoops/xoops_trust_path/wraps
/xoops/xoops_trust_path/wraps/whip_cream

All the files to be added are in /xoops/xoops_trust_path/wraps/whip_cream

(There is an index.html page with links to the rest of the pages. Although I'll have to figure out the relative path and change the links to that. Right now it links online to my website.)

I inserted into mainfile.php
AFTER define('XOOPS_URL''http://localhost/xoops');

define('XOOPS_TRUST_PATH','http://localhost/xoops/xoops_trust_path');


I cloned the templates, calling it 'wraps', and set the default template to 'wraps' in System Admin - Preferences.

Following the directions at
http://www.peak.ne.jp/xoops/md/news/index.php?page=article&storyid=354

I inserted into class/smarty/xoops_plugins/resource.db.php
if ( !file_exists$filepath ) ) {
            
$tplobj $tplfile_handler->find$tplsetnullnullnull$tpl_nametrue);
            if ( 
count$tplobj ) ) {
                return 
$cache[$tpl_name] = $tplobj[0];
            }
        }




I even cut n paste the entire script into resource.db.php.

I ended up getting this error

Error: Smarty error: [plugin] function smarty_resource_db_source() not found in /class/smarty/xoops_plugins/resource.db.php (core.load_resource_plugin.php, line 61)

When I go to Modules Admin I am not seeing 'WRAPS'. The only thing I see is an error

Module File for whip_cream Not Found!Module File for Not Found!Module File for Not Found!Module File for Not Found!Module File for Not Found!Module File for Not Found!


So, any idea what I did wrong? Im sure it's probably something easy.

Thanks
Frank
admin@franksrecipes.com

2
avtx30
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 15:13

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


I think GIJOE will help you at his site
Xoops Demos:
http://www.nhatban.net/info/a0021.html

3
chefry
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 16:37

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I tried never got anywhere. His english is a little hard to understand. But I did follow all his instructions and it doesn't work. That's why I'm asking here. I'm sure someone has had experience getting this running with 2.0.15 who can advise me where I'm going wrong.

4
Lance_
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 18:21

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


First off,

The code for XOOPS_TRUST_PATH is as follows

define('XOOPS_TRUST_PATH','/home/yourhome/xoops_trust_path'); // eg.


Nothttp://..... but the real path to the folder.

The reason for this is that you are supposed to put it outside your public_html folder.

Example:

xoops is installed in /home/username/public_html/xoops/

And you would put the modules xoops_trust_path in

/home/username/trusted_xoops/

Note that the TRUSTED_XOOPS folder would not be viewable from the internet but is accessible by the module when the above line is inserted in mainfile.php.

Start with this part at least.

Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

5
irmtfan
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 19:07

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


please read instructions very carefully. this module is not for very first users and dummies.

first of all:
there are 2 different path.

1- XOOPS path like C:/XAMPP/htdocs/

2- XOOPS trust path that you can put it OUTSIDE of http like C:/XOOPS_TRUST_PATH
note: you can put XOOPS trust path INSIDE of http but it is not secure and it is not manage to use it like this but except of security resons you dont have any problem.

second:
in instructions you have these mistakes:
1- you must put 'wrpas' folder inside 'modules' folder in XOOPS trust path like this:
XOOPS_TRUST_PATH/modules/wraps
( you forgot wraps folder...)

2- you must define XOOPS trust path EXACTLY like you define XOOPS_ROOT_PATH

( you wrote URL not PATH)

6
chefry
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 20:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


Ok, I changed

define('XOOPS_TRUST_PATH','http://localhost/xoops/xoops_trust_path');

to

define('XOOPS_TRUST_PATH','/localhost/xoops/xoops_trust_path');

still nothing

7
chefry
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 20:55

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


HAH!!!!!
GOT IT!!!!

I had to define the trust path as

C:/Program Files/xampp/htdocs/xoops/xoops_trust_path

NOT

'/localhost/xoops/xoops_trust_path'

Don't know if it's working yet, but at least it's in the modules directory

Thanks for the help Guys!

8
irmtfan
Re: Desperate for Assistance with WRAPS
  • 2006/10/24 20:56

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


chefry,

it must be a PATH begin from a drive and to a folder

please see your mainfile.php
its like XOOPS_ROOT_PATH

mine in local:
[code]
define('XOOPS_ROOT_PATH', 'D:/xampp/htdocs/jadoogaran');
define('XOOPS_URL', 'http://localhost/');
define('XOOPS_TRUST_PATH','D:/xampp/XOOPS_TRUST_path');

Login

Who's Online

221 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 221


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