26

(5 replies, posted in PunBB 1.2 troubleshooting)

http://portbb.com/support/ works

27

(5 replies, posted in PunBB 1.2 troubleshooting)

if you have ftp access just upload the extra file in the punbb1.2.15 download saying something like turn_maintance_off.php and upload the file to your ftp, then access it in your browser (http://site.com/turn_maintance_off.php) and then you will be able to turn it off

28

(6 replies, posted in PunBB 1.2 troubleshooting)

I'd suggest that you start with searching (or look)
It's not so hard to find out how to do it if you a search or look (e.g on the front page there is a news post about video tutorials)
[Click here to see the vids]

29

(17 replies, posted in PunBB 1.2 show off)

Sounds like a good site smile I have registered myself there.

30

(9 replies, posted in Programming)

Can I please have this converter? Have a e107 site that I want to convert to punbb

No, all the code in the code boxes are for profile.php only

in functions just search for profile.php or Essentials and you should find it

should be easy to find. Just remove the && $pun_config['p_mod_ban_users'] == '1' and all mods should be able to view the admin link

Tunox wrote:

I'm trying to reach your website but I get either a timeout or a blank page when I sucessfully reach it. Although My connection is working fine, I'll test it again when I get home.

yea, they had some problems with one of the routers and mine was on that one sad

But I changed some stuff in the profile.php file

My Mods always have access to the Admin menu on profile (Not allowed to ban until im able to set up some temp ban option)


I just found the code that was for Admins to change group and pasted it in the MOD field and then I could see and select the groups.
But then I also had to to it so that they couldn't change to Admin, Mod or VIP but only Member and Donate


Find

if ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '1')

Above Add (change the group ids or what you feel like)

                        if ($pun_user['id'] != $id)
            {

?>    
            <div class="inform">
                    <fieldset>
                        <legend><?php echo $lang_profile['Group membership legend'] ?></legend>
                        <div class="infldset">
                            <select id="group_id" name="group_id">
<?php

                $result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());

                while ($cur_group = $db->fetch_assoc($result))
                {
                    if ($cur_group['g_id'] == $user['g_id'] || ($cur_group['g_id'] == $pun_config['o_default_user_group'] && $user['g_id'] == ''))
                        echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
                    else
                        echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
                }

?>
                            </select>
                            <input type="submit" name="update_group_membership" value="<?php echo $lang_profile['Save'] ?>" />
                            </div>
                    </fieldset>
                </div>
                <?php

            }

Added this to the code

AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.'

You can change this with what ever you feel like (recommend that ADMIN and MOD stay but VIP you can change to an group id or remove it.

Then I also made it so that MODS cant view and edit VIP profiles

Search for // View or edit? and you will find it.

if ($pun_user['id'] != $id &&
    ($pun_user['g_id'] > PUN_MOD ||
    ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_edit_users'] == '0') ||
    ($pun_user['g_id'] == PUN_MOD && $user['g_id'] < PUN_GUEST) ||
    ($pun_user['g_id'] == PUN_MOD && $user['g_id'] == PUN_VIP)))

Added an extra field under with VIP


I edited functions.php where the profile links are and made it so that the Mods can see that link even if the BAN option is set to No (0)


yea, forgot that I also changed it so that mods also are allowed to update group

I have it like that on my forum

http://test.phaxe.com/forum/

Login on Demo Account with these details

U: Demo
P: test

You are only allowed to change the "test" account details

btw this is a problem you should take up in the support forum on punbb-hosting and not here as it is a problem on their side and nothing that we can fix

there is someone working on it: http://www.punres.org/viewtopic.php?id=3885

There is no line numbers in the [ code ] tag...

---------------New Posts AFter my last Visit--------------------------
//Start Subst - <pun_my_newpost>. new posts after my last visit
ob_start();


?>
<div class="block" id="mynewposts">
<h2><span><?php echo $lang_my['New Posts'] ?></span></h2>
    <div class="box">
        <div class="inbox">
       
        <?
        $result = $db->query('SELECT t.id,t.subject,t.last_post_id FROM '.$db->prefix.'topics as t WHERE t.last_post >'.$pun_user['last_visit']) or error('Unable to fetch new posts from your last visit',__FILE__,__LINE__, $db->error());
        //die($db->num_rows($result));
        if($db->num_rows($result))
        {   
            while($cur_posts = $db->fetch_assoc($result))
            {
                $new_posts = '<ul><li><a href="'.$pun_config['o_base_url'].'/viewtopic.php?pid='.$cur_posts['last_post_id'].'#p'.$cur_posts['last_post_id'].'">'.$cur_posts['subject'].'</a></li></ul>';
           
                echo $new_posts;
            }
        } else {
            require PUN_ROOT.'lang/'.$pun_user['language'].'/search.php';
            echo ($lang_search['No new posts']);
        }
       
    ?>
        </div>
    </div>
</div>
<?
    $tpl_temp = trim(ob_get_contents());
    $tpl_main = str_replace('<pun_my_new_posts>', $tpl_temp, $tpl_main);
    ob_end_clean();

//Start Subst - <pun_my_newpost>

---------------New Posts AFter my last Visit--------------------------

Could you use Code Tags please smile

38

(47 replies, posted in Programming)

Updates on this? Would be handy has my forum is getting ready and badly need this stuff tongue

Chad27 have you looked on the video tutorials?

40

(0 replies, posted in PunBB 1.2 discussion)

Most of you have probably heard of Stage6.

I would like to have tutorials and other stuff about punbb on that website and then add it to the PunBB channel that is there smile

Anyone up for this?

Oh if you upload a tutorial or something about punbb please send a message with the link on Stage6

41

(3 replies, posted in PunBB 1.2 troubleshooting)

sure post those places where the referal codes are and ill look at it tongue

42

(3 replies, posted in PunBB 1.2 troubleshooting)

Find the referal area in your profile.php and then add this before the code that lets you see the referals count because you probably want to allow them to see the link so that they can give it to others (both on view and edit profile)


Add this before:

                <?php
                if ($pun_user['g_id'] == PUN_ADMIN)
                {
                ?>

and after the referal things are done add this

                <?php
                }
                ?>

That should work and then only the main admin will be able to see how many referals the person have

43

(0 replies, posted in PunBB 1.2 discussion)

Anyone know whats up with Punres? Style, files and error id: "bad_httpd_conf" message

Was just looking on a thread there and then it wasn't working anymore..

yea, only seen pictures of it sad

But do you know if it will be worked on?
And if you need coders or testers I can help tongue

So whats happening with this project? I see that it will arrive shortly, but want to know if there is being done anything on it tongue

I havn't renamed my pages but I send the guests back to the index page with

header('Location: index.php')

So they won't even get a message that they can't access this page..

@ Thomas

Only removing the link from guest view won't stop them from accessing the user list or profile page..

You need an if ($pun_user['is_guest']) statement on both User List and Profile to make sure that they don't access the page.

I wanted to create something for the Norwegian (Swedish and Danish are also allowed tongue) PunBB user.
Its mainly for those that aren't so good in English, so that they also get get some help with their stuff.
I also want to keep it basic and easy like PunBB and Punres.

[PunBB-Norge]

Its not so much or many things there right now, but thats because I fixed the site only a few days ago.

I only have a subdomain for it so far, but once its up and running and I see that people are using it I will buy one smile

Oh and any help with getting more people on their is just great wink

I need to some with getting a message to be shown if a user isn't from Norway, Sweden or Denmark

Something like this:

<header>
<navlinks>
<if user isn't nor, swe or dk show this message>
<announcement>


That way I can tell the other users that isn't from those countries that this forum only support Norwegian, Swedish and Danish.

I know that I have to use HTTP_ACCEPT_LANGUAGE but I have NO idea on how I can get this to work or even if it work..

Any help would be great!

Oh, I have also looked on [Punres Wiki] but I don't understand much of it tongue


Thank You,
PhaxeNor

Create your groups in the "user group" menu

Then go to your forum tab and edit/add your forums and then remove Read Forum, replies and topics for those/that group you want to do it for...