lol, thanks so much this was such an annoying problem for me ^_^

its my punportal.php but sure.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<style type="text/css">
#right
{
float: right;
width: 180px
}
#main
{
margin-right: 190px;
}
#left
{
float: left;
width: 180px
}
</style>
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_portal_title>
            <pun_portal_desc>
        </div>
        <pun_navlinks>
    </div>
</div>

<pun_portal_ads>

<div id="left">
    <pun_portal_navigation>
    <pun_portal_login>
    <pun_portal_forum_stats>
    <pun_portal_forum_search>
    <pun_portal_recent_topics>
    <pun_portal_recent_posts>
    <pun_portal_top_posters>
    <div class="block">
    <h2><span>Extra Block</span></h2>
        <div class="box">
            <div class="inbox">
            <p>Here is an extra block, use it wisely. Simply copy this code and paste it under this blocks code to create a duplicate block. Then simply configure its content.</p>
            </div>
        </div>
    </div>
</div>
<div id="right">
<div class="block">
    <h2><span>BLAH BLAH</span></h2>
        <div class="box">
            <div class="inbox">
            <p>UPDATE GTFO ME</p>
            </div>
        </div>
    </div>
</div>

<div id="main">
    <pun_main>
</div>

<div class="clearer"></div>

<pun_portal_users_online>

<pun_footer>

</div>
</div>

</body>
</html>

lmfao wanna know whats funny?

look at it now

LOLOOL ... it got my box to the right but now it looks as thugh the "Update" (box in middle) is connected with the left side as one box

=[
how to fix?

didn't work =/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<style type="text/css">
#main
{
margin-left: 190px;
}
#left
{
float: left;
width: 180px
}
</style>
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_portal_title>
            <pun_portal_desc>
        </div>
        <pun_navlinks>
    </div>
</div>

<pun_portal_ads>

<div id="left">
    <pun_portal_navigation>
    <pun_portal_login>
    <pun_portal_forum_stats>
    <pun_portal_forum_search>
    <pun_portal_recent_topics>
    <pun_portal_recent_posts>
    <pun_portal_top_posters>
    <div class="block">
    <h2><span>Extra Block</span></h2>
        <div class="box">
            <div class="inbox">
            <p>Here is an extra block, use it wisely. Simply copy this code and paste it under this blocks code to create a duplicate block. Then simply configure its content.</p>
            </div>
        </div>
    </div>
</div>
<div id="right">
<div class="block" style="float:right;width:134px">
    <h2><span>BLAH BLAH</span></h2>
        <div class="box">
            <div class="inbox">
            <p>UPDATE GTFO ME</p>
            </div>
        </div>
    </div>
</div>

<div id="main">
    <pun_main>
</div>

<div class="clearer"></div>

<pun_portal_users_online>

<pun_footer>

</div>
</div>

</body>
</html>

^^ what to fix?

www.kantgosouth.com

LOOK BOX IS ON THE RIGHT SIDE BUT WONT GET OFF MY UPDATES

okay .... well I tried messing around with index.php but I can't seem to get the "extra block" on the portal page (once installed the portal plugin) to the right side of the forum.

any help??

it is ^_^

thanks all.

where? .... for some reason I'm not seeing where I can change it >_>

I'm ... not sure O_O

the description on it is horrible.

Ok I have it set on my boards for when you register your in the user group "leecher" and I want it to auto switch that person to a user group after a certain amount of posts (not rank up) to lets say "member" that way the "member" user group and view certain private boards a leecher can not.

I don't want to have to transfer them manually.

am I clear on this, or am I being very vague.

thanks in advance!!

OK  installed it correctly I got my pun portal page

but the title of the pun portal is 'welcome' and in the plugin i can't find how to change it.

help pleasE?

thanks .. i feel dumb =/

I've already used the search button on this =/ Couldn't find any information I could follow through with fully.

So, can someone help me with adding another link to the Nav bar i.e. here it has "PunBB.org" when it normally it wouldn't.

90

(4 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Sounds like a variable isn't being set properly although it should be: restore a clean copy of admin_forums.php and try installing the mod again

Alright i'll do that, and thanks again.

thanks a bunch =]

what if statement would i add? can you type it out? I can't quite code php very well atm, I only understand little bits.

93

(4 replies, posted in PunBB 1.2 troubleshooting)

File: admin_forums.php
Line: 203

PunBB reported: Unable to insert group forum permissions

Database reported: 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 'AND forum_id=36' at line 1 (Errno: 1064)

>_> not sure what to do.

94

(4 replies, posted in PunBB 1.2 troubleshooting)

I'm trying to change my permissions to a certain forum ie. (guests can't read)

I get this error:

An error was encountered
Error: Unable to insert group forum permissions.

This is my code:

                        // Run an UPDATE and see if it affected a row, if not, INSERT
                        $db->query('UPDATE '.$db->prefix.'forum_perms SET read_forum='.$read_forum_new.', post_replies='.$post_replies_new.', post_topics='.$post_topics_new.' WHERE group_id='.$cur_group['g_id'].' AND forum_id='.$forum_id) or error('Unable to insert group forum permissions', __FILE__, __LINE__, $db->error());
                        if (!$db->affected_rows())
                            $db->query('INSERT INTO '.$db->prefix.'forum_perms (group_id, forum_id, read_forum, post_replies, post_topics) VALUES('.$cur_group['g_id'].', '.$forum_id.', '.$read_forum_new.', '.$post_replies_new.', '.$post_topics_new.')') or error('Unable to insert group forum permissions', __FILE__, __LINE__, $db->error());

Whats wrong? I just installed sub-forum mod so maybe I did something wrong with that?? =/

I'm at a loss.... but this is the file i think where the problem is? (admin_forum.php)

// Fetch some info about the topic
if (!$pun_user['is_guest'])
    $result = $db->query('SELECT pf.forum_name AS parent_forum, f.parent_forum_id, t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, s.user_id AS is_subscribed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'subscriptions AS s ON (t.id=s.topic_id AND s.user_id='.$pun_user['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());
else
    $result = $db->query('SELECT pf.forum_name AS parent_forum, f.parent_forum_id, t.subject, t.closed, t.num_replies, t.sticky, 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());

if (!$db->num_rows($result))
    message($lang_common['Bad request']);

^^ this is what's there.... what exactly would I change??

sorry for ... such nubbish questions.

Smartys wrote:

Moved to Modifications
Easiest way would be to change viewtopic.php so that if a person doesn't have enough permission to view the topic and they're a guest, they're directed to register

What exactly in the .php file would I change?

=/

people who haven't registered to my forums ..... I have a link that goes to view one of the topics that you cannot view if not registered.

How would I get the link to redirect them to the register page?

Right now it just sends them a

"Bad request. The link you followed is incorrect or outdated.

Go back"