7
It looks like this topic is easily overlooked for what actually the question is:
- How to use the module EVENNEWS (mailing list manager) with Spaw.
I stumbled into this question because I was having the same problem.
Looking into the code of evennews 2.01a (actually 2.2) it shows in the /admin/index.php that use of spaw depends on spaw being installed as a MODULE.
Wow, this is a long time back. I think there was a wf module that used spaw like this.
Problem: this spaw module is nowhere to be found anymore. Hurrah.
Do it the other way.
Spaw has also been launched as a /class/spaw. I think it was News 1.2 that started this. This package (called "xoops_editor_spaw") was prepared by phppp.
A reference to this module can be found at
http://dev.xoops.org/modules/xfmod/project/showfiles.php?group_id=1001. Just browse down to WYSIWYG editors and choose spaw 1.07. You will be forwarded to xoops.cn.
So how to use spaw with Evennews ?
Unpack the spaw package to /class(/spaw --> depends on if it is packed with subdirs). Your path looks like /class/spaw and underneath this all your files and subdirs.
Now edit in /modules/evennews/admin/index.php the following code (you will find this at about line 11)
if (is_object($module) && $module->getVar('isactive'))
{
include_once XOOPS_ROOT_PATH . "/modules/spaw/spaw_control.class.php";
}
to
if ( is_readable(XOOPS_ROOT_PATH . "/class/spaw/formspaw.php"))
{
include_once XOOPS_ROOT_PATH . "/class/spaw/spaw_control.class.php";
}
and that's just it!!
Do not forget to update the module evennews and have fun with spaw in preparing a newsletter!