2
Did you ever get anywhere with this?
I just created a simple block to allow my members to subscribe to two GNU Mailman mailing lists by clicking on a submit button.
I would be very interested to know if you got any more integration.
Here is my very simple block for subscribing:
global $xoopsUser;
if (is_object($xoopsUser)) {
$email = $xoopsUser->getVar('email');
}
echo "<b>Click to subscribe</b>";
echo '<FORM Method=POST ACTION="http://example.com/cgi-bin/mailman/subscribe/YOURLIST">';
echo '<INPUT name="email" type="hidden" value="';
echo $email;
echo '">';
echo '<INPUT type="Submit" name="email-button" value="YOURLIST">';
echo '</FORM>';
This brings up a minor bug with the XOOPS 2.2.x custom php block method - you cannot use \ to escape things! When you submit the page it comes back without the \ . eg. using \" doesn't work.