6,926 2005-06-20 20:24
Re: Error: Unable to fetch category/forum list. (4 replies, posted in PunBB 1.2 bug reports)
6,927 2005-06-20 19:05
Re: Error: Unable to insert group forum permissions. (14 replies, posted in PunBB 1.2 bug reports)
I found this but I don't think that's the issue here
6,928 2005-06-18 11:22
Re: punbb adsense advertisement mod? (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You would need to add category to the SQL first
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']
6,929 2005-06-18 01:51
Re: Forbid defined groups to view the userlist. (9 replies, posted in Feature requests)
Not in plain PunBB
6,930 2005-06-18 00:24
Re: Dell 600m Laptop (8 replies, posted in General discussion)
No, that's the folder name
6,931 2005-06-17 12:29
Re: punbb adsense advertisement mod? (43 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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
ie: $cur_topic['forum_id'] != '11' && $cur_topic['forum_id'] != '12' && $cur_topic['forum_id'] != '13'
etc
6,932 2005-06-17 12:26
Re: Unified converter! (InvPB, miniBB, PhpBB, vBulletin & YabbSE) (105 replies, posted in PunBB 1.2 discussion)
Looks like it
6,933 2005-06-17 00:53
Re: Do you need the Search Matches and Search Words tables when... (1 replies, posted in PunBB 1.2 discussion)
You can re-generate them via the admin panel
6,934 2005-06-17 00:21
Re: Dell 600m Laptop (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
6,935 2005-06-16 23:52
Re: Dell 600m Laptop (8 replies, posted in General discussion)
wtf
That's the laptop I just got
6,936 2005-06-16 12:21
Re: 'Read' topics not marked as read (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
6,937 2005-06-15 21:35
Re: Add new BBCode (2 replies, posted in General discussion)
It's parser.php
And no Bekko, there isn't a "good and easy tool": it's editing regex
6,938 2005-06-15 19:44
Re: GMail (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
6,939 2005-06-15 18:30
Re: Blogs anyone? (72 replies, posted in General discussion)
http://www.google.com/search?hl=en& … gle+Search
Looks like that's out of date to me
6,940 2005-06-15 16:44
Re: Sorting Topics Choice Not Functioning (12 replies, posted in PunBB 1.2 bug reports)
No
6,941 2005-06-15 15:28
Re: Google Sitemaps (27 replies, posted in Feature requests)
I could have sworn I did, one sec
Edit: Here it is
6,942 2005-06-15 15:10
Re: Ban by name : case sensitive? (16 replies, posted in PunBB 1.2 discussion)
abclf: how would it link the cookie to a specific ban?
6,944 2005-06-14 23:11
Re: Take a look at this! (8 replies, posted in PunBB 1.2 discussion)
The ads
But the bug should be reported too
6,945 2005-06-14 21:42
Re: Take a look at this! (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
6,946 2005-06-14 20:35
Re: Cache output of extern.php, a little help? (15 replies, posted in PunBB 1.2 discussion)
CodeXP: Well, it is a dynamic page
However, let me check some other things...
6,947 2005-06-14 20:18
Re: Cache output of extern.php, a little help? (15 replies, posted in PunBB 1.2 discussion)
Try changing this and see if it helps the generation time a bit
6,948 2005-06-14 18:38
Topic: extern.php and cache (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 2005-06-14 17:49
Re: punBB max post size change (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 2005-06-14 17:19
Re: punBB max post size change (4 replies, posted in General discussion)
Bekko!
It's in post.php I believe, go change it
Edit: Yup
else if (strlen($message) > 65535)
$errors[] = $lang_post['Too long message'];