Mako wrote:

Ok I will replace the $SESSION variables with what they are supposed to hold and see if that changes anything. I hope it does because I am sick of phpBB!

You cold print out the session-variable to see how's it looking:

echo "<pre>";
print_r($_SESSION);
echo "</pre>";
arnaudgreffier wrote:

Hello,

chacmool, could you give some detail on your PHP version and configuration (php.ini) ?

I think you use and older and more permissive one, which allows you to edit the superglobals variables ($_SESSION['foo'] = 'bar')...

Ahh, that could probably be the problem Mako haves!

I'll look at it later today when I'm home. Thanx!

Cactuz wrote:

Wow, look at that, It's me big_smile

Yeah, you're famous now! smile

Mako wrote:

Oh wow. Guess I will stop coding on my PMS version. Time to cancel the PMS project.

No competeition then wink

Yes, it's a problem with the sessions as I suspected.

$SESSION['pun'] should be equals to "database.prefix"... dont know why it's getting "Resource id #3" sad

Muggen wrote:

Yeah, I know what's missing.
The download url big_smile

Hehe, true, but that's on purpose big_smile

There's always some bugs... and I want to find them first smile

I've done a private message system with the most basic functions.

Suggestions... comments? Anything missing? Somethings wrong?

Download the latest version from PunRes.

Screenshot:
http://www.etek.chalmers.se/~e0mool/punbb/pics/PMS.png

Error:
Unable to truncate table. (Go back)

MySQL error:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'id #3categories' at line 1

File: C:\minixampp\htdocs\cnvrtr\_start.php
Line: 24

Well, this is all wrong... the querys there should look like this:

'TRUNCATE TABLE punbb_posts'

Seems to be some 'old' querys in the array somehow, try adding a $queries = null; before line five and see if it helps.

Edit: Try this start-file instead: _start.zip

Muggen:
Thanx! Fixed the problem. It occures beqause I don't check if there are any polls in the forum before dividing with the amount of polls.

Download this file and replace the admin_polls-file to fix the problem.

Thanx for telling me!

Elijah wrote:

And another thing:

At: admin_options.php

If "User has posted earlier" is set to "yes" then the error:

An error was encountered
Error: Unable to fetch topic list for forum.

will be outputted when viewing a forum such as: viewforum.php?id=1

Is there any way to fix this?

For reference:

User has posted earlier
This feature displays a dot in front of topics in viewforum.php in case the currently logged in user has posted in that topic earlier. Disable if you are experiencing high server load.      Yes    No


Thanks for making such a cool mod!

Elijah

Fixed this now:
Find in viewforum.php:

$result = $db->query('SELECT DISTINCT p.poster_id AS has_posted, t.id, t.poster, t.subject, 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.poll FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$cur_user['id'].' WHERE t.id IN('.$threadids.') ORDER BY t.sticky DESC, t.last_post DESC') or error('Unable to fetch topic list for forum', __FILE__, __LINE__, $db->error());

Replace with:

$result = $db->query('SELECT DISTINCT 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.poll FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$cur_user['id'].' WHERE t.id IN('.$topic_ids.') ORDER BY t.sticky DESC, t.last_post DESC') or error('Unable to fetch topic list for forum', __FILE__, __LINE__, $db->error());

The variable $threadids was changed to $topic_ids, which I missed...

Woh! Thanx ALOT! big_smile

Really great!

Elijah wrote:

I installed this mod using :

Mod title:  PunPoll
PunBB: 1.1
Mod version:  1.1.3

Here is a quick fix for the error encountered when visiting the Polls Admin Panel.

1. Open up admin_polls.php
2. On line 28, Find: require 'include/commonadmin.php';
3. Replace with: require 'include/common_admin.php';

Elijah wink

True, my mistake. I _REALLY_ should have tested the admin-poll-stuff before releasing the mod smile

Elijah wrote:

Is there any way to fix this?

I'm gonna fix it tomorrow sometime. Thanx alot for telling me, most people just take the fact that it's not working...

762

(2 replies, posted in PunBB 1.2 troubleshooting)

Admin -> Options

Edit: Here:
"Home | User list | Search | Profile | -->Admin<-- | Logout"

763

(20 replies, posted in PunBB 1.2 discussion)

alexz wrote:

Where should I write in that line?  I have the same problem:

See my post again, updated it now.

764

(20 replies, posted in PunBB 1.2 discussion)

I've found an error in the update-files:

$db->query('UPDATE users SET last_visit='.$now.', last_action='.$now) or error('Unable to update user data.', __FILE__, __LINE__, $db->error());

There is a "$db_prefix" missing there... change to:

$db->query('UPDATE '.$db_prefix.'users SET last_visit='.$now.', last_action='.$now) or error('Unable to update user data.', __FILE__, __LINE__, $db->error());

I'm done with the converter now!

I've just tested it localy with Mako's dump... so there might be bugs and evil things left! So, if you want to try this, look through the "new" forum and check so there is no errors. I don't want to make any "make it right again"-converters if something goes wrong, and I don't want people to be angry at me when they type in the wrong info and all their posts are gone...

Please BACKUP your database before using the converter!

Note1: Version 2.0 must be located in a directory in your PunBB-directory. It uses PunBB's database-class and style.

Note2: Versions above 2.1 now includes PhpNuke-conversion.

Download the converter here: punbb.org/downloads.php

Screenshot v2:
http://www.etek.chalmers.se/~e0mool/punbb/files/PhpBB_conv2.jpg

Screenshot v1:
http://www.etek.chalmers.se/~e0mool/punbb/pics/Converter.jpg

766

(20 replies, posted in PunBB 1.2 discussion)

I've made new versions of PunPoll and RealViews also, just download them from PunResource

767

(87 replies, posted in PunBB 1.2 discussion)

I see one problem... if this page doesn't reload when you read the threads, new posts in a thread would not show up on this page since it takes a while to read them all.

768

(12 replies, posted in PunBB 1.2 discussion)

There is no more! tongue

769

(12 replies, posted in PunBB 1.2 discussion)

7. Why cant I upload avatars?

770

(5 replies, posted in Feature requests)

Great!

More stuff on the todo-list though wink

Edit: ...or maybe [coolimage.jpg] instead of "http://www.somedomain.com/~user/pics/coolimage.jpg"...

771

(5 replies, posted in Feature requests)

Kennel wrote:

Do you mean when the img tag is disabled in signatures?

Yes, instead of the [img]-tags.

Edit: I think it looks kinda weird having "un-parsed" bb-code in the signature...

772

(5 replies, posted in Feature requests)

What about making them into url's instead?

And maybe use the text "[image]" instead of "http://www.somedomain.com/~user/pics/coolimage.jpg"?

773

(8 replies, posted in PunBB 1.2 discussion)

ConnyT wrote:

What is changed in version 1.1?

http://punbb.org/changelogs/current.txt

774

(10 replies, posted in PunBB 1.2 troubleshooting)

Don't forget to set PUN_DONT_UPDATE_COOKIE when you login from a page "outside" punbb. Otherwise the new-posts-thing wont work.

Newb3 wrote:

Sorry for this post. But:

I've downloaded this script and look att the readme. Looks like you can use some kinda prog for it?

(How do I install mods?)

Sorry, but no. You'll have to make the changes by hand.