876

(16 replies, posted in PunBB 1.2 discussion)

Hmm.. Not a function I will use so I don't know if I got time to spend on it.

877

(16 replies, posted in PunBB 1.2 discussion)

I don't really get it but.. alright.. I will not bother me with it wink

Frank H is doing a great job with his upload script. The administartion part seems to be great smile I can't wait to test it wink

878

(16 replies, posted in PunBB 1.2 discussion)

I can't say that I'm happy with the idea of making PunBB some kind of commersial. Neither the things that you think could be purchased.

Change of member name / Delete a post
Why make something vital and good function not avaible? I mean. who will pay money to delete a post? That would only kill the forum i think.

Mod for a day
This sounds really crazy to me. Moderators should only be trusted people that visits the forum regularly. Not a crazy guy with much money.

Why makeing a avatar gallery in HTML? When its so much easier by makeing it with PHP. And that would not cause any problems when moving a page.

My opinion is that why destroy something as beautiful as PunBB by makeing it commersial?
Sure, mod this into your own forum, but me and many others will not visit it for sure.

Right me if I'm wrong.

Btw, who's this Talisman guy? I don't know. He says he wants to help but ain't even registered. Seems to me he's much out for some money. But what do I know, I've almost got paranoia. wink

Sorry if my english is bad but I'm really tired.

The disclaimer and the bug is hopefully fixed now. But I have no energy to test it wink

880

(7 replies, posted in Programming)

unset() can undefine $GLOBALS['variable'] so it should undefine constants too, but i haven't tested it.

Now submit that at PunBB Resource smile

Byt why use $lang_common['No Guests Reading'] when there already is a no_permission?

882

(4 replies, posted in Feature requests)

Locked forums with EFAM is not avaible for moderators.

Hey.. just gimme some time wink

äsch..det såg ju inte jag smile

Men jag har ett annat projekt som är klart ikväll förhoppningsvis.. Sen kan jag koda den där modden

Har jag skrivit det? :>

Ne men.. 1.0 är ju inte släppt än.. bara preview smile

886

(10 replies, posted in PunBB 1.2 show off)

pun_con3 skär sönder min näthinna :>

887

(7 replies, posted in General discussion)

Well, thenw I have to publish my computers too wink

Workstation:
[url]http://cactuz.nu/bilder/workstation 001.jpg[/url]
[url]http://cactuz.nu/bilder/workstation 002.jpg[/url]
[url]http://cactuz.nu/bilder/workstation 003.jpg[/url]

Server (cactuz.nu):
http://cactuz.nu/bilder/server.jpg

888

(9 replies, posted in Archive)

include '../forum/config.php';

innan du inkluderar common.php

889

(37 replies, posted in General discussion)

As I said before, nice wink

Now it's time for me to get finnished :]

EDIT: Now avaible in english :>

##
##
##        Mod title:  Extended Forum Access Mod (EFAM)
##
##      Mod version:  1.0
##   Works on PunBB:  1.0
##     Release date:  2003-08-02
##           Author:  Kristoffer "Cactuz" Jansson (jansson@cactuz.nu)
##
##      Description:  This mod extends the forum access down to every user.
##                    This is how it works: First, "lock" a forum with the
##                    forum admin. Then you just have to add access to all
##                    users you want to give access to the forum in their
##                    profile.php.
## 
##   Affected files:  admin_forums.php
##                    post.php
##                    viewforum.php
##                    viewtopic.php
##
##       Affects DB:  Yes
##
##     Author notes:  Many people seems to want this mod so.. I wrote one ;)
##
##

Screenshot: http://cactuz.nu/bilder/efam.png

Download: http://punbb.org/contrib/mods/EFAM-1.0.zip

891

(1 replies, posted in PunBB 1.2 show off)

Thats right wink

892

(12 replies, posted in Archive)

Jag ska skriva en mod så man kan låsa vissa forum till imorgon eller nåt så det blir tyst på er wink

When you adding a user to the moderator list for a forum there should be something that shows which category the forum is in. If you have many forums called General in different categories you have no clue which one you should add.

Maybe if you put it out like this:
Category/Forum

or

Category
- Forum
- Forum
- Forum
Category
- Forum
- Forum
- Forum

Heres code which make the second solution (profile.php line: 1143):

            $result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.moderators FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra.' ORDER BY c.position, cid, f.position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

            while ($cur_forum = $db->fetch_assoc($result))
            {
                if ($cur_forum['cid'] != $cur_category)    // A new category since last iteration?
                {
                    echo $cur_forum['cat_name'].'<br>';
                    $cur_category = $cur_forum['cid'];
                }
                
                $moderators = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array();

                print "\t\t\t\t".'- <input type="checkbox" name="moderator_in['.$cur_forum['fid'].']" value="1"'.((in_array($id, $moderators)) ? ' checked' : '').'> '.htmlspecialchars($cur_forum['forum_name']).'<br>'."\n";
            }

894

(2 replies, posted in Archive)

Frågan är om det behövs när det räcker att trycka på datumet och sedan användaren.

895

(5 replies, posted in Feature requests)

Thats what it doing.

896

(5 replies, posted in Feature requests)

Why make it complicated? wink


Replace

                        <td class="pun_right" style="width: 10%"><b>Position</b></td>
                        <td style="width: 32%"> <input type="text" name="position[<?php print $cur_forum['fid'] ?>]" size="3" maxlength="3" value="<?php print $cur_forum['position'] ?>"></td>
                        <td class="pun_right" style="width: 10%" rowspan="2"><b>Options</b></td>
                        <td style="width: 32%; white-space: nowrap"> <input type="checkbox" name="admmod_only[<?php print $cur_forum['fid'] ?>]" value="1"<?php if ($cur_forum['admmod_only'] == '1') print ' checked'; ?>> Admins/moderators only</td>
                        <td class="pun_cent" style="width: 16%" rowspan="3"><input type="submit" name="update[<?php print $cur_forum['fid'] ?>]" value="Update"></td>
                    </tr>
                    <tr>
                        <td class="pun_right"><b>Name</b></td>
                        <td> <input type="text" name="forum_name[<?php print $cur_forum['fid'] ?>]" size="35" maxlength="80" value="<?php print htmlspecialchars($cur_forum['forum_name']) ?>"></td>
                        <td style="white-space: nowrap"> <input type="checkbox" name="closed[<?php print $cur_forum['fid'] ?>]" value="1"<?php if ($cur_forum['closed'] == '1') print ' checked'; ?>> Closed</td>
                    </tr>
                    <tr>
                        <td class="pun_right">Description<br>(HTML)</td>
                        <td> <textarea name="forum_desc[<?php print $cur_forum['fid'] ?>]" rows="3" cols="50"><?php print htmlspecialchars($cur_forum['forum_desc']) ?></textarea></td>
                        <td class="pun_right"><b>Category</b></td>
                        <td>
                             <select name="cat_id[<?php print $cur_forum['fid'] ?>]">
<?php

        $cur_category2 = 0;
        @reset($forum_list);
        while (list(, $cur_forum2) = @each($forum_list))
        {
            if ($cur_forum2['cid'] != $cur_category2)    // A new category since last iteration?
            {
                $selected = ($cur_forum['cid'] == $cur_forum2['cid']) ? ' selected' : '';

                print "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum2['cid'].'"'.$selected.'>'.htmlspecialchars($cur_forum2['cat_name']).'</option>'."\n";

                $cur_category2 = $cur_forum2['cid'];
            }
        }

?>
                            </select>

with:

                            <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                            <tr>
                                                <td class="pun_right">
                                                    <b>Position</b>
                                                </td>
                                                <td>
                                                     <input type="text" name="position[<?php print $cur_forum['fid'] ?>]" size="3" maxlength="3" value="<?php print $cur_forum['position'] ?>">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="pun_right">
                                                    <b>Name</b>
                                                </td>
                                                <td>
                                                     <input type="text" name="forum_name[<?php print $cur_forum['fid'] ?>]" size="35" maxlength="80" value="<?php print htmlspecialchars($cur_forum['forum_name']) ?>">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="pun_right">
                                                    Description<br>(HTML)
                                                </td>
                                                <td>
                                                     <textarea name="forum_desc[<?php print $cur_forum['fid'] ?>]" rows="3" cols="50"><?php print htmlspecialchars($cur_forum['forum_desc']) ?></textarea>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                            <tr>
                                                <td class="pun_right">
                                                    <b>Options</b>
                                                </td>
                                                <td>
                                                     <input type="checkbox" name="admmod_only[<?php print $cur_forum['fid'] ?>]" value="1"<?php if ($cur_forum['admmod_only'] == '1') print ' checked'; ?>> Admins/moderators only
                                                    <br>
                                                     <input type="checkbox" name="closed[<?php print $cur_forum['fid'] ?>]" value="1"<?php if ($cur_forum['closed'] == '1') print ' checked'; ?>> Closed
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="pun_right">
                                                    <b>Category</b>
                                                </td>
                                                <td>
                                                     <select name="cat_id[<?php print $cur_forum['fid'] ?>]">
<?php

        $cur_category2 = 0;
        @reset($forum_list);
        while (list(, $cur_forum2) = @each($forum_list))
        {
            if ($cur_forum2['cid'] != $cur_category2)    // A new category since last iteration?
            {
                $selected = ($cur_forum['cid'] == $cur_forum2['cid']) ? ' selected' : '';

                print "\t\t\t\t\t\t\t\t".'<option value="'.$cur_forum2['cid'].'"'.$selected.'>'.htmlspecialchars($cur_forum2['cat_name']).'</option>'."\n";

                $cur_category2 = $cur_forum2['cid'];
            }
        }

?></select>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellpadding="0" cellspacing="3">
                                            <tr rowspan="3">
                                                <td>
                                                    <input type="submit" name="update[<?php print $cur_forum['fid'] ?>]" value="Update">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>

Could be made with a smaller piece of code but that didn't look that good smile

897

(1 replies, posted in PunBB 1.2 show off)

Looking good smile

898

(10 replies, posted in Archive)

Men det är fult att fuska wink

899

(3 replies, posted in Archive)

Nja.. efterfrågan verkar inte vara så stor så jag vill inte slänga bort min dyrbara tid big_smile

900

(25 replies, posted in Archive)

KOJV: Du kan ju skriva en mod big_smile