I don't have myalbumn-P so I can't really help you anymore than that.
Rob
BDW wrote:
Did you set anti-SPAM: URLs for normal users to 5 within preferences?
function list_blocks()
{
global $xoopsUser, $xoopsConfig;
include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
//OpenTable();
$selmod = isset($_GET['selmod']) ? intval($_GET['selmod']) : 0;
$selvis = isset($_GET['selvis']) ? intval($_GET['selvis']) : 1;
[b][u]$selgrp = isset($_GET['selgrp']) ? intval($_GET['selgrp']) : XOOPS_GROUP_ANONYMOUS;[/u][/b]
function getVar($key, $format = 's')
{
...
case XOBJ_DTYPE_TXTBOX:
switch (strtolower($format)) {
//the next six lines added by Rob Stockley for image conversion
case 'i':
case 'image':
$ts =& MyTextSanitizer::getInstance();
$e_enc = strencode($ts->htmlSpecialChars($ret).'|8');
return '<img src="'.XOOPS_URL.'/include/swirl.php?data='.$e_enc.'">';
break 1;
case 's':
case 'show':
...
...
$xoopsTpl->assign('lang_icq', _US_ICQ);
$xoopsTpl->assign('user_icq', $thisUser->getVar('user_icq', 'I'));
...
if ($thisUser->getVar('user_viewemail') == 1) {
$xoopsTpl->assign('user_email', $thisUser->getVar('email', 'I'));
} else {
if (is_object($xoopsUser)) {
// All admins will be allowed to see emails, even those that are not allowed to edit users (I think it's ok like this)
if ($xoopsUserIsAdmin || ($xoopsUser->getVar("uid") == $thisUser->getVar("uid"))) {
$xoopsTpl->assign('user_email', $thisUser->getVar('email', 'I'));
...
$text = preg_replace($patterns, $replacements, $text);
// lastly decode the email tags added by Rob Stockley 25 May 07
$e_pattern = "/[email]([^;<>*()"']*)[/email]/sU";
$e_matches = array();
while (preg_match($e_pattern, $text, $e_matches) != 0) {
$e_enc = strencode($e_matches[1].'|8');
$e_repl = '<img src="'.XOOPS_URL.'/include/swirl.php?data='.$e_enc.'">';
$text = preg_replace($e_pattern, $e_repl, $text, 1);
}
$e_pattern = "/[email=(['"]?)([0-9]*)\1]([^;<>*()"']*)[/email]/sU";
while (preg_match($e_pattern, $text, $e_matches) != 0) {
$e_enc = strencode($e_matches[3].'|'.$e_matches[2]);
$e_repl = '<img src="'.XOOPS_URL.'/include/swirl.php?data='.$e_enc.'">';
$text = preg_replace($e_pattern, $e_repl, $text, 1);
}
return $text;
<?php
/* script adapted by Rob Stockley from example published at
* http://nz2.php.net/manual/en/function.imagestring.php
* by brooks dot boyd at gmail dot com
*/
include './functions.php';
if ($_GET['data'] != "") {
$data = explode("|", strdecode($_GET['data']));
$msg = $data[0];
$size = intval($data[1]);
if ($size > 16) $size = 16;
if ($size < 8) $size = 8;
// you need to make sure this font file exists
$font = '/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf';
...