it went to a blank page...is that what it's suppose to do!?
1 2008-01-24 12:27
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
2 2008-01-24 12:21
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
Ok I'm trying to send the e-mail out...Seems to be taking forever...It says patience is key, so I suppose it takes this long... Probably because I have over 7,000+ users.
3 2008-01-24 12:13
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
Thank you SOOOOOOO much MattF...I think that worked, it took me to the confirmation but I haven't sent it out yet.
4 2008-01-24 11:59
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
// Display the admin navigation menu
generate_admin_menu($plugin);
$preview_message_body = nl2br(pun_htmlspecialchars($_POST['message_body']));
$sql = "SELECT count (username) AS usercount FROM ".$db->prefix."users WHERE username != 'Guest'";
FROM ".$db->prefix."users
WHERE username != 'Guest'
ORDER BY username";
$result = $db->query($sql) or error('Could not get user count from database', __FILE__, __LINE__, $db->error());
$row = $db->fetch_assoc($result);
5 2008-01-24 11:53
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
i tried changing line 55 to $sql = "SELECT count (username) AS usercount FROM ".$db->prefix."users WHERE username != 'Guest'"; like you said, and now it says
Parse error: syntax error, unexpected '"' in /home/yougotli/public_html/yougotlinks/Forums/plugins/AP_Broadcast_Email.php on line 56
6 2008-01-24 11:41
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
An error was encountered
File: /home/yougotli/public_html/yougotlinks/Forums/plugins/AP_Broadcast_Email.php
Line: 59
PunBB reported: Could not get user count from database
Database reported: ERROR: column "punbb_users.username" must appear in the GROUP BY clause or be used in an aggregate function
7 2008-01-24 11:07
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
how do i enable debug mode?
8 2008-01-24 08:59
Topic: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
Whenever I try to send out an e-mail to my users, I get this error:
An error was encountered
Error: Could not get user count from database.
any ideas?
9 2007-05-29 05:47
Topic: how do i email my users? (0 replies, posted in PunBB 1.2 troubleshooting)
i would like to email ALL the users on my forum. is this possible, if so how?
edited: ok i found it.
10 2007-04-14 00:35
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
nope i dont even know what punres is. i was thinking if guests saw how many users there are, they would want to join. I alraedy have a guy making up the post count
11 2007-04-14 00:27
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
doubtful, doesnt look like anyone really wants this to happen from previous posts on this thread.
12 2007-04-14 00:24
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hmm nope that didn't work either. are you testing these? the page loads but the users stay the same.
13 2007-04-14 00:13
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
and you want me to place that above
<dd><?php echo $lang_index['No of users'].': <strong>'. $stats['total_users'] ?></strong></dd>
<dd><?php echo $lang_index['No of topics'].': <strong>'.$stats['total_topics'] ?></strong></dd>
<dd><?php echo $lang_index['No of posts'].': <strong>'.$stats['total_posts'] ?></strong></dd>
that? or replace that?
14 2007-04-14 00:08
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
i copied exactly your code and replaced my own. when i loaded the forum the entire screen was blank.
15 2007-04-14 00:06
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That didn't work. It makes the entire page blank.
16 2007-04-13 19:12
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Guys c'mon you're giving me a hard time. I just wanna change it.
17 2007-04-13 09:39
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
It's not hard to remove the link and disable the "User list".
18 2007-04-13 05:54
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view']);
// Load the index.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
// Print the categories and forums
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
$cur_category = 0;
$cat_count = 0;
while ($cur_forum = $db->fetch_assoc($result))
{
$moderators = '';
if ($cur_forum['cid'] != $cur_category) // A new category since last iteration?
{
if ($cur_category != 0)
echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n";
++$cat_count;
?>
<div id="idx<?php echo $cat_count ?>" class="blocktable">
<h2><span><?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?></span></h2>
<div class="box">
<div class="inbox">
<table cellspacing="0">
<thead>
<tr>
<th class="tcl" scope="col"><?php echo $lang_common['Forum'] ?></th>
<th class="tc2" scope="col"><?php echo $lang_index['Topics'] ?></th>
<th class="tc3" scope="col"><?php echo $lang_common['Posts'] ?></th>
<th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
</tr>
</thead>
<tbody>
<?php
$cur_category = $cur_forum['cid'];
}
$item_status = '';
$icon_text = $lang_common['Normal icon'];
$icon_type = 'icon';
// Are there new posts?
if (!$pun_user['is_guest'] && $cur_forum['last_post'] > $pun_user['last_visit'])
{
$item_status = 'inew';
$icon_text = $lang_common['New icon'];
$icon_type = 'icon inew';
}
// Is this a redirect forum?
if ($cur_forum['redirect_url'] != '')
{
$forum_field = '<h3><a href="'.pun_htmlspecialchars($cur_forum['redirect_url']).'" title="'.$lang_index['Link to'].' '.pun_htmlspecialchars($cur_forum['redirect_url']).'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>';
$num_topics = $num_posts = ' ';
$item_status = 'iredirect';
$icon_text = $lang_common['Redirect icon'];
$icon_type = 'icon';
}
else
{
$forum_field = '<h3><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>';
$num_topics = $cur_forum['num_topics'];
$num_posts = $cur_forum['num_posts'];
}
if ($cur_forum['forum_desc'] != '')
$forum_field .= "\n\t\t\t\t\t\t\t\t".$cur_forum['forum_desc'];
// If there is a last_post/last_poster.
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
else
$last_post = ' ';
if ($cur_forum['moderators'] != '')
{
$mods_array = unserialize($cur_forum['moderators']);
$moderators = array();
while (list($mod_username, $mod_id) = @each($mods_array))
$moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';
$moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
}
?>
<tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>
<td class="tcl">
<div class="intd">
<div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo $icon_text ?></div></div>
<div class="tclcon">
<?php echo $forum_field."\n".$moderators ?>
</div>
</div>
</td>
<td class="tc2"><?php echo $num_topics ?></td>
<td class="tc3"><?php echo $num_posts ?></td>
<td class="tcr"><?php echo $last_post ?></td>
</tr>
<?php
}
// Did we output any categories and forums?
if ($cur_category > 0)
echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n";
else
echo '<div id="idx0" class="block"><div class="box"><div class="inbox"><p>'.$lang_index['Empty board'].'</p></div></div></div>';
// Collect some statistics from the database
$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);
$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);
$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
?>
<div id="brdstats" class="block">
<h2><span><?php echo $lang_index['Board info'] ?></span></h2>
<div class="box">
<div class="inbox">
<dl class="conr">
<dt><strong><?php echo $lang_index['Board stats'] ?></strong></dt>
<dd><?php echo $lang_index['No of users'].': <strong>'. $stats['total_users'] ?></strong></dd>
<dd><?php echo $lang_index['No of topics'].': <strong>'.$stats['total_topics'] ?></strong></dd>
<dd><?php echo $lang_index['No of posts'].': <strong>'.$stats['total_posts'] ?></strong></dd>
</dl>
<dl class="conl">
<dt><strong><?php echo $lang_index['User info'] ?></strong></dt>
<dd><?php echo $lang_index['Newest user'] ?>: <a href="profile.php?id=<?php echo $stats['last_user']['id'] ?>"><?php echo pun_htmlspecialchars($stats['last_user']['username']) ?></a></dd>
<?php
if ($pun_config['o_users_online'] == '1')
{
// Fetch users online info and generate strings for output
$num_guests = 0;
$users = array();
$result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
while ($pun_user_online = $db->fetch_assoc($result))
{
if ($pun_user_online['user_id'] > 1)
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
else
++$num_guests;
}
$num_users = count($users);
echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";
if ($num_users > 0)
echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
else
echo "\t\t\t".'<div class="clearer"></div>'."\n";
}
else
echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";
?>
</div>
</div>
</div>
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';
19 2007-04-13 01:55
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hmm I tried both ways you suggested but neither seem to work....
20 2007-04-13 01:42
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
where exactly did you put that? or did you change the wording?
21 2007-04-13 01:16
Re: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
But that would never increase. Would look kind of funny. I just want to do it, is it possible can you help me please?
22 2007-04-13 00:28
Topic: Add More Users? (25 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Total number of registered users: 109
Total number of topics: 18
Total number of posts: 30
User information
Newest registered user: komi
Registered users online: 1
Guests online: 0
Online:
Locky
Is there a way to increase those numbers without having real users sign up? Is there some sort of way I can go in and make it way higher? For example, like this.
Total number of registered users: 3,291
Total number of topics: 592
Total number of posts: 817
User information
Newest registered user: komi
Registered users online: 291
Guests online: 1,828
of course i just randomly typed in those #'s but you get the idea, and I would obviously have to take off "Online now" . can this be done?
23 2007-04-08 07:22
Re: embedding *.wmv and *.swf? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
is it possible to let the users post *.wmv and *.swf files into the forums. like we are chatting here. I've got the youtube modification installed, and would like to know if the .wmv / .swf is possible. It would be very helpful for me.
24 2007-04-05 03:22
Topic: embedding *.wmv and *.swf? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Is it possible to embed .wmv and .swf files?
25 2007-04-05 03:19
Topic: Is it possible to embed .wmv and .swf only? (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Anyone know if this is possible and how?