Bingo, followed that link did the simple mod and fixed in no time at all! That should really be included in the main mod.

Is there any chance anyone can give me a hand with that I have very little experience with that.
Thanks,

I have links on my homepage to specific areas on my board and I use this code;

<?php
$cp = curl_init("http://comic-book-collector.com/forum/extern.php?action=active&show=2&fid=11");
curl_exec($cp);
?>

I am currently running Easy_Poll-1.1.3, (I just received help setting this up actually) and am having a great time with it. Unfortunately I have noticed that when I post a poll the poll portion of the post is not visible when linking to the page from a link like I showed above. If you go into the message board and locate the post everything is fine. But seeing it as a recent post on the homepage and clicking the generated link it will only display the text under the poll and not any part of the voting poll at all. I have tested logged in and not logged in and it is the same either way. This section of the board has "create new topic" for members disabled but everyone is allowed to post replies.

Anyone have any idea what i am not doing right?

Thanks,

4

(13 replies, posted in PunBB 1.2 troubleshooting)

FANTASTIC!
That did the job! Thanks guys!

for those trying to follow along

1. Open install_mod.php
2. Find line 12
3. Add the version of the forum you are using to the version array
4. Save and upload

I just added the 1.2.14 number and I had the whole thing installed in like 10 minutes!

Thanks again!

5

(13 replies, posted in PunBB 1.2 troubleshooting)

you didn't wish me luck did you!

"You are running a version of PunBB (1.2.14) that this mod does not support. This mod supports PunBB versions: 1.2.3, 1.2.4, 1.2.5, 1.2.6"

And in fact I am behind because of the 1.2.15 now which would put me even farther ahead, haha!

P.S. Now that I look harder at the available Polls on punres none of them seem to support 1.2.14. I was kind of counting on a poll for my board, is there anything you suggest? Do you know any kind of code I can just run inside the forum that doesn't modify forum files?

6

(13 replies, posted in PunBB 1.2 troubleshooting)

sure thing! wish me luck!

7

(13 replies, posted in PunBB 1.2 troubleshooting)

Right from the resource spot, http://www.punres.org/
I searched poll, and that was my first hit, it looked like the best one to me.

8

(13 replies, posted in PunBB 1.2 troubleshooting)

Do you see the same wrong links in the code here? I see a few mentions of viewtopic but not sure if thats the same ones.  I didn't modiy anything like that myself, there was only one instance for another file where the instruction had me add something in french and I translated it. See if you can see it below I would really apreciate  it!

#---------[ 4. OPEN ]---------------------------------------------------
#

viewforum.php

#
#---------[ 5. FIND (ligne: 39) ]---------------------------------------------------
#

require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';

#
#---------[ 6. ADD AFTER ]---------------------------------------------------
#

// Load poll language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/polls.php';

#
#---------[ 7. FIND (ligne: 44) ]---------------------------------------------------
#

$result = $db->query('SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics FROM '.$db->prefix.'forums AS f 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 f.id='.$id) or error('Impossible de reFIND les informations du forum', __FILE__, __LINE__, $db->error());

#
#---------[ 8. FIND ]---------------------------------------------------
#

f.sort_by, fp.post_topics

#
#---------[ 9. AFTER, INSERT ]---------------------------------------------------
#

, fp.post_polls

#
#---------[ 10. FIND (lign: 64) ]---------------------------------------------------
#

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
else
    $post_link = '';
    
#
#---------[ 11. ADD AFTER ]---------------------------------------------------
#

if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'&type=poll">'.$lang_polls['New poll'].'</a></p>'."\n";

#
#---------[ 12. FIND (lign: 113) ]---------------------------------------------------
#

$sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];

#
#---------[ 13. FIND ]---------------------------------------------------
#

sticky, moved_to

#
#---------[ 14. AFTER INSERT ]---------------------------------------------------
#

, question

#
#---------[ 15. FIND (lign: 117) ]---------------------------------------------------
#

    // With "the dot"
    switch ($db_type)
    {
        case 'mysql':
        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 16. FIND ]---------------------------------------------------
#

t.sticky, t.moved_to


#
#---------[ 17. AFTER INST ]---------------------------------------------------
#

, t.question

#
#---------[ 18. FIND (ligne: 120) ]---------------------------------------------------
#

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

#
#---------[ 19. FIND ]---------------------------------------------------
#

t.sticky, t.moved_to


#
#---------[ 20. AFTER INSERT ]---------------------------------------------------
#

, t.question

#
#---------[ 21. FIND (lign: 124) ]---------------------------------------------------
#

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 22. FIND ]---------------------------------------------------
#

t.sticky, t.moved_to


#
#---------[ 23. AFTER INSERT ]---------------------------------------------------
#

, t.question

#
#---------[ 24. FIND IN THE SAME LIGN ]---------------------------------------------------
#

t.sticky, t.moved_to


#
#---------[ 25. AFTER INSERT ]---------------------------------------------------
#

, t.question

#
#---------[ 26. FIND (lign: 155) ]---------------------------------------------------
#

    while ($cur_topic = $db->fetch_assoc($result))
    {
        $icon_text = $lang_common['Normal icon'];
        $item_status = '';
        $icon_type = 'icon';

        if ($cur_topic['moved_to'] == null)
            $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
        else
            $last_post = ' ';

        if ($pun_config['o_censoring'] == '1')
            $cur_topic['subject'] = censor_words($cur_topic['subject']);

#
#---------[ 27. ADD AFTER ]---------------------------------------------------
#

        if ($cur_topic['question'] != '') 
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['question'] = censor_words($cur_topic['question']);
        
        
            if ($cur_topic['moved_to'] != 0)
                $subject = $lang_forum['Moved'].': ' . $lang_polls['Poll'].': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
            else if ($cur_topic['closed'] == '0')
                $subject = $lang_polls['Poll'].': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
            else
            {
                $subject = $lang_polls['Poll'] . ': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
                $icon_text = $lang_common['Closed icon'];
                $item_status = 'iclosed';
            }
    
            if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
            {
                $icon_text .= ' '.$lang_common['New icon'];
                $item_status .= ' inew';
                $icon_type = 'icon inew';

    
                $subject = '<strong>'.$subject.'</strong>';
                $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
            }
            else
                $subject_new_posts = null;
    
            // Should we display the dot or not? :)
            if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
            {
                if ($cur_topic['has_posted'] == $pun_user['id'])
                    $subject = '<strong>·</strong> '.$subject;
                else
                    $subject = '  '.$subject;
            }
        } 
        else 
        {
        
#
#---------[ 28. FIND (lign: 170) ]---------------------------------------------------
#

        // Should we display the dot or not? :)
        if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
        {
            if ($cur_topic['has_posted'] == $pun_user['id'])
                $subject = '<strong>·</strong> '.$subject;
            else
                $subject = '  '.$subject;
                
#
#---------[ 29. ADD AFTER ]---------------------------------------------------
#

        }

9

(13 replies, posted in PunBB 1.2 troubleshooting)

Well it appears to work but when I create a new poll it doesn't show up. The only way I can view it is if I click "show my posts".

The page looks normal but when you vote the output is rather ugly and spaced out, how I'm sure it isn't intended to be.

But I think I have figured out what's happening, here is something i had trouble deciding what to do with.

#
#---------[ 98. OPEN ]---------------------------------------------------
#

style/VOTRESTYLE.css

#
#---------[ 99. ADD, AT THE BOTTOM ]---------------------------------------------------
#

p.poll_info {
text-align: center;
clear: left;
margin: 7px;
}
div.poll_question {
float: left;
clear: both;
text-align: right;
width: 50%;
margin: 0.3em;
height: 1.2em;
}
div.poll_result,div.poll_result_yesno {
float: left;
text-align: left;
width: 45%;
margin: 0.3em;
padding: 0;
height: 1.2em;
line-height: 1.2em;
}
    div.poll_result_yesno {
    width: 22%;
    margin-right: 0.1em;
    }
img.poll_bar {
border-right: 2px solid #0066B9; /* teinte plus foncé que la couleur principale du forum */
background-color: #006FC9; /* Couleur principale du forum */
height: 1.2em;
margin: 0;
}

I of course don't use that style, it  is also in french when I search for info on it. Pasting that code into my style doesn't appear to make any difference than not using it at all. So I'm kinda lost for what to fix now, lol

10

(13 replies, posted in PunBB 1.2 troubleshooting)

Now it says;
Parse error: syntax error, unexpected $end in /webroot/c/o/comic014/www/forum/viewforum.php on line 301

there is no line 301 is there?

Hello I have just tried to install the Easy_Poll + and I have finished all the mods and uploaded everything but I get an error when I view any forum. IT just says error on viewforum.php line 200. Anyone have a clue what I'm missing or doing wrong there?

<?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

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


define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';


if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);


$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
if ($id < 1)
    message($lang_common['Bad request']);

// Load the viewforum.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';

// Load poll language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/polls.php';

// Fetch some info about the forum
$result = $db->query('SELECT f.forum_name, f.redirect_url, f.moderators, f.num_topics, f.sort_by, fp.post_topics, fp.post_polls FROM '.$db->prefix.'forums AS f 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 f.id='.$id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
if (!$db->num_rows($result))
    message($lang_common['Bad request']);

$cur_forum = $db->fetch_assoc($result);

// Is this a redirect forum? In that case, redirect!
if ($cur_forum['redirect_url'] != '')
{
    header('Location: '.$cur_forum['redirect_url']);
    exit;
}

// Sort out who the moderators are and if we are currently a moderator (or an admin)
$mods_array = array();
if ($cur_forum['moderators'] != '')
    $mods_array = unserialize($cur_forum['moderators']);

$is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && array_key_exists($pun_user['username'], $mods_array))) ? true : false;

// Can we or can we not post new topics?
if (($cur_forum['post_topics'] == '' && $pun_user['g_post_topics'] == '1') || $cur_forum['post_topics'] == '1' || $is_admmod)
    $post_link = "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'">'.$lang_forum['Post topic'].'</a></p>'."\n";
else
    $post_link = '';
if (($cur_forum['post_polls'] == '' && $pun_user['g_post_polls'] == '1') || $cur_forum['post_polls'] == '1' || $is_admmod)
    $post_link .= "\t\t".'<p class="postlink conr"><a href="post.php?fid='.$id.'&type=poll">'.$lang_polls['New poll'].'</a></p>'."\n";


// Determine the topic offset (based on $_GET['p'])
$num_pages = ceil($cur_forum['num_topics'] / $pun_user['disp_topics']);

$p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p'];
$start_from = $pun_user['disp_topics'] * ($p - 1);

// Generate paging links
$paging_links = $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewforum.php?id='.$id);


$page_title = pun_htmlspecialchars($pun_config['o_board_title'].' / '.$cur_forum['forum_name']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

?>
<div class="linkst">
    <div class="inbox">
        <p class="pagelink conl"><?php echo $paging_links ?></p>
<?php echo $post_link ?>
        <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul>
        <div class="clearer"></div>
    </div>
</div>

<div id="vf" class="blocktable">
    <h2><span><?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></span></h2>
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
            <thead>
                <tr>
                    <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th>
                    <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th>
                    <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>
                    <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
                </tr>
            </thead>
            <tbody>
<?php

// Fetch list of topics to display on this page
if ($pun_user['is_guest'] || $pun_config['o_show_dot'] == '0')
{
    // Without "the dot"
    $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to, question FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
}
else
{
    // With "the dot"
    switch ($db_type)
    {
        case 'mysql':
        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.question FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.question FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.question FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.question, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

    }
}

$result = $db->query($sql) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

// If there are topics in this forum.
if ($db->num_rows($result))
{
    while ($cur_topic = $db->fetch_assoc($result))
    {
        $icon_text = $lang_common['Normal icon'];
        $item_status = '';
        $icon_type = 'icon';

        if ($cur_topic['moved_to'] == null)
            $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
        else
            $last_post = ' ';

        if ($pun_config['o_censoring'] == '1')
            $cur_topic['subject'] = censor_words($cur_topic['subject']);

if ($cur_topic['question'] != '') 
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['question'] = censor_words($cur_topic['question']);
        
        
            if ($cur_topic['moved_to'] != 0)
                $subject = $lang_forum['Moved'].': ' . $lang_polls['Poll'].': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
            else if ($cur_topic['closed'] == '0')
                $subject = $lang_polls['Poll'].': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
            else
            {
                $subject = $lang_polls['Poll'] . ': <a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span><br />[ '.pun_htmlspecialchars($cur_topic['question']).' ]';
                $icon_text = $lang_common['Closed icon'];
                $item_status = 'iclosed';
            }
    
            if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
            {
                $icon_text .= ' '.$lang_common['New icon'];
                $item_status .= ' inew';
                $icon_type = 'icon inew';

    
                $subject = '<strong>'.$subject.'</strong>';
                $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
            }
            else
                $subject_new_posts = null;
    
            // Should we display the dot or not? :)
            if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
            {
                if ($cur_topic['has_posted'] == $pun_user['id'])
                    $subject = '<strong>·</strong> '.$subject;
                else
                    $subject = '  '.$subject;
}
            }
        } 
        else 
        {
        if ($cur_topic['moved_to'] != 0)
            $subject = $lang_forum['Moved'].': <a href="viewtopic.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
        else if ($cur_topic['closed'] == '0')
            $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
        else
        {
            $subject = '<a href="viewtopic.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
            $icon_text = $lang_common['Closed icon'];
            $item_status = 'iclosed';
        }

        if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)
        {
            $icon_text .= ' '.$lang_common['New icon'];
            $item_status .= ' inew';
            $icon_type = 'icon inew';
            $subject = '<strong>'.$subject.'</strong>';
            $subject_new_posts = '<span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
        }
        else
            $subject_new_posts = null;

        // Should we display the dot or not? :)
        if (!$pun_user['is_guest'] && $pun_config['o_show_dot'] == '1')
        {
            if ($cur_topic['has_posted'] == $pun_user['id'])
                $subject = '<strong>·</strong> '.$subject;
            else
                $subject = '  '.$subject;
        }

        if ($cur_topic['sticky'] == '1')
        {
            $subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
            $item_status .= ' isticky';
            $icon_text .= ' '.$lang_forum['Sticky'];
        }

        $num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);

        if ($num_pages_topic > 1)
            $subject_multipage = '[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]';
        else
            $subject_multipage = null;

        // Should we show the "New posts" and/or the multipage links?
        if (!empty($subject_new_posts) || !empty($subject_multipage))
        {
            $subject .= '  '.(!empty($subject_new_posts) ? $subject_new_posts : '');
            $subject .= !empty($subject_multipage) ? ' '.$subject_multipage : '';
        }

?>
                <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>>
                    <td class="tcl">
                        <div class="intd">
                            <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo trim($icon_text) ?></div></div>
                            <div class="tclcon">
                                <?php echo $subject."\n" ?>
                            </div>
                        </div>
                    </td>
                    <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_replies'] : ' ' ?></td>
                    <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>
                    <td class="tcr"><?php echo $last_post ?></td>
                </tr>
<?php

    }
}
{

?>
                <tr>
                    <td class="tcl" colspan="4"><?php echo $lang_forum['Empty forum'] ?></td>
                </tr>
<?php

}

?>
            </tbody>
            </table>
        </div>
    </div>
</div>

<div class="linksb">
    <div class="inbox">
        <p class="pagelink conl"><?php echo $paging_links ?></p>
<?php echo $post_link ?>
        <ul><li><a href="index.php"><?php echo $lang_common['Index'] ?></a> </li><li>» <?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></li></ul>
        <div class="clearer"></div>
    </div>
</div>
<?php

$forum_id = $id;
$footer_style = 'viewforum';
require PUN_ROOT.'footer.php';

I'm glad that my post helped you but it still puzzles me why it happened to either of us!

I shouldn't talk while its working or I will jinx myself! LOL

BINGO!

Man I'm stumped! I still don't understand what actually happened. It appears to be perfect now though.

Thanks a bunch!

Thats the thing, it isn't giving me any error, its just making the stuff below it in its column dissapear and the newest posts arn't showing up.

I fixed it to elbekko's code, not sure how I lost my space, and it still doesn't work.

What is cURL?

Thanks,

Suddenly my included "recent posts" feature has dissapeared from my site. Not only that the error it is causing has taken out the rest of the pictures and text in that column of my page. The tag I'm using is;

<?include "http://terrainland.com/forum/extern.php … amp;show=7";?>

Before someone says, yes my forum is set up for guest viewing. Anyone have  any clue?

Thanks.

Thanks very much again for all the great input!
Hope this helps some poeple other than me as well!

Thanks Smartys! That looks like what I want, I'll have to check it out!  Although I may just wait until 1.3 because I'm always more nervous doing that stuff myself.

Aye I agree and also I figured it was some kind of automated thing. I don't know how it can be worth their time still though, who in their right mind would order miracle drugs that were spammed on a website about miniature wargames.... but anyways is there anyway we can have posts sent to use so we can verify them and allow or dissallow them to be actually posted. Kind of like how yahoo newgroups work. This would be no more or less annoying oto me because I'm going in and getting rid of them anyways at the moment but it would stop people from seeing it.

No but  it <censored> stops <censored> from getting their <censored> word across easily.

And when it comes down to it, if we can show them they are wasting their time they will move on to somewhere or something easier to spam.

P.S. Dr.Jeckyl I agree they should get the death penalty, or at least a year in jail for every person they have bothered.

I have found a useful way of slowing down spammers registering on a message board. I have been having trouble with drug spam lately on my forum and have had good luck slowing them down by censoring the drug names. Censoring a word stops anyone from using it in their username as well as posting messages with it. They seem to always use the drug name in their user name and even if not they can't post anything about it without me easily seeing my censored message come up <No Drug Spammers!>.

Drugs have no place on my board and are gennerally something that doesn't need to be discussed, as well I also think I have a younger crowd of visiters so this is definatly something I want to keep an eye on. Here are the drug names that most people might as well just go ahead and censor to stop future annoying spammers. 
*phentermine*
*tramadol*
*xanax*
*hydrocodone*
and maybe even *Viagra*

Make sure to use the wildcard * so that they can't just trick the system.

If you have any advice or other tricks to share with us please post it here!

I know it was a while ago since I posted this, but I'd still like to hear what other people do. Would it be a bad idea to redirect those addresses to my main page or main forum page, because some of the things actually come up blank pages with error messages like the extern.php one.

Just curious for input, thanks.

#      Hits               Visits                      URL
1       300 3.28%     293 33.11%            /
2       299 3.27%     216 24.41%            /forum/extern.php
3       102 1.12%     58 6.55%               /forum/search.php
4       144 1.58%     39 4.41%               /forum/viewtopic.php
5       86 0.94%       24 2.71%               /forum/post.php


That can't be good! That is the top 5 entry pages 1 month after I added my forum. 4 of the top 5 are coming into my webpage into forum pages that give them very little info!

What should I do?
An advice greatly apreciated!

Thanks

I am thinking about doing something where I need my board users to be able to rate new threads, and have a system where you can view top 5 (or however many you wish), bottom 5, 5 newest posts, etc.

This would be similar to:
http://www.ratemykitten.com/
http://www.ratemymullet.com/
rate my girlfriend... and other not so acceptable sites.

Only differance is they would post a picture and a description / story.

Is this possible in PunBB?
Would there be a simple mod you could do to include this type of thing?

Thanks,

24

(4 replies, posted in PunBB 1.2 discussion)

Wow, thats great! I should have know Wikipedia would save the day again! LOL

This is gunna be great....

c*ck sucking mother f*cker
will now read...
rooster lawnmower mother toaster

People have no reason to swear on my board anyways, im just worried about links on my holmepage as I said earlier.

And, AOL...... yikes I'm scared to look there!

Thanks again!

25

(4 replies, posted in PunBB 1.2 discussion)

As a business I want to filter out as many swear words as I can. Especially because I am going to have new post links displayed on my main page. It's too bad there wasnt an easy way to post in a large list or words. I'm sitting here trying to think up ever word in the book, and it ain't short list, lol.

The cool thing about PunBB is the replace feature. That way when someone swears up a storm, you can make them look like they are babling giberish, at least until you remove them and their post.

Anyone know of a good rescource for swear words? lol