http://punbb.org/forums/viewtopic.php?id=7692

I found this but I don't think that's the issue here

You would need to add category to the SQL first wink

So
FIND

if (!$pun_user['is_guest'])
    $result = $db->query('SELECT 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'].') 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 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'].') 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());

REPLACE WITH

if (!$pun_user['is_guest'])
    $result = $db->query('SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, f.cat_id, 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'].') 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 t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, f.cat_id, 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'].') 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());

Then just use $cur_topic['cat_id']

Not in plain PunBB

6,930

(8 replies, posted in General discussion)

No, that's the folder name tongue

af3 wrote:

I used the following to hide Ads from certain forum, in this case forum_id=11.

    if ($post_count == '1' && $adsense_config['google_adsense_enabled'] == '1' && $cur_topic['forum_id'] != '11') {

Now, how do I hide the ads from a certain category or more  forums?

TQ + regards

Just add more forum ids to the if statement wink

ie: $cur_topic['forum_id'] != '11' && $cur_topic['forum_id'] != '12' && $cur_topic['forum_id'] != '13'
etc

Looks like it

You can re-generate them via the admin panel

6,934

(8 replies, posted in General discussion)

No way, it's a new laptop, and I'm not messing with it because of a webpage called lol.htm tongue

6,935

(8 replies, posted in General discussion)

wtf
That's the laptop I just got hmm

6,936

(40 replies, posted in PunBB 1.2 bug reports)

I think if he didn't, someone else could: I know I'd be more then happy to wink

6,937

(2 replies, posted in General discussion)

It's parser.php wink
And no Bekko, there isn't a "good and easy tool": it's editing regex big_smile

6,938

(200 replies, posted in General discussion)

I think they don't need to, because they don't think anyone would ever try and use that much tongue

6,939

(72 replies, posted in General discussion)

http://www.google.com/search?hl=en& … gle+Search
Looks like that's out of date to me wink

No

6,941

(27 replies, posted in Feature requests)

I could have sworn I did, one sec
Edit: Here it is

6,942

(16 replies, posted in PunBB 1.2 discussion)

abclf: how would it link the cookie to a specific ban?

6,943

(27 replies, posted in Feature requests)

It isn't wink

6,944

(8 replies, posted in PunBB 1.2 discussion)

The ads wink
But the bug should be reported too tongue

6,945

(8 replies, posted in PunBB 1.2 discussion)

scotty: Show Rickard, he said if those were reported to them he'd try and keep them from showing up wink

CodeXP: Well, it is a dynamic page tongue
However, let me check some other things...

Try changing this and see if it helps the generation time a bit

6,948

(2 replies, posted in PunBB 1.2 bug reports)

from extern.php

// Get the forum config
$result = $db->query('SELECT * FROM '.$db->prefix.'config') or error('Unable to fetch forum config', __FILE__, __LINE__, $db->error());
while ($cur_config_item = $db->fetch_row($result))
    $pun_config[$cur_config_item[0]] = $cur_config_item[1];

Wouldn't it save a query in most cases to do what common.php does

// Load cached config
@include PUN_ROOT.'cache/cache_config.php';
if (!defined('PUN_CONFIG_LOADED'))
{
    require PUN_ROOT.'include/cache.php';
    generate_config_cache();
    require PUN_ROOT.'cache/cache_config.php';
}

6,949

(4 replies, posted in General discussion)

You also have to make database changes, as Connor said
http://punbb.org/forums/viewtopic.php?id=5532

6,950

(4 replies, posted in General discussion)

Bekko! big_smile
It's in post.php I believe, go change it tongue

Edit: Yup

    else if (strlen($message) > 65535)
        $errors[] = $lang_post['Too long message'];