251

(22 replies, posted in PunBB 1.2 troubleshooting)

try using background-image instead of background.

252

(24 replies, posted in General discussion)

no its not.  I'm guessing you havent done much work w/ phpnuke.

phpbb is hacked to fit into phpnuke.   the author of phpnuke doesnt have anything to do with phpbb. 

phpnuke.org doesnt even have a forum.

253

(24 replies, posted in General discussion)

why not just put punbb into phpnuke?  phpbb doesnt have anything to do with phpnuke.

254

(24 replies, posted in General discussion)

in my opinion, a blog is a blog, and is not a forum and a forum is a forum and not a blog.  comments to an article can become fairly "forum" like, and most "comments" systems on blogs are crap. 

you can create a "blog" look and feel from a forum.  there are other features that blogs typically have that arent included in punbb (nor any other bb system I've seen), which is more of a portal like feature set.  so it makes more sense to me to take the best of breed in each and use the right tools for the job (or start from scratch and write your own cms that does everything).

it takes a special kind of person to completely re-invent the wheel.  most people (myself included) would rather hack somebody elses work rather than start from ground zero and re-code it all from scratch.

255

(24 replies, posted in General discussion)

it took me about 30 minutes (to get in, and about an hour total to do the complete integration w/ bblog). depending on your knowledge of php (bblog uses smarty and you'd have to be familiar with it as well) and any other technologies employed, it may take shorter or longer.

blog:cms uses nucleus

256

(24 replies, posted in General discussion)

I think blog:cms is the only one that comes with it.

I use bblog, and integrated punbb into it myself.  its not that hard to do.

257

(24 replies, posted in General discussion)

no, blog:cms uses another blog system (I forget which one it is off hand).  Its bascially a big combination of a lot of other php apps, combined into a single package.  I looked at it when I put up my site (along w/ a million others).  It was the first time I'd seen punbb, and liked how it had the forums integrated, but creating themes for it looked overly difficult (compared w/ bblog) so I never went with it.

258

(114 replies, posted in Programming)

zend studio

259

(9 replies, posted in PunBB 1.2 discussion)

thats who I use. 

I use log4php w/ a custom logging appender, and use them when I render the IP to my logs, so its a one click reference on questionable users.

260

(16 replies, posted in General discussion)

visual studio 2005 is pretty good for making web pages.  its more for doing asp.net (puke), but its ok at doing html.  dreamweaver IMO is the best html editor I've seen, as far as ease of use and feature set.

261

(14 replies, posted in Programming)

very cool! 

I've never tried to use the click once publishing (dont trust it personally), but it ran pretty good.

262

(14 replies, posted in Programming)

looks like you should use tagmanager to deserialize the mp3.

ID3v1 id3 = new ID3v1();
using ( Stream s = File.OpenRead(@"\\dc01\DUMP\MP3\Tool\Opiate\Tool - Opiate - 01 - sweat.mp3") ) {
    TagManager mgr = new TagManager();
    id3.TagModel = mgr.Deserialize(s);
}
artistTextBox.Text = id3.Artist;
// ...

263

(14 replies, posted in Programming)

yea its all in C#

264

(14 replies, posted in Programming)

if you know what is where, the FileStream class lets you read byte by byte from the file. 

using ( Stream mp3 = File.OpenRead("song.mp3") ) {
    byte[] buffer = new byte[4096];
    s.Read(buffer, 0, buffer.Length);
    // you can also read specific areas:
    buffer = new byte[128];
    int start = 4097;
    int lengthToRead = buffer.Length;
    s.Read(buffer, start, lengthToRead);
}

there's already id3 readers/ writers out there in C#, and if you didnt want to use them, then they should help  you out with where to read / write.  http://sourceforge.net/projects/csid3lib/

265

(14 replies, posted in Programming)

there's no pack equiv.  you'll have to serialize it by hand that way.  If I get a few minutes I'll see if I can cook something up.

comment out the original pun_mail and use this one to try to send it again.  sounds like an email address is being truncated.

function pun_mail($to, $subject, $message, $from = '')
{
    global $pun_config, $lang_common;

    // Default sender/return address
    if (!$from)
        $from = '"'.str_replace('"', '', $pun_config['o_board_title'].' '.$lang_common['Mailer']).'" <'.$pun_config['o_webmaster_email'].'>';

    // Do a little spring cleaning
    $to = trim(preg_replace('#[\n\r]+#s', '', $to));
    $subject = trim(preg_replace('#[\n\r]+#s', '', $subject));
    $from = trim(preg_replace('#[\n\r:]+#s', '', $from));

    $headers = 'From: '.$from."\r\n".'Date: '.date('r')."\r\n".'MIME-Version: 1.0'."\r\n".'Content-transfer-encoding: 8bit'."\r\n".'Content-type: text/plain; charset='.$lang_common['lang_encoding']."\r\n".'X-Mailer: PunBB Mailer';

    // Make sure all linebreaks are CRLF in message
    $message = str_replace("\n", "\r\n", pun_linebreaks($message));

    if ($pun_config['o_smtp_host'] != '') {        
        echo "<p>smtp_mail sending to: $to</p>";
        smtp_mail($to, $subject, $message, $headers);
    } else
    {
        // Change the linebreaks used in the headers according to OS
        if (strtoupper(substr(PHP_OS, 0, 3)) == 'MAC')
            $headers = str_replace("\r\n", "\r", $headers);
        else if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN')
            $headers = str_replace("\r\n", "\n", $headers);
        echo "<p>php_mail sending to: $to</p>";
        mail($to, $subject, $message, $headers);
    }
}

you should see some debug info, and it will print out the email addresses as they are sent.  if they show up truncated, then its getting messed up along the way.

once you get it figured out, you'll want to remove this function & use the old one.

I'd check the broadcast emailer to make sure they're adding all the email addresss correctly.  can you post the code or link to a download of the plugin?

if the server address were bad you wouldnt get a 501 (which is an smtp response).  501 is a valid (negitive) response to everything except the initial connection response, QUIT and TURN.  most likely its a response to an email address you were requesting to send an email to.

take your data, and plug it in here for a line by line debug of whats going on:

<?php

// open a socket to the server
$sh = fsockopen('YOURSERVERHERE', 25);

echo "<pre>Recieved:\r\n";
while($buf = fread($sh)) {
    echo $buf;
}

// send helo to the server
echo "Sending: HELO\r\n";
fwrite($sh,"HELO MadHatter\r\n");

echo "Recieved:\r\n";
while($buf = fgets($sh)) {
    echo $buf;
}

// send who its from
echo "Sending: MAIL FROM you@yourdomain.com\r\n";
fwrite($sh, "MAIL FROM: you@yourdomain.com\r\n");

echo "Recieved:\r\n";
while($buf = fgets($sh)) {
    echo $buf;
}
// enter as many of this block as you have reciepients:
// start of TO block
echo "Sending: RCPT TO: you@yourdomain.com\r\n";
fwrite($sh, "RCPT TO: you@yourdomain.com\r\n");


echo "Recieved:\r\n";
while($buf = fgets($sh)) {
    echo $buf;
}
// end of to block

// send the email data
echo "Sending: DATA";
fwrite($sh, "DATA\r\n");

echo "Recieved:\r\n";
while($buf = fgets($sh)) {
    echo $buf;
}


echo "Sending: Subject:Hello\r\nThis is a sample email\r\n.\r\n";
fwrite($sh, "Subject:Hello\r\nThis is a sample email\r\n.\r\n");

echo "Recieved:\r\n";
while($buf = fgets($sh)) {
    echo $buf;
}

// close
fclose($sh);

echo "</pre>";

?>

it should give you a good idea where the problem lies.

269

(15 replies, posted in General discussion)

according to the css spec, right is right hand offset of the containing block (which is formed by the document root).  even if I explicitly define the width of the root, it still overflows.  which is the same kind of bizare stuff IE does, which people have figured out ways to make it obey the standards.

270

(15 replies, posted in General discussion)

if I'm not mistaken the

right:10px;

according to css rules this should align the right most edge of the content div, at 10px to the left of the right most edge of the window, which it does in every other browser i've seen, except opera.

271

(15 replies, posted in General discussion)

fixing all the xhtml bugs will require a lot of editing of stuff stored in the db (from all the source code & snippets I've posted where I didnt run it through an html encoding.

it seems that opera doesnt follow the right:10px like everybody else does (I've looked at screen shots of the site on http://v03.browsershots.org/ site that somebody linked to here the other day) and so far every other browser renders it the same (minding the "right:" style).

272

(15 replies, posted in General discussion)

the IE hack is not used (at least not for now), and even on the page which it is used, makes no difference as it has nothing at all to do w/ the classes that are causing the problem.

273

(15 replies, posted in General discussion)

it doesnt render my site correctly.  the content div always is rendered way wider than it should (and if anyone knows of a hack to make it work right, I'd be ever so greatful).  I've considered removing the stylesheet completely for opera browsers.

274

(10 replies, posted in PunBB 1.2 discussion)

subsilver has--and always will--be ugly. 

I cant imagine anyone intentionally wanting to use that theme.  tucows wouldnt annoy me, but seeing subsilver on a forum I wrote would make me livid.

275

(10 replies, posted in General discussion)

I use beyond compare http://www.scootersoftware.com/  I absolutely love that app.  it's pretty awesome (and inexpensive considering the featureset IMO).