Post lines 50 through to 60, within code blocks.

PgSQL database?

http://punbb.org/forums/viewtopic.php?id=6245&p=2

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.

Yup. It couldn't get the user count from the db. big_smile


Enable debug mode and post the output. smile

930

(18 replies, posted in General discussion)

Jansson wrote:

I'd say the first one even though it looks like something grabbed out of win95 tongue

It may have had origins somewhere from that angle. big_smile Have coloured it black now, though. That blue was getting right on my nerves.

http://forums.bauchan.org/portal/images/cat_icons/reference.png

Although, I do think no end of masking up would make the origins of the FAQ icon a mystery.

http://forums.bauchan.org/portal/images/cat_icons/faq.png

big_smile

931

(18 replies, posted in General discussion)

Jérémie wrote:

Ahemm.... none? hmm

Don't start me off searching again. It's taken me days to get this close. big_smile

If I have to choose, I would say the last one.

That and the book are the ones I'm leaning towards.

932

(18 replies, posted in General discussion)

I know these are not technically icons, big_smile but which of these would seem most appropriate being used as a tutorial icon?

http://outgoing.bauchan.org/cat_icons/tutorial.png
http://outgoing.bauchan.org/cat_icons/clipboard.png
http://outgoing.bauchan.org/cat_icons/jotterpad.png
http://outgoing.bauchan.org/cat_icons/reference.png


Cheers,

Matt

933

(6 replies, posted in General discussion)

Nope. You want:

if (strlen($page_data['title']) > $trunc_len)
{
    [truncated line]
}
else
{
    [full line]
}

934

(16 replies, posted in General discussion)

StevenBullen wrote:

I was only playing anyway... smile

I know. big_smile

Glad you got it sorted. smile

936

(16 replies, posted in General discussion)

StevenBullen wrote:

Erm... you sure about that...

You have more { } than I have ever seen in one file tongue

Ah, but is it highly readable and can you understand where each clause begins and ends without any head scratching? big_smile 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

(16 replies, posted in General discussion)

It's the same file, in it's base form. big_smile 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

(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:

http://outgoing.bauchan.org/unix/online.txt

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. smile

Here's a link on the postgresql site which contains info on MySQL to PgSQL conversion:

http://www.postgresql.org/docs/techdocs.3.html

Actually, it's a mod with a plugin. big_smile

941

(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

(16 replies, posted in General discussion)

bingiman wrote:

I tried that but it is required or else it doesn't work.

That's why I edited my post. big_smile 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

(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.

bingiman wrote:

Well, what that does is it makes ever user have the same name.

Apologies. big_smile Forgot to include the else part. big_smile

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>';
}

Finally got a cure sorted for this one, I believe. big_smile 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. smile

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. smile

PunRes has styles, and the wiki has info on adding a banner image. smile

http://www.punres.org/browse.php?pun_version=0
http://wiki.punres.org/

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. big_smile

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.

proweb wrote:

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?