Indeed, all you're doing that way is adding an empty h1 and span (and, if PunBB was using E_ALL, I think that would give a notice).
2,151 2007-10-15 19:00
Re: PHP Warning: Missing argument 1 for pun_htmlspecialchars (7 replies, posted in PunBB 1.2 troubleshooting)
2,152 2007-10-15 18:25
Re: PHP Warning: Missing argument 1 for pun_htmlspecialchars (7 replies, posted in PunBB 1.2 troubleshooting)
Line 148 in an unmodified copy of PunBB is a comment, so you'll need to paste your code here
2,153 2007-10-15 15:11
Re: Server time (2 replies, posted in PunBB 1.2 troubleshooting)
You set server time to whatever the time of the server IS set to. Then you'll have GMT.
It sounds like your server's clock is set incorrectly.
2,154 2007-10-15 13:10
Re: View your posts feature (2 replies, posted in PunBB 1.2 discussion)
It lists every post you have made
2,155 2007-10-15 09:58
Re: Video tutorials (37 replies, posted in News)
Ignore that, someone was making test posts
2,156 2007-10-14 14:53
Re: viewtopic.php : hidden warnings causing fatal error (3 replies, posted in PunBB 1.2 discussion)
Fixed in changeset 1055
If there are any other instances of excessive warnings that you notice, feel free to post them.
2,157 2007-10-14 01:28
Re: Double posts and online users (38 replies, posted in PunBB 1.2 bug reports)
OK, I might FINALLY have a solution. For real this time.
FIND
// With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
default:
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
}
REPLACE WITH
// With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
case 'pgsql':
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) SELECT '.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].' FROM '.$db->prefix.'users WHERE id = '.$pun_user['id'].' AND NOT EXISTS (SELECT 1 FROM '.$db->prefix.'online WHERE user_id = '.$pun_user['id'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
default:
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES('.$pun_user['id'].', \''.$db->escape($pun_user['username']).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
}
FIND
// With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged) VALUES(1, \''.$db->escape($remote_addr).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
default:
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES(1, \''.$db->escape($remote_addr).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
}
REPLACE WITH
// With MySQL/MySQLi, REPLACE INTO avoids a user having two rows in the online table
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$db->query('REPLACE INTO '.$db->prefix.'online (user_id, ident, logged) VALUES(1, \''.$db->escape($remote_addr).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
case 'pgsql':
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) SELECT 1, \''.$db->escape($remote_addr).'\', '.$pun_user['logged'].' FROM '.$db->prefix.'users WHERE id=1 AND NOT EXISTS (SELECT 1 FROM '.$db->prefix.'online WHERE user_id = 1 AND ident = \''.$db->escape($remote_addr).'\')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
default:
$db->query('INSERT INTO '.$db->prefix.'online (user_id, ident, logged) VALUES(1, \''.$db->escape($remote_addr).'\', '.$pun_user['logged'].')') or error('Unable to insert into online list', __FILE__, __LINE__, $db->error());
break;
}
2,158 2007-10-14 00:01
Re: Quicksearch for 1.3 (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Keep in mind, of course, that 1.3 is in alpha, is not production quality (although search works to the best of my knowledge), and the extension system is not finished. Thus, creating any extension at this point is premature.
Also, in testing this, it looks like it pushes some links out of place, at least using Firefox 2. And you're using an extra element (<content>) that I don't think we use.
I'm going to close this: feel free to make a new topic once 1.3 is ready for general release. In the meantime though, we don't want to confuse people into thinking that it's ready when it isn't.
2,159 2007-10-13 21:27
Re: Deleted post still showing (phantom post) (8 replies, posted in PunBB 1.2 troubleshooting)
Yeah, in an unmodded copy of PunBB it should always be called.
2,160 2007-10-13 20:25
Re: Deleted post still showing (phantom post) (8 replies, posted in PunBB 1.2 troubleshooting)
The clear cache plugin doesn't fix this
2,161 2007-10-13 20:00
Re: Deleted post still showing (phantom post) (8 replies, posted in PunBB 1.2 troubleshooting)
If you mean the last post entry, how did you delete the post? It looks like update_forum wasn't called.
2,162 2007-10-13 19:59
Re: Problem with links of topics (20 replies, posted in PunBB 1.2 troubleshooting)
You should use $id, not $cur_topic['id'], which doesn't exist in an unmodded copy of PunBB.
2,163 2007-10-13 19:57
Re: An update (124 replies, posted in News)
Rickard wrote:Now, as some of you might have heard, the rights to PunBB are no longer owned by myself and/or the other developers.
...
It should also be clear that once code is released under the GPL, it remains that way forever i.e. it cannot be made closed source retrospectively.Code that has already been released cannot be un-GPLed. However, the copyright and license on new code (future releases) is not governed by the GPL unless it is released under those terms. There is no guarantee that future releases will be released under the GPL. There are several examples of GPL projects that switched to proprietary models; Active Collab comes to mind. That is entirely within the rights of the copyright holder.
Enough with the drama. This isn't the "End of free PunBB". PunBB is GPL and will remain so. If push comes to shove, I'll fork it myself!
I think that about covers it. PunBB's code is released under the GPL and will remain that way. The copyright holder can of course choose to relicense the code at any point, but that would result in a fork of the code that remains under the GPL, as Rickard stated
2,164 2007-10-12 19:03
Re: Google and forum/index.php (12 replies, posted in PunBB 1.2 discussion)
http://forums.digitalpoint.com/showthread.php?t=48460
Just use Google and you find lots of references to how to redirect index files
2,165 2007-10-12 19:02
Re: Search is broken (5 replies, posted in PunBB 1.2 troubleshooting)
It could be your host killing the query, I can't find any references to MySQL having any sort of automatic query killing built in.
2,166 2007-10-12 19:00
Re: Error when using 'EDIT' in User group administration (2 replies, posted in PunBB 1.2 troubleshooting)
That is not PunBB, at least not an unmodified version: there is no module.php in PunBB.
2,167 2007-10-12 18:58
Re: IPB Migration (Username problem) (4 replies, posted in PunBB 1.2 troubleshooting)
So, is it using the username? Because if so, that's expected behavior: as I said, PunBB doesn't have a display name option.
2,168 2007-10-12 13:42
Re: IPB Migration (Username problem) (4 replies, posted in PunBB 1.2 troubleshooting)
There's no equivalent of display name in PunBB, username is what's used. Are you saying that when display name and username are different in IPB, when converting, posts show what display name was instead of the username?
2,169 2007-10-12 10:28
Re: Folders icons (4 replies, posted in PunBB 1.2 troubleshooting)
They're not icons, they're colored boxes. Look in Oxygen_cs.css
2,170 2007-10-12 10:27
Re: Search is broken (5 replies, posted in PunBB 1.2 troubleshooting)
1.3 has FULLTEXT search for MySQL.
I would be interested to know why the queries are just stopping like that though (do you have a script that kills long running queries?)
2,171 2007-10-12 01:29
Re: Main Image Size (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Moved to Modifications
2,172 2007-10-11 18:48
Re: viewtopic.php : hidden warnings causing fatal error (3 replies, posted in PunBB 1.2 discussion)
I'll look into fixing this for 1.3, but you're right, it isn't really a bug.
Moved to PunBB Discussion
2,173 2007-10-11 10:41
Re: Video tutorials (37 replies, posted in News)
Please restrict your test posts to the Test forum
2,174 2007-10-11 10:29
Re: prevent spam (5 replies, posted in PunBB 1.2 discussion)
You can't add wildcards to ban a whole TLD
2,175 2007-10-11 02:12
Re: Bad error message? (11 replies, posted in PunBB 1.2 troubleshooting)
You could manually insert a row with conf_name of o_portal_news_id and conf_value of x, where x is some forum ID