1,001

(6 replies, posted in PunBB 1.2 troubleshooting)

.pun #brdtitle { background: url(img/Tempest/logo.gif) no-repeat; padding-left: 120px; height: 90px; }

That really should work...

Right, here goes then:

To replace:

'#\[quote\:(.+?)\="(.+?)"\](.+?)\[/quote\]#i'

Replacement:

'[quote=$2]$3[/quote]
'

Should do it smile

Hrmm... give me a sec to install phpBB and I'll take a look smile

Since PunBB supports both, why even bother converting? tongue
Just try removing those lines smile

1,005

(10 replies, posted in PunBB 1.2 troubleshooting)

Is your forum in a frame?

I thought we already had this? Oh well, looks nice enough smile

I don't mind the current way tongue

There's plenty of caching being done already, and I don't think that should be done even more. I was just offering a solution.

Yep, correct indeed.

<?php
$arr1 = array(':)', ':D', ':(', ':/');
$arr2 = array('happy', 'excited', 'sad', 'sad');
echo str_replace($arr1, $arr2, $text);
?>
Rickard wrote:

But the per-forum moderator list is stored in the forums table and is grabbed when we grab the forums, so I'm not sure how that would be implemented.

It's doable though. Make an associative array and store the array of the moderators (serialized or not) as a sub-array. So something like this:

<?php
$moderators = array(
// forum_id => moderators
1 => array('Connorhd', 'Smartys')
)
?>

Might be harder to make a cache file for tho.

1,010

(2 replies, posted in General discussion)

Saw it a while ago (or atleast something similar) smile

1,011

(5 replies, posted in General discussion)

Happy new year big_smile
May the wind of bytes bring lovely code.

1,012

(114 replies, posted in PunBB 1.2 discussion)

A video or I don't believe you! tongue
Too bad you guys didn't make it sad

It's just Debug mode.

Yes and yes.

1,015

(8 replies, posted in PunBB 1.2 troubleshooting)

Then you're in luck, it never helped for me tongue

That's odd =/

And that should be in your language files wink

1,017

(8 replies, posted in PunBB 1.2 troubleshooting)

I don't know precisecly, but last time I had it it meant the server shut down uncleanly while there was a query going on to that table. And I have no idea on how to get rid of it except to remake the table.

1,018

(8 replies, posted in PunBB 1.2 troubleshooting)

Oh noes, in use. I'd say, delete the search tables, recreate them and run the search rebuilding in Administration.

1,019

(12 replies, posted in PunBB 1.2 troubleshooting)

Odd. If everything is uploaded correctly you shouldn't be getting any errors.

No clue, sorry. Except that your directories got messed up.

1,020

(12 replies, posted in PunBB 1.2 troubleshooting)

Yes, you didn't upload everything.

1,021

(12 replies, posted in PunBB 1.2 troubleshooting)

Yes, if you want to access it through your webbrowser it should be in the html directory.
And yes, all the subdirectories are correct.

1,022

(12 replies, posted in PunBB 1.2 troubleshooting)

Are you sure you uploaded it to the correct dir?

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.min_posts, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE '.$pun_user['num_posts'].' > f.min_posts AND fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

to

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.min_posts, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE '.$pun_user['num_posts'].' > f.min_posts AND fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', false) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

1,024

(12 replies, posted in PunBB 1.2 troubleshooting)

1. You create the directory (you may know them better as folders) in what you want your forum to be. If you want your whole site to be a forum, don't and just upload it in the root. Else, you create a new one and upload your forum there.

2. Once your forum is uploaded, open the link to it in your webbrowser. Then follow the steps in install.php

You could try a DISTINCT reported_by.