I think that's a possible feature for 1.3
In the meantime, it could be done as a mod
6,876 2005-07-26 20:19
Re: Moderator queue (5 replies, posted in Feature requests)
6,877 2005-07-26 20:18
Re: Remote Avatar (19 replies, posted in Feature requests)
If you make it a mod
There are issues with it (the fact that the pic might not exist, might not fit the max width/height, could be an image file served by the server holding it as PHP, etc).
6,878 2005-07-26 20:16
Re: Google mod (8 replies, posted in Feature requests)
Erm, what would the point of that be? If people can just pick up copies of threads via Google's cache, then why keep it so you need to register to view? A mod could be written, obviously, but this doesn't seem like a very good feature, and not a very useful one for most people
6,879 2005-07-26 20:14
Re: Bans don't affect extern.php (6 replies, posted in PunBB 1.2 bug reports)
Well, if you're banned you can't see the forum
It's easy enough to add the lines so that banned people can't view it
6,880 2005-07-26 01:58
Topic: Alternative for version check (1 replies, posted in Feature requests)
I was messing around, and I realized that it was possible to do the version check with allow_url_fopen disabled using fsockopen.
My code:
if ($action == 'check_upgrade')
{
if (!ini_get('allow_url_fopen'))
{
$latest_version = '';
$fp = @fsockopen("www.punbb.org", 80, $errno, $errstr, 30);
$out = "GET /latest_version HTTP/1.1\r\n";
$out .= "Host: www.punbb.org\r\n";
$out .= "Connection: close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp))
{
$latest_version .= trim(@fread($fp, 128));
}
$latest_version = explode("\n", $latest_version);
$latest_version = array_pop($latest_version);
@fclose($fp);
}
else
{
$fp = @fopen('http://punbb.org/latest_version', 'r');
$latest_version = trim(@fread($fp, 16));
@fclose($fp);
}
Of course, you could use fsockopen for everything to simplify it.
6,881 2005-07-26 01:35
Topic: Bans don't affect extern.php (6 replies, posted in PunBB 1.2 bug reports)
People who are banned can still "read" the forums somewhat by using extern.php, because bans are never checked
6,882 2005-07-24 00:34
Re: upload mod (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
6,883 2005-07-21 20:03
Re: Hacked with PunBB 1.2.6 (7 replies, posted in General discussion)
Are you sure you updated it properly? Because searching for ""Hacked By Rain | Team" + punbb" gives me textpattern.de's forum, which was 1.2.5 and is currently offline
6,884 2005-07-21 19:59
Re: Happy Birthday Rickard (13 replies, posted in General discussion)
Happy birthday Rickard
6,885 2005-07-21 19:57
Re: Unable to fetch category/forum list (with debug) (1 replies, posted in PunBB 1.2 troubleshooting)
Well, that's a modded index page. Download a fresh copy of 1.2.6
6,887 2005-07-14 20:43
Topic: Mistake in install.php (1 replies, posted in PunBB 1.2 bug reports)
switch ($db_type)
{
case 'mysql':
case 'mysqli':
$sql = 'CREATE TABLE '.$db_prefix."config (
conf_name VARCHAR(255) NOT NULL DEFAULT '',
conf_value TEXT,
PRIMARY KEY (conf_name)
) TYPE=MyISAM;";
break;
case 'pgsql':
$sql = 'CREATE TABLE '.$db_prefix."config (
conf_name VARCHAR(255) NOT NULL DEFAULT '',
conf_value TEXT,
PRIMARY KEY (conf_name)
)";
break;
case 'sqlite':
$sql = 'CREATE TABLE '.$db_prefix."config (
conf_name VARCHAR(255) NOT NULL DEFAULT '',
conf_value TEXT,
PRIMARY KEY (conf_name)
)";
break;
}
$db->query($sql) or error('Unable to create table '.$db_prefix.'online. Please check your settings and try again.', __FILE__, __LINE__, $db->error());
should be config instead of online in the error
6,888 2005-07-14 20:04
Re: Forum Description (14 replies, posted in PunBB 1.2 bug reports)
No reason, I just like it better that way
6,889 2005-07-13 23:42
Re: SMTP server form won't retain information (16 replies, posted in PunBB 1.2 troubleshooting)
I'm surprised no one told me that the original fix didn't work
6,890 2005-07-13 23:19
Re: SMTP server form won't retain information (16 replies, posted in PunBB 1.2 troubleshooting)
Because of course I'm an idiot
I just edited my original fix to reflect the correct usage of array_key_exists, try using that instead
6,891 2005-07-13 20:10
Re: SMTP server form won't retain information (16 replies, posted in PunBB 1.2 troubleshooting)
(and now I also got some PHP error msg that flashed by briefly when applying changes).
Change redirect time to a longer period (so you have time to see the error) and copy/paste the error here. Change redirect time back after, of course
6,892 2005-07-13 11:47
Re: SMTP server form won't retain information (16 replies, posted in PunBB 1.2 troubleshooting)
Well, if you used the fix, then the problem shouldn't be there again
I'll check when I get home
6,893 2005-07-13 11:45
Re: Report Post (3 replies, posted in PunBB 1.2 troubleshooting)
Works fine for me...
Did you mod admin_reports.php or misc.php ?
6,894 2005-07-11 21:01
Re: Problem with 'show results as posts' in search (8 replies, posted in PunBB 1.2 troubleshooting)
FIND
$sql = 'SELECT p.id AS pid, p.poster AS pposter, p.posted AS pposted, p.poster_id, '.$substr_sql.'(p.message, 1, 1000) AS message, t.id AS tid, t.poster, t.subject, t.question t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.forum_id FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id WHERE p.id IN('.$search_results.') ORDER BY '.$sort_by_sql;
REPLACE WITH
$sql = 'SELECT p.id AS pid, p.poster AS pposter, p.posted AS pposted, p.poster_id, '.$substr_sql.'(p.message, 1, 1000) AS message, t.id AS tid, t.poster, t.subject, t.question, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.forum_id FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id WHERE p.id IN('.$search_results.') ORDER BY '.$sort_by_sql;
t.question didn't have a comma after it
6,895 2005-07-11 20:18
Re: Forum Description (14 replies, posted in PunBB 1.2 bug reports)
It's a problem with admin_options.php
The fix:
FIND
// Only update values that have changed
if (isset($pun_config['o_'.$key]) && $pun_config['o_'.$key] != $input)
REPLACE WITH
// Only update values that have changed
if (array_key_exists('o_'.$key.'', $pun_config) && $pun_config['o_'.$key] != $input)
The problem is when values are NULL, isset is false, whereas array_key_exist is true
Edited to fix my being an idiot
6,896 2005-07-10 12:31
Re: how to convert database from pubBB 1.1* to punBB 1.2* (1 replies, posted in General discussion)
6,897 2005-07-10 12:28
Re: Thai language pack ! (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Email it to Rickard
6,898 2005-07-09 14:43
Re: Problem with 'show results as posts' in search (8 replies, posted in PunBB 1.2 troubleshooting)
"Plain" as in "unmodded", straight from the download
6,899 2005-07-08 20:26
Re: Use chmod in install.php (6 replies, posted in Feature requests)
A directory can be writable and yet not be a 777. It would not be nice to silently force a 777 chmod if it's not needed.
I wasn't suggesting using 777, I said to replace it with whatever it should actually be
I think this does not make very much sense.
The script is run by the webserver.
The webserver is usually run as "www" or "nobody" and can only chmod files that it owns.So, if the webserver already owns the directory it makes no sense chmoding it because nobody else will write in it.
If not the webserver will not be allowed to chmod it anyway.No, sorry, I don't see the point. But maybe I'm just blind..,
I had someone I know install PunBB, the folders were there but weren't writable by the webserver. I think you're right, that chmod didn't work for him, but in that case isn't mkdir for those folders a good idea?
6,900 2005-07-06 20:21
Re: Migration from FSB (1 replies, posted in Feature requests)
Well, you could discuss it with Chacmool, since he created the unified convertor