51

(25 replies, posted in Feature requests)

thanks guardian34 - though implementing it in the admin console (and field in DB for this setting) as a mod would be best so it can be changed easily. naturally, official support for this would be even better.

52

(25 replies, posted in Feature requests)

thanks falconflyz - but that is quite different. that mod is for hiding the "Last edited by?" message if edited within a specific timeframe by the user. what is meant here is a timelimit for allowing editing of a post by a regular user. at the moment a user can edit his/her posts indefinitely i believe.

53

(25 replies, posted in Feature requests)

if not added to 1.3, is there a mod to allow limiting of posts to a certain time only out since the last post? it would only require checking with the time posted in the posts table and based on that allowing or disallowing the user to edit depending on the time difference between now and posted. would be nice to have it integrated to the admin section to specify this time limit - i can only be bothered to hardcode it into edit.php myself as i am pressed for time lately.

twohawks wrote:

On index page, when applying nico's code, I was unable to get the subforums to display in order of 'disp_position' as set in admin cp.  I discovered that it has to do with the array retrieval for the subforums list, so I edited/corrected nico's code to allow for this.

I just went away and tested the new version properly on my development server (has lots of sub forums) with regards the disp_position change you made for index and all the change that you did does for me is reverse the order of the subforums by their ID, not to do with disp_position - the code you added "array_reverse($sub_forums_list)" when displaying caused this sad

I changed the code and then just added "ORDER BY disp_position" in the sub forums specific query and it now sorts as per the Admin CP properly.

Sub Forum Mod 1.0.9
Thus, only change in this version:
   - Sub forums now display in order of 'disp_position' on Index as set in Admin CP

oops, i updated the readme and post above to add those 2 things also. thanks for the improvements twohawks!

another update - thanks go to twohawks. twohawks made some changes to the line numbering in the readme also which should make it easier to install. it is also back to 1 zip file to make things easier, if you don't want sub forums listed on the index you only need to comment out some code.

Sub Forum Mod 1.0.8
                     History:
                     Fixed by twohawks:
                      in version 1.0.8
                       - Sub forums now display in order of 'disp_position' on Index as set in Admin CP
                       - Option to set sub forums view for 'inline' or 'multi-line' listing on Index
                       - Option to hide the sub forums view on Index
                     Fixed by naitkris:
                      in version 1.0.8
                       - Added Index view from nico_somb's version and modified to work here (was seperate version before)
                     Fixed by binjured:
                      in version 1.0.7
                       - Optimised code on index.php so query isn't run for every forum processed
                     Fixed by naitkris:
                      in version 1.0.7
                       - Fixed "Moderated by" when viewing parent forum of multiple sub-forums with/without moderators
                      in version 1.0.6
                       - Fixed items in the quickjump so sub forums are indented (like fix in 1.0.4 by NeoTall for search)
                     Fixed by Timpa:
                      in version 1.0.5
                       - Correctly sorting subforums
                       - Now showing last post as it should
                     Fixed by NeoTall (Rus):
                      in version 1.0.4
                       - Fixed items in combobox "Select where to search"
                      in version 1.0.3
                       - Fixed search in SubForum when using "Non-MultiByted" language
                      in version 1.0.2
                       - Correctly displaying Last Post, Last Poster and Last Posted Time
                       - Correctly displaying Total Topics and Total Posts
                      in version 1.0.1
                       - Correctly creating Last Post link
                       - Correctly displaying word "Topics" on SubForum header

You will need to re-generate your quickjump cache after applying this mod for the quickjump to indent. The Clear Cache administration plugin can do this for you easily and is available from the PunBB Downloads page.

All credit to nico_somb for the Index View version as it is just taken from his version and modified a tiny bit to work with this one.

Sub Forum Mod is copyright of pabb.

wobo - glad to hear it works. one has to be very, very careful everytime one installs a mod - every step is important and must be done carefully. when one installs 2 big mods together - Polls and Sub Forum the chances of problems increases a lot.

i just noticed this but some optimised code for index.php which was fixed by binjured but was not included in version 1.0.5 and so it was left out of 1.0.6 also. it dramatically reduces processing time as the number of queries needed is cut down, so implement this fix by binjured manually if you haven't already - it is included in 1.0.7. also the problem spotted by bingiman to do with moderators in the parent forum of multiple sub forums is now fixed as well.

Sub Forum Mod 1.0.7
Sub Forum Mod 1.0.7 w/ Index View
                     History:
                     Fixed by binjured:
                      in version 1.0.7
                       - Optimised code on index.php so query isn't run for every forum processed
                     Fixed by naitkris:
                      in version 1.0.7
                       - Fixed "Moderated by" when viewing parent forum of multiple sub-forums with/without moderators
                      in version 1.0.6
                       - Fixed items in the quickjump so sub forums are indented (like fix in 1.0.4 by NeoTall for search)
                     Fixed by Timpa:
                      in version 1.0.5
                       - Correctly sorting subforums
                       - Now showing last post as it should
                     Fixed by NeoTall (Rus):
                      in version 1.0.4
                       - Fixed items in combobox "Select where to search"
                      in version 1.0.3
                       - Fixed search in SubForum when using "Non-MultiByted" language
                      in version 1.0.2
                       - Correctly displaying Last Post, Last Poster and Last Posted Time
                       - Correctly displaying Total Topics and Total Posts
                      in version 1.0.1
                       - Correctly creating Last Post link
                       - Correctly displaying word "Topics" on SubForum header

You will need to re-generate your quickjump cache after applying this mod for the quickjump to indent. The Clear Cache administration plugin can do this for you easily and is available from the PunBB Downloads page.

All credit to nico_somb for the Index View version as it is just taken from his version and modified a tiny bit to work with this one.

Sub Forum Mod is copyright of pabb.

you should maybe try carefully re-installing changes to admin_forums.php - first with Sub Forum Mod, then with Polls mod and vice versa - only for admin_forums.php and no other files as this is the last remaining issue for you i gather?

ok, is everything else now working wobo when you fixed the SQL?

also, the admin_forums.php you have looks changed more than it needs to be comparing it with my version, something is not right here but should be easily fixed. i am not running your forums or the poll mod so i can't investigate much further. it should be something small like before that needs changing.

hi wobo -  the problem is in viewtopic.php (line 103) - and it is a typo:

you have:

    $result = $db->query('SELECT pf.forum_name AS parent_forum, f.parent_forum_id, t.subject, t.closed, t.num_replies, t.sticky, t.question, t.yes, t.no, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') LEFT JOIN '.$db->prefix.'forums AS pf ON f.parent_forum_id=pf.id WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());

it should be:

    $result = $db->query('SELECT pf.forum_name AS parent_forum, f.parent_forum_id, t.subject, t.closed, t.num_replies, t.sticky, t.question, t.yes, t.no, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') LEFT JOIN '.$db->prefix.'forums AS pf ON f.parent_forum_id=pf.id WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$id.' AND t.moved_to IS NULL') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());

you were just missing a "," smile it should work now.

thanks wobo. looking at all 3 files quickly i can't see what the problem is. can you post the URL to the forum so i can see the error? i am not running or familiar with the polls mod as said before so i may not have the answer to fix this.

wobo - use the email function here or alternatively use the BBCode "code" tag and copy and paste all the code into it and post it here.

64

(3 replies, posted in PunBB 1.2 troubleshooting)

as you are running PHP 5.x you should have this functionality but it may be that regex extensions for PHP are not installed there. preg_replace() is a PHP function and not part of PunBB so the problem lies with the PHP installation.

edit - Smartys beat me to it smile

wobo wrote:

No, it's also the viewforum.php and viewtopic.php which give me errors. If you want to look at the files, they are in
http://www.wolf-b.de/misc/subforum/

wobo

wobo - i can't view the code as the server processes the PHP, can you post it here or email it?


bingiman wrote:

@naitkris - Thank you for that fix. It works perfectly now. I hope they update the archive and add this fix to it.

Thanks again big_smile
Bingiman

good to hear that, updated archive further down this thread.

lie2815 wrote:

i need a new download file - punbb resource says the file does not exist

just as well as the one there is an older version, try 1.0.6

wobo wrote:

Whenever I try to add a forum I get an error message ("Could not fetch category/forum name"). But the new forum gets installed as normal forum! When I want to go inside this new forum I get the error message again.

wobo - if i am understanding correctly it is in admin_forums.php that you get this error right? can you post your admin_forums.php file or send it to me? i don't have the easy polls mod installed but i can take a quick look.

68

(1 replies, posted in PunBB 1.2 troubleshooting)

goodness, phpbbfm looks like a really bloated version of phpBB which itself is full of a lot more than average features. but i'm afraid i've never done any forum migration myself however with some planning it shouldn't be too hard and you will probably be best to use the vanilla phpBB convertor but you will lose some data regardless for features that PunBB doesn't support obviously.

the mods you do install, say PM mod etc, you should modify the convertor of phpBB so that it takes into account PMs as well and so on so that you don't lose these.

good stuff, except the div tags need not be outputted when there is no moderators on a forum (unless it is wanted by someone to output anyway and have it as "Moderated by: None"), small change to remove displaying the lot is:

<?php if ($cur_forum['moderators'] != '') { ?>
<div id="moderators">
    <div class="box" style="margin-bottom: 12px">
        <div class="inbox" style="margin: 5px">
            <?php
            $mods_array = unserialize($cur_forum['moderators']);
            $moderators = array();

            while (list($mod_username, $mod_id) = @each($mods_array)) {
               $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';
            }

            $moderators = "\t\t\t\t\t\t\t\t".'<p>'.$lang_common['Moderated by'].': '.implode(', ', $moderators).'</p>'."\n";
            echo $moderators
            ?>
        </div>
    </div>
</div>
<?php } ?>

anyone adding this should also move the div parameters from here and add them to the PunBB stylesheet for conformity.

edit, another option for those who want to save space and have it in the footer to the right of the quickjump list is to do the following:

In footer.php

FIND:
else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')
{

AFTER ADD:
   if ($cur_forum['moderators'] != '') {
      echo "\n\t\t\t".'<div class="conr">'."\n";
         $mods_array = unserialize($cur_forum['moderators']);
         $moderators = array();

         while (list($mod_username, $mod_id) = @each($mods_array)) {
            $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';
         }

         $moderators = "\t\t\t\t\t\t\t\t".'<p>'.$lang_common['Moderated by'].': '.implode(', ', $moderators).'</p>'."\n";
         echo $moderators;

          echo "\t\t\t".'</div>'."\n";
   }

welcome redchef.

well PunBB is very easy to install and set up also in my opinion. what experience do you have with MySQL, PHP, website management etc?

hi bingiman,

ok, i had a look at this and you are actually moderator of only the sub-forums you chose, if you log in with your moderator account and go to the sub-forum #2 which you are not moderator of but which shows you as on viewforum you will see that there is no possibility to mod it.

the problem lies with how the forum view page displays the moderators and judging by the bug as you describe it, this is exactly what it is. i don't display the moderators on my index or viewforum pages so it is a non-issue for me, however i found where the problem is and so here is the fix:

In viewforum.php

FIND:
                                <?php echo $forum_field."\n".$moderators ?>
REPLACE WITH:

                                <?php echo $forum_field;
                                if ($cur_subforum['moderators'] != '') {
                                   echo "\n".$moderators;
                                }
                                ?>

72

(40 replies, posted in PunBB 1.2 discussion)

bra jobbat Kristoffer.

73

(18 replies, posted in PunBB 1.2 troubleshooting)

Recoil. - maybe what you are looking for is the mod Mark topics as read 1.1.3? i think this does exactly what you want but i haven't tried it myself.

74

(16 replies, posted in General discussion)

thanks Jérémie.

hcgtv wrote:

An example of this is at the MozillaZine forums, their install of phpBB had issues ... Heck, it now looks like a PunBB forum with a phpBB skin.

very true, it looks a lot like PunBB the way they have cut it down.

75

(16 replies, posted in General discussion)

indeed. PunBB though, once mod'd enough and customised, can suit 90% of people's needs i think. there will also always be people who just prefer everything working straight out of the box and no extra work needed, but it doesn't make it unique as so many people run the big forums and they look so similar.


Jérémie wrote:

several features like advanced moderation, real multigroup support with granularity

can you explain these two to me? advanced moderation - what is extra here over current PunBB moderating (and with Move Post mod)? also real multigroup support with granularity compared to PunBB w/ Multigroup mod?

Jérémie wrote:

since 1.3 is zeroing in) isn't cheap, at all.

i am almost scared of 1.3, i hope it is released later rather than sooner as i have mod'd a PunBB 1.2.14 i am working on a lot. i think the changes will cause a lot of time to upgrade for me sad