I suggest displaying Headlines in the Top Page, but it can be done after Ivan goes away
Good luck and congrats for your work
Bender wrote:
Hi ajaxbr,
it works great. I modified the script to take care of putting the new users into the usergroups.
Thanks for your help.
(Between what is the password those users have?)
<?php
$uidmin = 1313;
$uidmax = 1316;
for ($uid = $uidmin; $uid < $uidmax; $uid++)
{echo "INSERT INTO `xoops_users` VALUES (".$uid.", '', 'JoeUser".$uid."', 'anymail".$uid."@nowhere.com', '', 'blank.gif', 1094155383, '', '', '', 0, '6cc7a5d0', '', '', '', '3516064db5fa1c4c13cd0eee42cce334', 2, 0, 0, 1, '', '0.0', 1094155547, 'nest', 0, 1, 0, '', '', '', 1); ";
}
?>
jmass wrote:
There is no use that frames serve that can not be done differently. There are far too many disadvantages of frames and zero advantages.
<{foreach item=topic_post from=$topic_posts}>
<{include file="db:newbb_thread.html" topic_post=$topic_post}>
<{/foreach}>
<{foreach item=topic_post from=$topic_posts}>
<{include file="db:newbb_thread.html" topic_post=$topic_post|regex_replace:"/<img.*>/":""|regex_replace:"//>/":">"|strip}>}>
<{/foreach}>
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
if ($allowimage != 1) {
$replacements[] = '<a href="\3" target="_blank">\3</a>';
$replacements[] = '<a href="\1" target="_blank">\1</a>';
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\4" target="_blank">\4</a>';
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\2" target="_blank">\3</a>';
} else {
$replacements[] = '<img src="\3" align="\2" alt="" />';
$replacements[] = '<img src="\1" alt="" />';
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\2" alt="\3" />';
}