I installed 1.0.5 and It's working just fine.

However, there is a conflict with Mark_As_Read v.1.1 that I don't understand.

Easy Poll 1.0.5 asks to do this in viewforum.php:

#
#---------[ 13. FIND (line:155) ]---------------------------------------------------
#

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;
        }

#
#---------[ 14. REPLACE WITH ]---------------------------------------------------
#

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="viewpoll.php?id='.$cur_topic['moved_to'].'">'.pun_htmlspecialchars($cur_topic['question']).'</a><br /> <span class="byuser"><b>'.pun_htmlspecialchars($cur_topic['subject']).'</b> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
            else if ($cur_topic['closed'] == '0')
                $subject = $lang_polls['Poll'].': <a href="viewpoll.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['question']).'</a><br \> <span class="byuser"><b>'.pun_htmlspecialchars($cur_topic['subject']).'</b> '.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>';
            else
            {
                $subject = $lang_polls['Poll'].': <a href="viewpoll.php?id='.$cur_topic['id'].'">'.pun_htmlspecialchars($cur_topic['question']).'</a><br /> <span class="byuser"><b>'.pun_htmlspecialchars($cur_topic['subject']).'</b> '.$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="viewpoll.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;
            }
        }

In Mark_As_Read 1.1(2) asks to do this in viewforum.php:

From around line 171

Find:

        if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)

Replace with:

        // MOD: MARK TOPICS AS READ - 1 LINE MODIFIED CODE FOLLOWS
        if (!$pun_user['is_guest'] && topic_is_new($cur_topic['id'], $id,  $cur_topic['last_post']) && $cur_topic['moved_to'] == null)

The code does not conflict. At least not that I can see. The EasyPoll changes leave the line

        if (!$pun_user['is_guest'] && $cur_topic['last_post'] > $pun_user['last_visit'] && $cur_topic['moved_to'] == null)

unchanged.

So after getting EasyPoll working, I went in and just made the Mark_As_Read change.

What's happening is that the main index is working as expected, but the forums are not being marked as read.

Kinda frustrating, and I can't see why this is happening.

anyone?

Connorhd wrote:

you can download the db plugin and run

select * from #__online

in the query box

This worked very well.

thank you!!!

Is there some way to view the IP address of the guest users currently online at my install of Punbb?

Sometimes i'll get a mysterious 38-50 guests, and while i'm thinking it's gotta be search engines, I'd still like to be sure it's not some bad news.

How can i do this?

This is cool, I've been wanting to add a chatbox on my index.php, but I'd like it only to be visible to logged in members.

Is there a quick and dirty way to present this in that fashion?

I've got Mark Topics Read installed, and Easy Poll seems to cause errors which conflict with that mod.

bummer...

seems like there's only one line which intervenes, and it's the same before and after in viewtopic.php, but it's still producing errors.

bammer!

k, i can wait.

smile

thanks!

ok, your example looks great.

but i got a dumb question:

does the download include these changes now? can i just download and install (into 1.2.2?)

or will i need to study this thread and apply all the changes mentioned in here?

Fantastic!

it's posting without errors on the 31st now.

smile

thank you!!!!

k, trying now.

Naw...

It's not the editing thing at all.

it's events posted to March 31st???

*shrug*

poked about on the page and couldn't make any sense of it.

way over my head.

Re reading this topic, and re examining the calendar on my board, i found that this error appears after you edit any event.

Delete the event and the error goes away.

But that makes it really hard to allow users to submit events... not knowing which one made the error means everyone's events get wiped. Or, we live with the error.

blah.

Is there another workaround or a fix?

Also: In the install_mod.php the version addition of 1.2.2 doesn't have single quotes around it, so it causes an error.

i fixed it on mine, and it installed just fine.

is:

, 1.2.2

should be:

, '1.2.2.'

just for the sake of clarity.

Nice mod.

after posting a few events in version 2.0.3 punbb 1.2.2 i get this error:

Notice: Undefined index: 31 in /home/user/public_html/path/site/calendar.php on line 53

tried deleting, and re adding events...

seems to pop up after a few events get added.

bummer...

Yeah, confirmed.

i opened the install mod php and added 1.2.2 to the array, and installed, made all the modifications to the files and it's working as expected.

it's marking the read topics as read anyhow.

Thank you!!!

Does this work with 1.2.2?

Can i just change the install_mod.php to include 1.2.2 as well?

I'd love to add this to my board.

Thank you!!!

: )

I was thinking that adding more time to the current users display, and showing everyone who's been around in the last hour might be a better community builder.

Sometimes you miss people between reloading of the page, and the activity can appear quite sparse even on a very active board.

i assume that making a change like this is quite easy. Just a matter of extending the time period. and the title from "currentlyserving " to "recently served"

i searched for a mod, but found nothing.

anything like this already available?