The German lang pack is not included in the main Easy Poll zip, it is included in the German PunBB language zip.
But this is not relevant because I get the same bad results when I switch to English as forum language.

You really got PunBB 1.2.14 and Easy Poll + v.2.0 working out-of-the-box? Yes, of course I believe you, but I don't know what I could do to make it work, other than checking the c&p 3 times (which I did, once with a diff output which matched the Readme file exactly).

Ok, there is a way you could help - although it's asking a lot of you and I would not mind if you wouldn't do it smile
You coould send me your modified files in a zip or tarball, so I could see where there are differences.

wobo

OK, sorry, elbekko, but I'm getting nowhere with the Easy Poll mod!

After fiddling around for 2 days I did a completely fresh 1.2.14 installation without any mods, no extra data or else, just the installation out-of-the-box with the admin user and the "Test" category and forum. The only "extra" part I installed was the German language.

Then I installed Easy Poll + v.2.0 and had the same malfunctions as in the previous installation. This proves to me that Easy Poll does not work with PunBB 1.2.14 - at least not without some changes, and I do not know which changes to the original mod I would have to make.

wobo

Step by step.... smile

In search.php the problem is with this change: (around line 744)

original:

echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</option>'."\n";

replaced by:

    if ($cur_forum['parent_forum_id'] == 0)
    {
         echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</option>'."\n";
    }
    else
    {
         echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum['fid'].'">   '.pun_htmlspecialchars($cur_forum['forum_name']).'</option>'."\n";
    }

The mistake is: the placeholders for space must be framed in double quotes! So, the correct line is:

echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum['fid'].'">"   "'.pun_htmlspecialchars($cur_forum['forum_name']).'</option>'."\n";

Of course this could be solved a bit better because now you have this space framed with double quotes in the dropdown box in your search page. But it works this way and does not without the quotes. smile

wobo

elbekko wrote:

Only thing I can see is a possible incompatibility with the subforum mod (if I'm seeing it right).

Yes, that's what I think as well. I'll remove the Subforum MOD and check. But that's bad because both features are needed badly. I have 15 subforums at the moment and was planning to open at least 10 more, so reducing the first level forums (53 in 9 categories, it's a monster).

wobo

Wow, that's a great tool! FIles are uploaded:

http://elbekko.pastebin.ca/359570 admin_forums.php
http://elbekko.pastebin.ca/359575 search.php
http://elbekko.pastebin.ca/359578 viewtopic.php

wobo

OK, update:

I have installed the MOD. install_mod.php worked without error message, the fields it is supposed to set in the database are set.
I checked the c&p twice.

Result:
I get a blank page whenever I start viewtopic.php, search.php and admin_forums.php. I'll check the code once more.
And the poll-related text in the output of admin_groups.php is in french instead of German (yes, I did change the English and German lang files)

wobo

Yes, I see. smile
I just looked at the database in SMF and there it is a table on its own with fields:

ID_BOARD  smallint(5)   UNSIGNED   Yes   0
ID_MEMBER  mediumint(8)   UNSIGNED     Yes      0 
logTime      int(10)     UNSIGNED     Yes      0
ID_MSG     mediumint(8)  UNSIGNED     Yes      0

Currently there are 6,504 lines in this table, meaning all 1104 users together have left unread marks on a total of 6504 messages out of 131,080 messages. I do a user-cleanout in spring and late automn where I clean out all users who haven't logged in for 1 year. So, the oldest marks should be a little bit older than 15 months. I could also give you the highest number of marked posts by a user if you want.

wobo

First time I installed it I got a blank page when I start PunBB. I went back to the status before the installation of this MOD and did all other MODs for the bare necessities first. Now I'm coming back and I'm in the middle of the c&p orgy. I'll come back reporting after that's done.

wobo

deadram wrote:

Now choose to either add a value for each uid, every time a new pid is made, since new pid = topic_id has new post (post_unread)
or choose to add a value for uid/tid pair whenever that uid sees that tid. (post_read)

1) Is slow to make posts, and will increase the DB size as the number of inactive users increases.
2) Is fast to post, but will increase the DB size as the number of active users increases.

I don't know how this could be implemented, as I said, I'm not a coder. All the phpBB MOD needs in the database is one additional field in the user table:

ALTER TABLE phpbb_users ADD user_unread_topics TEXT;

From my experience with 1 year with that phpBB MOD and nearly 2 years with the similar but implemented function in SMF I can say that with a forum which has 1K registered users, more than 20 boards in the forum and usually 50-70 posts per day, I never experienced any slow down of performance or any significant increase of the database size which were caused by this function. By now the database has more than 130K posts and I do not see any visible performance difference to my fresh test forum with PunBB and 20 dummy posts and 5 dummy users.

wobo

Smartys wrote:

wobo: The only problem I see with your suggestion is that you can't store an infinite amount of read information in someplace (say, a text field in the users table).

Not infinite but I did not see any porblems in all that time with this MOD in phpBB or the same function in SMF. When a user stays away too long or forgets to mark all unread and "uninteresting" posts as read for a while he may get a database error one day when he clicks on "Show unread posts". All he has to do then is clicking on "Mark all forums read" and he can go on. But that happened only in few cases where the user kept more than 800 or 1K or more unread flags.

That's why the last visit time is so nice: it reduces the amount of data we have to store by a great deal. If you have an issue with the last visit time on your forum, you can use the Mark topics as read mod and set the timeout much higher (as in to several hours)

No. The timeout is no help if you have a connection breakdown or you want to shutdown your laptop when you enter the plane (and leave the WiFi access area) after having read some of the new posts while waiting for boarding. It does not solve the essential problem of saving the unread marks independent from sessions:
I click on the link "Show new posts" and I see 50 or 60 posts (that's normal in our forum when I stay away for a day or a weekend). I do not have the time to read all of them, so I just read the first 10, log out, go fishing, come back in the afternoon, log in and with a click on "Show unread posts" I have my list of unread posts plus the posts that came in after I logged out.

This is working right now in SMF on my forum with 1K registered users and around 50 new posts coming in daily (worked as well with the MOD in phpBB). I did not experience any heavy load on mysqld on the server or any slowing down or anything else.

Looking at the "Unread MOD" in phpBB this functionality does not seem to be such a problem to be implemented in PunBB by an experienced PHP coder. Maybe someone could have a look at that MOD and get his ideas from there. Or he could port that MOD to PunBB. Anyhow, this function became so popular to the users that I can't offer them a forum without it. It's one of the MUST HAVEs, once you know that it exists. smile

wobo

Oh? I already added the version, caused by logical thinking. smile

wobo

I didn't smile

Ah, that simple? ;D
ok, done that, works.

wobo

Installed and tested all 3 mods, working, thx again!

wobo

I searched for some time but can't find the answer to something everybody seems to know:
In the readme.txt it says at the end: "You should also re-generate your quickjump cache!"

How do I do that? Seems that without this regeneration the changes are not visible.

wobo

elbekko wrote:

It works on 1.2.14 excellenty smile
Only thing that would need to change is install_mod.php I think.

Good news that it works, now would you care to show the changes you made to install_mod.php? Or did you install in a previous version?

wobo

elbekko wrote:

The pain was that searching for code is hard because it's all in French.

Hmm, you must have a diferent version then. Here everything is in English, except for those error messages - but you can easily c&p the English error messages from the original code in PunBB.

I was referring to the changed code not working in 1.2.14

wobo

There was much talk about what would be sensibel and feasable. I've been using phpBB and SMF. Now I want to switch to PunBB because SMF is not a free (GPL'd) forum.

Concerning unread posts:
Say, I open the forum and there are 20 new posts. I start rreading and writing and then my beautiful neighbor rings at the door. When I come back I am logged off (or connection to the ISP has broken or my grandpa's dog ate the power cord). When I log in again - where are the marks of the 10 new posts I could not read in my previous session?

This makes sense and it is feasable and it is possible to code in a PHP software (although I myself could not do it). But I have seen it in function: Look at the Unread MOD in phpBB and look at the implemented function in SMF. Both were not causing any remarkable load for the mysqld in a website with 1K registered users and 130K postings in 3 years.
In both functions there were links to: "Show unread posts" (which shows all posts you haven't read) and "Show new posts" (which shows new posts since your last login.
And there was "Show answers to your posts" (which does the obvious)
The "Show unread posts" function can be tagged with a time limit (after x days the flags go away - in a FIFO way), so the amount of data would not get too large.

wobo

Thx, guardian, will check out the links. Especially the marking of new posts is a go/nogo for the forum software we want to use.

wobo

wobo wrote:

I've to go hunting for the error in search.php.

Found it.

So I would love to hear about the tedious work of installing the Easy Poll mod on PunBB 1.2.14 smile
Polls are essential in our forum, not just chitchat polls but also polls for decisions about changes and such.

wobo

I m in the process of migrating a smf forum with 1K registered users and 130K posts to PunBB. I installed the current version, installed the PM mod (because that's what the converter recommends). Before I do the converting I want to set up the new forum with just the bare necessities. So, a couple of open questions arose (and of course I'm looking how to solve those problems). I marked the essential things which are a showstopper if not available or I can't fix them.

Editor:
Where is...
... the smilie list (important)
... the list of available bbc tags (important)
... the globbing option for the recipient's name

Forum view:
Why do I get a "new posts" mark in the overall view when the new post was just posted by me? It's not new for me, right? (essential)
Why do I get a "new posts" mark in the overall view after I read the post in question? I read it, it's not new anymore, right? (essential)
Why do I get no "new post" mark in a board although there are new posts which I did not read during my last session (connection broke down before I could read them all)? So it's still new for me, right? (essential)

How do I get Subforums? I searched the mod ressources but the only "subforum" mod was not available (download page showed 404). (essential)

That's all for the first day of testing but I'm sure there is more to come when I get deeper into the matter.

wobo

I just discovered that after de-installing Easy Poll all pages function except the search (and all links that rely on search.php). I've to go hunting for the error in search.php.

It does, it's merely a pain to install

Could you elaborate a little bit, pls ? smile

My problem is that I see a blank page when I start /punbb/index.php.
I traced my way back to the status without the Easy Poll mod and it worked nicely.

Yes, install_mod.php worked ok (gave no errors) and the table and additional fields are in the database. I checked the cut&paste work twice, no mistake.
I did the complete installaiton of the mod again and had the same result: blank page.

Maybe the mod does not work with PunBB 1.2.14 including the PMS v.1.2.2 by Connorhd ?

wobo

Jansson wrote:

However, updating from 1.2 to 1.3 will be much easier than coming from any other forum software to PunBB.

Not if a large part of the system consists of MODs, especially MODs which have their part in the database! Reading that the majority of the MODs will be integrated differently in 1.3 it seems to me that updating from 1.2 to 1.3 will as gruesome for me as switching from any other software to PunBB.
You are right if we were talking about the pure PunBB without any extensions.

Ok, so, assuming that Richard agrees to the opinions given by Smartys and Jansson I'll have to look at phpBB as the only other GPL'd software which meets the most requirements of our forum. I will keep an eye on PunBB though for another forum I plan to build soon.

wobo

Smartys wrote:

So, if you want to use PunBB then use 1.2: I doubt you'll see 1.3 with all the major extensions before fall at the VERY earliest

As I wrote, that would be ok, as long as it is in this year.

May be I did not make my point clear enough:
If 1.3 will come this year I can wait. If not, I see no point in installing 1.2 and all necessary MODs and work on the conversion of the database now and going through the same ordeal a couple of months later again. Therefore I would need a little more than "It's ready when it's ready." Although I understand that in a non-commercial surrounding this is often all you can get.

Fact is, I want to change forum software within this year. Be it punBB, good. If not, as well, though I'd personally prefer punBB.

wobo