801

(5 replies, posted in PunBB 1.2 troubleshooting)

gizmo 1 wrote:

gizmo wrote:

thnx I'm going to give it a try with that mod.
i presume i can find it in your mods, i'll look for it!!
see ya

cannot find the Mod

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

##
##
##        Mod title:  RealViews
##
##      Mod version:  1.0
##   Works on PunBB:  1.0.1
##     Release date:  2003-12-18
##           Author:  David Djurbäck (chacmool@spray.se)
##
##      Description:  Adds a new column with the REAL amount of users who
##                    have view the topic (one count per user, not one per visit)
##
##   Affected files:  viewforum.php
##                    viewtopic.php
##                    post.php
##                    en_forum.php
##
##       Affects DB:  Yes
##
##            Notes:  
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download it here, and view the screenshot here.

The mod saves all user-id's in the topic to be able to show how many users actually looked at the topic, and not how many times someone read the topic.

Hmm, did you mean: "but I CAN'T see it when"?

Then the problem's in viewtopic.php and not in post.php.

804

(3 replies, posted in Feature requests)

I think you'll only end up with a forum filled with meaningless posts anyway...

"Patch" to fix the quote-problem:

In both post.php and edit.php:
#---------[ FIND ]----------------------------------------------------------
#

$answer = addslashes($_POST['answers'][$i]);

#
#---------[ REPLACE ]-------------------------------------------------------
#

$answer = stripslashes(htmlspecialchars($_POST['answers'][$i], ENT_QUOTES));

#
#---------------------------------------------------------------------------

Magebarf:
I'm done with the poll-admin-info-stats-thing!

Also solved the quote-problem now smile
( New file available in the first post. )

807

(87 replies, posted in PunBB 1.2 discussion)

I see that one thing I've been waiting for, for a while, is done:

Rewrote the visit management code again. All the data is now stored in the database. Thus, the cookie only contains the username and the password checksum.

Any comments on a possible release date?

Magebarf wrote:

I've got a request, that would be rather handy for the way we use the poll function...

We use it to vote for different questions, rules, suggestions and other similiar stuff in our organisation, and we also have a separate forum part for our board where the board members can do the "final voting" for things. It would be very useful to be able to see which of the members that have voted, so you can tell the other ones to do so.

Well, other than that, it works great! Kickass mod! Thanks for the work you've done already!

It'l be no problem to implement I think... maybe I'll look at it sometime smile

I've hade som thoughts about doing another page in the admin-section for this kind of things.

Scriptweaver wrote:ps: I didn't change my sql database going from 1.0 to 1.1, I assume nothing changes there...

There is one change in the permissions-table...

Yeah, I've got it. I have just looked at it, not tested it, and I saw nothing wrong. Have you tried v1.1 yet?

Maybe a good idea to add the bug-fix here too... this one fixes the ·  Fixed a bug where users not logged in could vote.-bug.

FIND (in viewtopic.php, line ~124):
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false)
    $showresult = true;

REPLACE WITH:
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false || !$cur_user['id'])
    $showresult = true;

Sure, no problem.

It's gonna be fun to see what causes this smile

Kennel wrote:
Well, you can start out with viewtopic.php. If you determine that the error lies elsewhere you have to examine the files that are included from viewtopic.php.

It seems to be another problem... I've got his files, and when I replace my files with his, it works fine anyway (unless I fucked something up completely...).

814

(17 replies, posted in General discussion)

Cactuz wrote:

I don't think i'm going to be able to finnish it so.. go ahead

Ok, I'll think about it... seems like ALOT of work. (With different databases and all that)

I've lookad at them, worked just fine for me. It must be a weird database problem then...

816

(17 replies, posted in General discussion)

Catuz was making a converter for phpBB, so it seems useless for me to make one too...

817

(4 replies, posted in Feature requests)

Try this:
Admin -> Options -> Redirect time = 0

Hmm, true... I might add it when I have time. Some bugs left to look at first though.

819

(17 replies, posted in General discussion)

Wasn't someone making a converter?

(I've been thinking about doing one... need a database to work on though.)

No problem, its only fun when people use something that I've made smile

Well, its too easy to just remove the cookie and vote again... Is it really necessary to let anonymous users vote in the poll?

Scriptweaver wrote:

Access rights? You mean CHMOD? The files are 777. I don't really understand what you mean though...

Chacmool: You know what? smile I'll send you all of the files I've edited, if you'd like to take a closer look at them all, if you got time for that...

Sure, just pack em and send it to me.

Done! Fixed it!

FIND (in viewtopic.php, line ~124):
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false)
    $showresult = true;

REPLACE WITH:
// Already votet -> Show the results
if(strpos($voters, ','.$cur_user['id'].',') !== false || !$cur_user['id'])
    $showresult = true;

This should make it work. It'll be in the next release, have another issue to look at before I release it though.

Hmm, I know what you mean... and I'm gonna look at it right away. Not sure if I've tried that scenario myself hmm

Edit: Yup! You're right. I'ts a bug. I'll fix it right away.

Bad news... it wasn't the viewtopic.php sad
Must be something else... maybe a database problem.

Edit: Probably no db-problem either...

Ohh, my first non-spam-mail to that adress for months big_smile