andy smith (I am blind) wrote:

What do I need and how can I get it, and is it free.

You need the forum software. You can get it at http://punbb.org/downloads.php (and yes, it's free). smile

andy smith (I am blind) wrote:

Also I need to know what to upload

You'll be download a file that is compressed in some fashion. Once you uncompress it, you'll want to upload the contents of the upload folder.

andy smith (I am blind) wrote:

and if you could tell me the approxamite size that would be good, I only have 50mb.

< 1 MB, for the PHP and images anyway

andy smith (I am blind) wrote:

Anyway I also would like a manual on how to use this thing, because I have invisionfree forums that are crappy, pieces of junk

What kind of information are you looking for?

andy smith (I am blind) wrote:

And what does it mean, subscribe to this topic?

It means you can get email notifications when someone posts in the topic

3,227

(3 replies, posted in PunBB 1.2 discussion)

yemgi: Not the correct answer wink
Sonrep: I'll take some HTML from this topic as an example

<div id="p93583" class="blockpost rowodd firstpost">

rowodd and roweven allow for a style to alternate colors between posts. altstyle, from what I see in the code, has the same purpose. They don't need to be defined in the default CSS because the default style doesn't alternate colors smile

3,228

(1 replies, posted in PunBB 1.2 troubleshooting)

$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, SUM(r.rep_plus) AS count_rep_plus, SUM(r.rep_minus) AS count_rep_minus, u.reputation_enable, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online, g.g_allow_html AS allow_html FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'reputation as r ON (r.user_id=u.id)                         GROUP BY p.id  '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
while ($cur_post = $db->fetch_assoc($result))

I actually don't see that, but I do see one oddly cenetred thing:

H2 {
        font-family: /*Trebuchet MS,*/ Verdana, Arial, sans-serif;
        font-size: 18px;
    color: #104070;
    background: transparent;
      font-weight: bold;
      text-align: center
}

3,230

(3 replies, posted in PunBB 1.2 troubleshooting)

Changing style in Admin Options changes the style used by Guests. If you want to change your style, you need to do it in your profile

3,231

(1 replies, posted in PunBB 1.2 bug reports)

Closed: we're not accepting bug reports for 1.3 and this does not appear to be a bug (altstyle allows for alternating colors in rows).

Set cookie_domain in config.php to .epixplx.com

3,233

(3 replies, posted in PunBB 1.2 troubleshooting)

http://punbb.org/docs/install.html
You really don't need to upload anything except the contents of the upload folder wink

3,234

(12 replies, posted in PunBB 1.2 discussion)

You can do that too, but the user management plugin allows you to delete large numbers of users easily: I deleted several thousand for a forum recently

3,235

(12 replies, posted in PunBB 1.2 discussion)

Pruning is for old topics. You want to use the User Management plugin to delete users: I used prune as a general term wink

3,236

(12 replies, posted in PunBB 1.2 discussion)

Not necesarily, although it's likely: I would say send out a mass email asking people to post and then prune a week later (for people with 0 posts)

3,237

(10 replies, posted in PunBB 1.2 troubleshooting)

Well, PunBB does not throw 403 errors: it's a server issue and your host should be able to resolve it wink

http://punbb.org/forums/viewtopic.php?id=10518

3,239

(10 replies, posted in PunBB 1.2 troubleshooting)

I would talk to your host, it sounds to me like a mod_security issue

Make sure to  rename the import statements as well

<?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/


// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
    exit;

$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_main>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_main>


// START SUBST - <pun_footer>
ob_start();

?>
<div id="brdfooter" class="block">
    <h2><span><?php echo $lang_common['Board footer'] ?></span></h2>
    <div class="box">
        <div class="inbox">
<?php

// If no footer style has been specified, we use the default (only copyright/debug info)
$footer_style = isset($footer_style) ? $footer_style : NULL;

if ($footer_style == 'index' || $footer_style == 'search')
{
    if (!$pun_user['is_guest'])
    {
        echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt>'."\n\t\t\t\t".'<dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
        echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n";

        if ($pun_config['o_subscriptions'] == '1')
            echo "\t\t\t\t".'<dd><a href="search.php?action=show_subscriptions">'.$lang_common['Show subscriptions'].'</a></dd>'."\n";

        echo "\t\t\t\t".'<dd><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
    }
    else
    {
        if ($pun_user['g_search'] == '1')
        {
            echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt><dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
            echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
        }
    }
}
else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')
{
    echo "\n\t\t\t".'<div class="conl">'."\n";

    // Display the "Jump to" drop list
    if ($pun_config['o_quickjump'] == '1')
    {
        // Load cached quickjump
        @include PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
        if (!defined('PUN_QJ_LOADED'))
        {
            require_once PUN_ROOT.'include/cache.php';
            generate_quickjump_cache($pun_user['g_id']);
            require PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
        }
    }

    if ($footer_style == 'viewforum' && $is_admmod)
        echo "\t\t\t".'<p id="modcontrols"><a href="moderate.php?fid='.$forum_id.'&p='.$p.'">'.$lang_common['Moderate forum'].'</a></p>'."\n";
    else if ($footer_style == 'viewtopic' && $is_admmod)
    {
        echo "\t\t\t".'<dl id="modcontrols"><dt><strong>'.$lang_topic['Mod controls'].'</strong></dt><dd><a href="moderate.php?fid='.$forum_id.'&tid='.$id.'&p='.$p.'">'.$lang_common['Delete posts'].'</a></dd>'."\n";
        echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&move_topics='.$id.'">'.$lang_common['Move topic'].'</a></dd>'."\n";

        if ($cur_topic['closed'] == '1')
            echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&open='.$id.'">'.$lang_common['Open topic'].'</a></dd>'."\n";
        else
            echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&close='.$id.'">'.$lang_common['Close topic'].'</a></dd>'."\n";

        if ($cur_topic['sticky'] == '1')
            echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
        else
            echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd></dl>'."\n";
    }

    echo "\t\t\t".'</div>'."\n";
}

?>
            <p class="conr">Powered by <a href="http://punbb.org/">PunBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />© Copyright 2002?2005 Rickard Andersson</p>
<?php

// Display debug info (if enabled/defined)
if (defined('PUN_DEBUG'))
{
    // Calculate script generation time
    list($usec, $sec) = explode(' ', microtime());
    $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);
    echo "\t\t\t".'<p class="conr">[ Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed ]</p>'."\n";
}

?>
            <div class="clearer"></div>
        </div>
    </div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-203738-3";
urchinTracker();
</script>
<?php


// End the transaction
$db->end_transaction();

// Display executed queries (if enabled)
if (defined('PUN_SHOW_QUERIES'))
    display_saved_queries();

$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_footer>


// START SUBST - <pun_include "*">
while (preg_match('#<pun_include "([^/\\\\]*?)">#', $tpl_main, $cur_include))
{
    if (!file_exists(PUN_ROOT.'include/user/'.$cur_include[1]))
        error('Unable to process user include <pun_include "'.htmlspecialchars($cur_include[1]).'"> from template main.tpl. There is no such file in folder /include/user/');

    ob_start();
    include PUN_ROOT.'include/user/'.$cur_include[1];
    $tpl_temp = ob_get_contents();
    $tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
    ob_end_clean();
}
// END SUBST - <pun_include "*">


// Close the db connection (and free up any result data)
$db->close();

// Spit out the page
exit($tpl_main);

Again,

$tpl_main = str_replace('pun_footer>', $tpl_temp, $tpl_main);

should be

$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);

Then I don't know what the issue is, because that IS the issue.
Try uploading it again

PHP does: I'd talk to your host if I were you

Did you replace it, save the file, and upload it?

When it's uploaded, it's stored in the temporary location for PHP (usually /tmp on a Linux system). Then PunBB moves it to the avatars folder.
If you're getting the original error though, the issue is with the temporary directory

$tpl_main = str_replace('pun_footer>', $tpl_temp, $tpl_main);

should be

$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
sirena wrote:

If I nuke that reference to the Netscape 0.91 DTD in extern.php, the RSS still seems to work fine. Am I committing any big RSS/ validation sin if I do so?

No, not really: you'll only have issues if a tool using the RSS feed requires the DTD (which it shouldn't).

Moved to Modifications

3,250

(5 replies, posted in PunBB 1.2 troubleshooting)

OK, try removing cache_config.php from the cache directory: if that doesn't work, the mod isn't installed properly