A banned user can't logout to avoid that he register again or login with another nickname.
2 2009-01-11 11:27
Re: Integrating PunBB (UTF8) into DokuWiki (4 replies, posted in PunBB 1.3 discussion)
That, and removing some duplicated utf8 functions solved.
Thanks a lot MattF.
3 2009-01-10 20:14
Re: Integrating PunBB (UTF8) into DokuWiki (4 replies, posted in PunBB 1.3 discussion)
Nothing works. There's a bunch of fatal errors but I guess I gotta give up, DokuWiki's website states that it doesn't work with PunBB 1.3.
4 2009-01-10 18:13
Re: [Question] Extending moderate.php (3 replies, posted in PunBB 1.3 extensions)
I've printed out the $mods_array before and after pushing my value in and it worked properly (outputting the user name the second time). I've therefore tried to set $forum_user['g_moderator'] to 1 along with the pushed array and it didn't work. The only thing that worked was setting the group id of the user to 1, to pretend the user is a forum admin. I don't know if it's safe, it's surely not the proper way to do it, but it worked.
5 2009-01-10 17:46
Topic: Integrating PunBB (UTF8) into DokuWiki (4 replies, posted in PunBB 1.3 discussion)
I was wonder if there's any info around about integrating PunBB and DokuWiki. I've successfully integrated PunBB 1.2 into DokuWiki but now since I've upgraded to 1.3.2 I can't make Doku work anymore.
I've had a few UTF-8 functions conflicts so I replaced Doku's utf8.php file with a blank one but I still get a lot of errors.
Anyone can help?
Thanks.
6 2009-01-09 20:56
Re: [Question] Extending moderate.php (3 replies, posted in PunBB 1.3 extensions)
Would it not be easier to create a new group - psuedo moderator - and assign permissions via that?
No, that's exactly what I don't want to do
alternatively I'd suggest echo'ing out the $mods_array via the mr_pre_permission_check hook to ensure you are adding the correct information. Then use that same hook at add to the mods_array
I'll try, thanks.
7 2009-01-09 16:52
Topic: [Question] Extending moderate.php (3 replies, posted in PunBB 1.3 extensions)
I'm trying to extend a function in moderate.php but I can't make it work.
I want a specific user to bypass the permission check at line 92-93.
if ($forum_user['g_id'] != FORUM_ADMIN && ($forum_user['g_moderator'] != '1' || !array_key_exists($forum_user['username'], $mods_array)))
message($lang_common['No permission']);
So far I tried to:
1) Pushing and unshifting the username of said user into the moderators array at line 88.
$mods_array = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array();
2) Setting $forum_user['g_moderator'] == '1' if user matches an if statement.
3) Setting the user group id to 1 (admin) to pretend the user is an admin and therefore succeed the permission check.
4) Changing the if statement entirely using the hooks before and after the statement (both hooks together and one at time).
These attempts were all unsuccessful. Can anyone help?
Thanks in advance.
8 2009-01-08 12:30
Topic: CSS fix (4 replies, posted in PunBB 1.3 bug reports)
In Oxygen.css on line 719 #brd-about #copyright should be changed to p#copyright
9 2009-01-06 11:52
Re: How to turn off brd crumbs EITHER at top or bottom (12 replies, posted in PunBB 1.3 discussion)
Check function generate_crumbs($reverse) in functions.php. Around line 685.
10 2009-01-05 16:32
Re: [Extension] Copyright Yoursite - a png leading to url of your choice (6 replies, posted in PunBB 1.3 extensions)
The img tag is not closed.
11 2009-01-04 20:17
Re: How to turn off brd crumbs EITHER at top or bottom (12 replies, posted in PunBB 1.3 discussion)
The index page is also generated without crumbs so if you're working on a external page integrated in the layout you can define it as index to remove the crumbs.
12 2009-01-04 12:31
Topic: Duplicated hook (4 replies, posted in PunBB 1.3 bug reports)
Hook "pf_view_details_selected" is set twice in profile.php on line 1287 and 1292.
13 2008-12-29 01:51
Re: How to add some HTML into forum? (6 replies, posted in PunBB 1.3 troubleshooting)
Thanks Utchin.
14 2008-12-29 01:51
Re: How to include an external file in the template (2 replies, posted in PunBB 1.3 troubleshooting)
Thanks colak.
15 2008-12-28 16:38
Re: How to add some HTML into forum? (6 replies, posted in PunBB 1.3 troubleshooting)
That's for v1.2, what about 1.3?
16 2008-12-28 12:56
Topic: How to include an external file in the template (2 replies, posted in PunBB 1.3 troubleshooting)
I can't figure out how to include a file into a .tpl
In v1.2 it was <pun_include "file.php"> and file.php has to be in /include/user
What about v1.3?
Thanks
17 2008-11-27 13:29
Re: Bug CSS in 1.3.1 (4 replies, posted in PunBB 1.3 bug reports)
It's not CSS but a markup issue, there's a </div> too much.
18 2008-11-25 15:53
Re: Vertical scrollbar : how to always display ? (7 replies, posted in PunBB 1.3 troubleshooting)
The one I can think of is a CSS solution but it will make the orizontal scrollbar appear as well
html {
overflow: scroll;
}
19 2008-11-19 11:09
Re: PunBB 1.3 final release (27 replies, posted in News)
Try with a echo in the ft_about_end hook.
20 2008-11-17 18:14
Topic: For how long is PunBB 1.2.x gonna be officially supported? (6 replies, posted in PunBB 1.2 discussion)
Since v1.3 is out now I guess there's no true need to keep 1.2.x up to date, yet I guess many administrators will take a while before they upgrade, so my questions are:
1. Will there be any hotfix, security patch or critical update for 1.2.x in the future (obviously when/if needed)?
2. Is there any deadline for 1.2 support on the official forums? i.e. for how long will the 1.2 section be kept open?
21 2008-11-17 09:59
Re: Problem in profile change password (3 replies, posted in PunBB 1.3 bug reports)
I can't replicate, check your language file for errors.
22 2008-11-14 22:00
Re: Private Messaging (pun_pm) (154 replies, posted in Supported extensions)
By the way, do you receive spam via PM here?
No, I just thought it's better to be safe than sorry.
23 2008-11-14 21:47
Re: Private Messaging (pun_pm) (154 replies, posted in Supported extensions)
We'll consider this suggestion
If the idea is dropped please add hooks (if not present already) to allow users to implement the feature. Thanks.
Do you have ideas about when and why user wishes to disable PM?
Spam, offensive posts or simply no interest in PMs.
24 2008-11-14 21:32
Re: Private Messaging (pun_pm) (154 replies, posted in Supported extensions)
Do you mean that user must be able to disable receiving messages from other users?
Exactly.
25 2008-11-14 21:17
Re: Private Messaging (pun_pm) (154 replies, posted in Supported extensions)
I meant user-side.