1.1.3 released

Change Log

Fixed:
Multiselect yes/no polls would severly error when there were no votes
You were able to enter a space for an option and it would still find it semi valid
Problem with quotes - reported by wrwo 
Fixed a problem with the tab indexes of certain pages - reported by wrwo
Fixed a problem in the upgrade readme with some double coding - reported by Bulgaricus

Changed:


Added:
Nothing New

Adding:
Ability to prevent certain user groupgs from creating new polls - requested by Connorhd (POSTPONED)

windup, are you sure you ran install_mod.php, also what database type are you using?

Put the loop in a new thread


//Thready.h
#include "stdafx.h"


class Thready {
protected:
    bool terminateThreadFlag;
    HANDLE threadHandle;

public:
    Thready();

    void begin();

    void end();

    virtual void threadProc() = 0;
};
#endif
//Thready.cpp
#include "Thready.h"

Thready::Thready() {
    terminateThreadFlag = false;
    threadHandle = NULL;
}


void Thready::end() {
    terminateThreadFlag = true;

    WaitForSingleObject(threadHandle, INFINITE);
}


void WindowsThreadFunction(Thready* theThread) {
    theThread->threadProc();
}



void Thready::begin() {
    terminateThreadFlag = false;
    threadHandle = CreateThread(NULL,0, (LPTHREAD_START_ROUTINE) WindowsThreadFunction, this, 0, NULL);
}
//somefile.h
#include "Thready.h"
class MyClass : public Thready {
    public:
           Myclass();
    private:
            void threadProc();
      };
//Somefile.cpp
#include "somefile.h"
MyClass::MyClass() {
    //Penis
}
void MyClass::threadProc() {
//Do loop
}
//Main.cpp
#include "somefile.h";
MyClass t;
SomeStartFunction () {
t.begin();
}

Or something like that... I'm a c++ newb wink

At the very bottem of the page there should be stick, unstick, move etc.

55

(1 replies, posted in PunBB 1.2 bug reports)

Ah it appears that being able to post is the least of your problems for time changes, ignore this topic wink

56

(1 replies, posted in PunBB 1.2 bug reports)

For the posting flood protection there needs to be some sort of check and alteration made if (time() -last_post field) is a negitive value.

(time() - last_post) can become negitive when checking if the servers timezones or time has changed. This can return a high negative value and result in no users being able to post. smile


I think thats right O_O (If what I just said is somehow incorrect, and I have made an ass of myself. Feel free to tell me)

The most likely explanation is that you have already tried to install the mod once, and I'm guessing something went wrong or you wouldn't be trying again. Anyways the column may already exist

1.1.2 has been released

1.1.1 to 1.1.2 changelog

Fixed:
Announcement readme being incorrect - reported by shinji
Problem with pagnated pages in viewforum directing to the wrong file
Previewing polls worked incorrectly
When the message field was left out the error was wrong

Changed:
Almost completly rewrote poll.php to allow replying
Updated viewpoll.php to work with new poll.php

Added:
Search.php now should link to correct file
Total number of votes is now displayed in the polls

Adding:
Ability to prevent certain user groupgs from creating new polls - requested by Connorhd (POSTPONED)

Also note if there are any outstanding bugs or modifications that you think should be made, please post them now as I will try to begin development once again

59

(8 replies, posted in PunBB 1.2 discussion)

Hi, most of you prolly havn't the slightest clue about who I am which is cool. However even though this most likely will be ignored I was wondering if those very few of you who happen to run your punbb installation in debug. If you could post your OS and your average page generation time for the index. I am basically collecting some statistics for a mod I am considering making and I would like to see how long its taking punbb to create its pages.

Thanks, Mediator wink

Taken from punres.org

Mediator wrote:

I am sorry, it will most likely be a few weeks before I can release another version of this mod. I am going through a move, and several inet problems and I just do not have the time to code right now.

It will be fixed in 1.1.2

Yes it should, I'll release a new version sometime soon, thanks

63

(3 replies, posted in Feature requests)

Its a gaming community the majority of our users are ages 9-13. So yeah, we have an assload of bans wink

64

(3 replies, posted in Feature requests)

Request: The ban page should list the bans on multiple pages, and provide a search function to find individual bans.

Reasoning:
   1) When the ban page contains several hundreds of bans loading time can be very high.
   2) Although browsers do have the find function, it would be handy to be able to quickly search based on username, ip, email, etc.
   3) If the ban page is listed on multiple pages, a search function will certainly be required.



Thanks wink

shinji thanks, the readme fixes will be in 1.1.2 smile

Gardell, I am unable to reproduce what I believe you said

-Create New Poll
-Scroll to "Move Topic"
-Click "Move Topic:
-Check leave redirect
-Click "Move"
-Redirect screen comes up as normal
-Redirect link in old forum works as should
-Link from new forum works as should

I believe thats what you said, and I just tried and it worked fine for me

Ah crap, my bad...anyways moderatepoll.php should go in the base dir, along with vote.php, poll.php, etc

1.1.1 has been released

Changes

Fixed:
Problem with moderating polls
Problem with the sql queries in the readme for compliance with the announcement mod

Changed:
Nothing

Added:
Nothing

Adding:
Ability to prevent certain user groupgs from creating new polls - requested by Connorhd (Still...POSTPONED)
$result = $db->query('SELECT voters FROM ' . $db->prefix . 'polls WHERE pollid=' . $id . '') or error('Unable to fetch poll info', __FILE__, __LINE__, $db->error());

$cur_poll = $db->fetch_assoc($result);
if (!empty($cur_poll['voters']))
   $voters = unserialize($cur_poll['voters']);
if (in_array($pun_user['id'], $voters))
   echo "User has voted";

Poll is the pollid, and Yes, No deal with the type

Well technically it could be a bug, but I am actually fine with the way that works out as I cannot see anyone reason why you would need to see the poll in show new posts. As for the two titles one is for the title of a discussion, the other is the actual poll question

72

(4 replies, posted in PunBB 1.2 discussion)

Erm...I dunno if I am suposed todo this but my Extra Boxes mod has support for advertisements and still lets you have announcements and what not.

http://punbb.org/forums/viewtopic.php?id=6784
You can view a demo at: http://www.rscheatnet.com

Edward wrote:

I don't know if the problem is in the install script or in MySQL database?

The problem is with your database, the table 'topics' usually punbb_topics or such has an extra field 'question' to get the poll script to install correctly you will need to remove this.

Ted: You missed a change in the readme smile The following outlines this

// 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 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'];
}

Accourding to the readme this should be

// 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'];
}

The steps in the readme are 9 and 10 incase you are wondering. That should fix everything up for you.

Edward: you either have another poll mod installed, or already installed Easy Poll

Spud: What Database type do you use, and are you sure you followed the readme correctly. If so please email or upload your viewforum.php file somewhere as a text file

ted: Exactly the same as spud, I need to know what type of database you use, and if you are sure you followed the readme correctly.