Post lines 50 through to 60, within code blocks.
926 2008-01-24 11:57
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
927 2008-01-24 11:49
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
PgSQL database?
928 2008-01-24 11:45
Re: Difference between blogs and forum? (16 replies, posted in General discussion)
Unless I'm mistaken, the original concept of the blog was merely as a jump board for people to publish their personal opinions, views, or otherwise meaningless twaddle. A forum is exactly that. A discussion forum.
929 2008-01-24 09:28
Re: Problem With Broadcast Email (13 replies, posted in PunBB 1.2 troubleshooting)
Yup. It couldn't get the user count from the db.
Enable debug mode and post the output.
930 2008-01-23 09:13
Re: Icons (18 replies, posted in General discussion)
I'd say the first one even though it looks like something grabbed out of win95
It may have had origins somewhere from that angle. Have coloured it black now, though. That blue was getting right on my nerves.
Although, I do think no end of masking up would make the origins of the FAQ icon a mystery.
931 2008-01-23 09:09
Re: Icons (18 replies, posted in General discussion)
Ahemm.... none?
Don't start me off searching again. It's taken me days to get this close.
If I have to choose, I would say the last one.
That and the book are the ones I'm leaning towards.
932 2008-01-23 05:33
Topic: Icons (18 replies, posted in General discussion)
I know these are not technically icons, but which of these would seem most appropriate being used as a tutorial icon?
Cheers,
Matt
933 2008-01-23 01:01
Re: Custom Page truncation (6 replies, posted in General discussion)
Nope. You want:
if (strlen($page_data['title']) > $trunc_len)
{
[truncated line]
}
else
{
[full line]
}
934 2008-01-22 23:05
Re: Looking for some validation help (16 replies, posted in General discussion)
I was only playing anyway...
I know.
935 2008-01-22 22:35
Re: building PHP with Mysql or moving databases from mysql to postgres (3 replies, posted in Programming)
Glad you got it sorted.
936 2008-01-22 22:33
Re: Looking for some validation help (16 replies, posted in General discussion)
Erm... you sure about that...
You have more { } than I have ever seen in one file
Ah, but is it highly readable and can you understand where each clause begins and ends without any head scratching? The curly braces improve both readibility and prevent any 'unexpected' issues due to code placement.
It's a carry over from shell scripting, which is, (still, I suppose), my preferred choice. The braces prevent child processes being spawned. (If I remember correctly. It has been a while since I last did any indepth shell work). Again, it also keep the readability and operation sane. (In my opinion).
937 2008-01-22 21:48
Re: Looking for some validation help (16 replies, posted in General discussion)
It's the same file, in it's base form. Mine has just been tidied up, (both cosmetically and codewise), and then just has minor alterations/additions. Have a look. You'll see that most of it, (other than the altered lang_file syntax), is the same.
938 2008-01-22 19:54
Re: Looking for some validation help (16 replies, posted in General discussion)
Compare it against mine, (which is valid). It'll be the closing tag placement within the loop, I would guess:
939 2008-01-22 19:39
Re: building PHP with Mysql or moving databases from mysql to postgres (3 replies, posted in Programming)
You'd need to look at the INSTALL files for the source you're compiling. You'll probably find you'll need some extra switches during configure for compiling on Solaris. It tends to be one of the the quirkier systems to build on, by all accounts.
Here's a link on the postgresql site which contains info on MySQL to PgSQL conversion:
940 2008-01-21 18:31
Re: html in posts (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Actually, it's a mod with a plugin.
941 2008-01-21 02:56
Re: Looking for some validation help (16 replies, posted in General discussion)
Give this a try. Change this:
?>
<td class="tcr"><?php echo $last_post ?></td>
</tr>
<?php
}
}
}
else
to this:
?>
<td class="tcr"><?php echo $last_post ?></td>
<?php
}
?>
</tr>
<?php
}
}
else
942 2008-01-21 02:51
Re: Looking for some validation help (16 replies, posted in General discussion)
I tried that but it is required or else it doesn't work.
That's why I edited my post. It would have thrown a parsing error if that were the case. Get the code indented, and it'll be far easier to check.
943 2008-01-21 02:44
Re: Looking for some validation help (16 replies, posted in General discussion)
Edit: Scrub that reply. Tab the code to indent it. You'll probably have one of the braces out of place. The layout makes it nigh on impossible to see offhand, however.
944 2008-01-20 20:22
Re: Excluding myself from a particular feature I am using. (7 replies, posted in General discussion)
Well, what that does is it makes ever user have the same name.
Apologies. Forgot to include the else part.
945 2008-01-20 20:09
Re: Excluding myself from a particular feature I am using. (7 replies, posted in General discussion)
if ($cur_post['username'] != $pun_user['username'])
{
$username = '<a href="profile.php?id=' . $cur_post['poster_id'] . '"><span style="color:'.$cur_post['g_color'].'">' . pun_htmlspecialchars($cur_post['username']) . '</span></a> <a href="javascript:void(0)" onClick="document.getElementById(\'show_quick\').style.display = \'none\' ? \'block\' : \'none\'; insert_text(\'[b][color=red]@'.pun_htmlspecialchars($cur_post['username']).'[/color][/b] - \',\'\');" rel="nofollow" title="'.$lang_topic['Address Post'].'"><img style="vertical-align: middle;" src="'.$pun_config['o_base_url'].'/img/address_to.gif" alt="'.$lang_topic['Address To'].'" title="'.$lang_topic['Address To'].'" /></a>';
}
946 2008-01-20 18:42
Re: check_cookie function log message (6 replies, posted in PunBB 1.2 discussion)
Finally got a cure sorted for this one, I believe. Added an isset clause within the check_cookie function to set default user if that field/var wasn't set. Seems to have gradually stopped that notice from appearing in the logs. Cheers for the advice Elbekko.
947 2008-01-20 00:07
Re: I need serious help - punbb virgin here (9 replies, posted in PunBB 1.2 discussion)
Just upload the styles into the style dir, keeping the directory structure when you upload the files. If you look on here or PunRes, there is a plugin, (I believe), for managing styles and uploading them. Saves having to do it manually.
948 2008-01-19 23:56
Re: I need serious help - punbb virgin here (9 replies, posted in PunBB 1.2 discussion)
PunRes has styles, and the wiki has info on adding a banner image.
http://www.punres.org/browse.php?pun_version=0
http://wiki.punres.org/
949 2008-01-19 23:43
Re: PunUploadExtra 1.1 (32 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This post is regarding a post on Punres, but it's playing silly buggers over there when I try posting this, so popping it on here.
Assuming that the uploads dir is in the base forum directory, give this a try. Find this line in uploads.php:
fpassthru($fp);
and comment it out by changing it to:
//fpassthru($fp);
Then, add this just after that line:
header('Location: '.$pun_config['o_base_url'].'/uploaded/'.$file_name);
See if that makes any difference.
950 2008-01-19 18:17
Re: Forum Growing FAST - Need Contractors To Optimize My Server / PunBB (22 replies, posted in PunBB 1.2 troubleshooting)
I've got debug mode on and the query counts look pretty average (6 - 14 queries per page).
Just out of curiosity, how long is it taking to complete the queries, on average? Less than a second, several seconds or above?