Look's like different fonts?
Edit: On your home page, those menu items are inheriting a `font-family` (Arial,sans-serif;) from the page's `body`; This does not occur on the forum page.
You are not logged in. Please login or register.
PunBB Forums → Posts by guardian34
Look's like different fonts?
Edit: On your home page, those menu items are inheriting a `font-family` (Arial,sans-serif;) from the page's `body`; This does not occur on the forum page.
I think Craig has the right idea, but 'g_global_moderation' is not in the standard viewtopic.php file?
Open: viewtopic.php
Find:
if ($pun_user['g_id'] < PUN_GUEST)
{
$user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';
Replace with:
if ($pun_user['g_id'] == PUN_ADMIN)
{
$user_info[] = '<dd>IP: <a href="moderate.php?get_host='.$cur_post['id'].'">'.$cur_post['poster_ip'].'</a>';
Edit: Like Craig said, this appears twice; Just above and below this comment:
// If the poster is a guest (or a user that has been deleted)
Did you copy the .htaccess file from the extras folder?
Have you checked out the sticky topic in this forum? INFO: Bad HTTP_REFERER
Give this a shot? (You'll still see page number links.)
Open: viewtopic.php
Find:
// Fetch some info about the topic
if (!$pun_user['is_guest'])
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON (t.id=s.topic_id AND s.user_id='.$pun_user['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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
else
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
Replace with:
// Fetch some info about the topic
// mod: Hide posts after X days
if (!$pun_user['is_guest'])
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, t.posted, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON (t.id=s.topic_id AND s.user_id='.$pun_user['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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
else
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, t.posted, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
Find:
// Can we or can we not post replies?
Before, add:
// mod: Hide posts after X days
// Default: 172800 seconds (2 days)
if (!$is_admmod && time() > ($cur_topic['posted'] + 172800))
message($lang_common['Bad request']);
Open: viewforum.php
Find:
while ($cur_topic = $db->fetch_assoc($result))
{
Replace with:
while ($cur_topic = $db->fetch_assoc($result))
{
// mod: Hide posts after X days
// Default: 172800 seconds (2 days)
if (!$is_admmod && time() > ($cur_topic['posted'] + 172800))
continue;
Find:
}
else
{
?>
<tr>
Replace with:
}
// mod: Hide posts after X days
// No topics exist or they are too old to view
if (!isset($item_status))
{
?>
<tr>
There are a few things you won't need for this page, but it looks like you should be able to copy from viewtopic.php.
In viewprintable.php, try finding?
$result = $db->query('SELECT t.subject, t.num_replies, f.id AS forum_id, f.forum_name, 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.id='.$id) or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
?replacing with:
// Fetch some info about the topic
if (!$pun_user['is_guest'])
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON (t.id=s.topic_id AND s.user_id='.$pun_user['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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
else
$result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_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) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
How about a plugin? Author Update
it's also the content,a nd it changes a lot in fact.
I'm not so sure about this, but I think you should be able to copy viewtopic.php and change the content it produces (unpaginated, etc.).
Jérémie is talking about non-developers getting logins for the PunBB Trac; Smartys is talking about integrating the login info for Trac and this forum.
Edit:
because the page content should not be the same. If i want to print a topic with 4 pages it doesnt make sense to print page by page.
So why not use Jérémie's "see whole topic" idea with CSS and let the user decide what to do with the content. All you really need to do is provide a way to not paginate the posts in a topic.
pedrotuga, why not just use CSS?
I saw smilies on there? Did you turn off smilies in your profile?
There is a sender, MadHatter. Try sending yourself an e-mail through the forum.
http://punbb.org/forums/viewtopic.php?id=4571
Edit: You can't rely on just a title/subject, as they are not unique and are subject to change.
Edit: Ok, I'm confused by your link?
Before I go, I gotta quote one more source:
Chris Beasley wrote:?
So, you don?t need to use search engine-friendly URLs [16] to be listed in Google. However, these URLs do have other benefits, such as hiding what server side technology you use (so that you may change it seamlessly later), and they are more people-friendly. Additionally, while Google can spider dynamic pages, it may limit the amount of dynamic pages it spiders from one particular site. Your best bet for a good ranking is to use search-engine friendly URLs.This is from Chris Beasley, writing for Sitepoint. Is SitePoint the publisher of my book? Of course. Does that make this information any less true? Of course not. Please note that Chris seems to advocate the ?safer is better? approach, in that a search engine friendly URL might get more of your pages spidered.
So, is it okay to use dynamically generated content with query strings in the URL. Sure. Just avoid the id= keyword and inserting session variables. If you?re feeling paranoid, then use Apache?s mod_rewrite to change your dynamic URLs into something more human readable (ie, from /innerpage.php?pageid=7&category=SEO to /topics/seo/page/7), or use a friendly URL module like the one we wrote for TopDog.
Emphasis added.
Speaking of hiding server side technology: http://www.w3.org/Provider/Style/URI
Edit:
the soon to be v1.3 will have better urls than current ones.
By the way, these will be optional.
My mistake; Check out the mod readme now, I fixed something.
This has been mentioned multiple times for both past and future versions of PunBB.
Future: http://dev.punbb.org/
Past:
http://www.punres.org/files.php?pid=139
http://punbb.org/forums/viewtopic.php?id=8579
http://punbb.org/forums/viewtopic.php?id=7340
Is this because str_replace doesn't handle multi-dimensional arrays? If so, what is the most efficient way of doing this? Just replicating the value? (i.e $array2 = array('happy', 'exicited', 'sad', 'sad');)
I believe that is correct.
The Grace Period mod only works for a short time after the message has been posted.
Try this: http://wiki.punres.org/Silent_edit_for_users
Edit: Fixed URL
Regarding multiple moderator groups? If actual moderation permission is given on a per-user basis, then what is the point of a group being marked (or not) as moderator?
Is there an easy way (i.e. besides looping over ever user) to sync the last_post field for all users? I don't have much experience with queries, so I can't quite wrap my head around this one.
Smartys, that looks much better.
Ok, I think I have some better code. Undo the changes that I mentioned before (but keep the change that elbekko mentioned) and try this (in viewtopic.php)?
1. Find?
// Retrieve the posts (and their respective poster/online status)
Before, add:
// mod: Don't display reported posts
$report_result = $db->query('SELECT DISTINCT reported_by, post_id FROM '.$db->prefix.'reports WHERE topic_id = '.$id.' AND zapped IS NULL') or error('Unable to fetch report info', __FILE__, __LINE__, $db->error());
$reported = array();
while($cur_report = $db->fetch_assoc($report_result))
$reported[] = $cur_report['post_id'];
2. Find?
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
replace with:
// Perform the main parsing of the message (BBCode, smilies, censor words etc)
// mod: Don't display reported posts
if (!$is_admmod && in_array($cur_post['id'], $reported))
{
$report_result = $db->query('SELECT DISTINCT reported_by FROM '.$db->prefix.'reports WHERE post_id = '.$cur_post['id'].' AND zapped IS NULL') or error('Unable to fetch report info', __FILE__, __LINE__, $db->error());
if ($db->num_rows($report_result) >= 3)
$cur_post['message'] = '[<em>This post has been marked as objectionable and is awaiting staff review.</em>]';
else
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
}
else
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
PunBB Forums → Posts by guardian34
Powered by PunBB, supported by Informer Technologies, Inc.