I take this from rmgallery
Open xoops_version.php
On line 392 add
$modversion['config'][] = array(
'name' => 'bodymsg' ,
'title' => '_ALBM_CFG_BODYMSG' ,
'description' => 'Text for E-mails' ,
'formtype' => 'textarea' ,
'valuetype' => 'text' ,
'default' => "Hello %user:
%sender has sent to you E-Card from %sitename.
In order to see it click in the following link:
%link.
This card will be active during %days days, later will be deleted automatically.
Greetings,
%sitename" ,
'options' => array()
) ;
$modversion['config'][] = array(
'name' => 'mycarddays' ,
'title' => '_ALBM_CFG_MYCARDDAYS' ,
'description' => 'Days before deleting E-Cards' ,
'formtype' => 'textbox' ,
'valuetype' => 'int' ,
'default' => '15' ,
'options' => array()
) ;
$modversion['config'][] = array(
'name' => 'anonymousend' ,
'title' => '_ALBM_CFG_ANONYMOUSEND' ,
'description' => 'Anonymous users can send E-Cards' ,
'formtype' => 'yesno' ,
'valuetype' => 'int' ,
'default' => '0' ,
'options' => array()
) ;
Find
$modversion['templates'][11]['description'] = '';
Under add
$modversion['templates'][12]['file'] = "{$mydirname}_postcard.html" ;
$modversion['templates'][12]['description'] = '';
$modversion['templates'][13]['file'] = "{$mydirname}_preview.html" ;
$modversion['templates'][13]['description'] = '';
Save & exit
Add by phpmyadmin
CREATE TABLE `xoops_myalbum_postal` (
`id` varchar(150) NOT NULL default '',
`time` varchar(30) NOT NULL default '',
`photo` int(11) NOT NULL default '0',
`short_message` varchar(150) NOT NULL default '',
`message` text NOT NULL,
`bgcolor` varchar(7) NOT NULL default '',
`textcolor` varchar(7) NOT NULL default '',
`font` varchar(50) NOT NULL default '',
`bordercolor` varchar(7) NOT NULL default '',
`sname` varchar(150) NOT NULL default '',
`semail` varchar(200) NOT NULL default '',
`toname` varchar(150) NOT NULL default '',
`toemail` varchar(200) NOT NULL default '',
`userid` varchar(25) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
Change link Tell a friend in Tow templates
myalbum_photo.html and myalbum_photo_in_list.html
Find :
<a href='<{$xoops_url}>/modules/tellafriend/index.php?target_uri=<{$mod_url|escape:"url"}>/photo.php%3Flid%3D<{$photo.lid}>&subject=<{$lang_subject4taf|escape:"url"}>'><img src='<{$mod_url}>/images/tellafriend.gif' width='24' height='16' alt='<{$lang_tellafriend}>' title='<{$lang_tellafriend}>' /><{$lang_tellafriend}>a>
Replce :
<a href='<{$mod_url}>/postal.php?lid=<{$photo.lid}>'><img src='<{$mod_url}>/images/tellafriend.gif' width='24' height='16' alt='<{$lang_tellafriend}>' title='<{$lang_tellafriend}>' /><{$lang_tellafriend}>a>
download Postal.php
preview.php
myalbum_postcard.html
myalbum_preview.html
Go to admin page and update module