76

(3 replies, posted in General discussion)

This seems like an appropriate place...

I knew a guy named Mark who found a 'Pun Contest' in the Reader's Digest. Being a fairly intelligent man, he came up with some fairly original puns. He sent ten of his best puns to the contest. Two weeks later he received a letter telling him which of his puns made the final cut. Unfortunately for Mark, no pun in ten did.

77

(3 replies, posted in Programming)

Mods and Admins of your PunBB installation?

78

(65 replies, posted in PunBB 1.2 discussion)

I believe it's pay-per-click.

79

(200 replies, posted in General discussion)

Yeah, I've got four invites ready for anybody.

Infortunatly I forget my inderwear today. yikes

He hadn't explained if he had found a new host or not. Therefore my point remains valid, on the grounds that we know not if the new host has shell access or not. I was just trying to help. smile

82

(200 replies, posted in General discussion)

Dr.Jeckyl wrote:

so when is gmail going "public"? by public i mean truely open without the need for an invite.

So much is not known. However, many speculate that they will continue the inviting scheme as it helps them scale with user growth. Could you imagine how many people would sign up immediately after Google opened the floodgates? Not even Google could handle that. smile

Connorhd wrote:

how can you login to a server via ssh without shell access?

Note how I said 'If you have shell access on the new server'...

84

(4 replies, posted in Programming)

I have a friend that uses dotNetNuke - http://www.dotnetnuke.com/

85

(10 replies, posted in Feature requests)

Rickard is the man.

86

(200 replies, posted in General discussion)

Unfortunately no one can be told what Gmail is - you have to see it for yourself.

tongue

If you have shell access on the new server, do this:
- Put the datadump into a public html folder (be careful not to let anyone know about this)
- Login to new server via SSH
- use wget to retrieve the datadump from the old server - usage: 'wget http://example.org/filename.tar.gz'

88

(2 replies, posted in PunBB 1.2 troubleshooting)

That means you don't have access to the root filesystem on your host (which is common). But I don't understand how PunBB would try to access this, unless you setup the folders wrong or something.

89

(54 replies, posted in PunBB 1.2 discussion)

Chunk, I found this on Splash's page:
http://www.purplecloud.net/home/

90

(1 replies, posted in PunBB 1.2 discussion)

"something sometime" - Thanks for the warning tongue

91

(1 replies, posted in PunBB 1.2 discussion)

I was working on some code for a BBParser and I had come up with the code below. I looked to see what Rickard came up with, and honestly I think mine is more efficient. Take a look to see if you can benefit from it.

This basically does the same thing as check_tag_order:

<?php

// Returns true if each instance of a end tag has a beginning before it,
// unless count is mismatched.
function compare_strpos($text, $tag){
    
    $ret    = TRUE;                                // Set return value to true, in case it gets past the gauntlet
    
    $begin    = strpos_array($text, '[' . $tag);            // Retrieve array for tag beginning
    $end    = strpos_array($text, '[/' . $tag . ']');    // Ditto for end

    if (count($begin) != count($end)) {            // If the counts don't match, return value is FALSE
        $ret = FALSE;
    }
    
    foreach ($begin as $count => $pos) {        // Check each occurence
        if($pos > $end[$count]) $ret = FALSE;    // If position of the same occurence count of end tag
    }                                            // is before the begin tag, return value is FALSE

    return $ret;                                // Return return value
}

// Returns an array in this fashion:
// array(count => position)
function strpos_array($haystack, $needle){
   $kill    = 0;                                // Kills while loop when changed
   $offset    = 0;                                // Offset for strpos()
   $i        = 0;                                // Counter, not iterator

   while ($kill === 0) {
       $i++;
       $result = strpos($haystack, $needle, $offset); 

       if ($result === FALSE) {                    // If result is false (no more instances found), kill the while loop
           $kill = 1;
       } else {
           $array[$i] = $result;                // Set array
           $offset = $result + 1;                // Offset is set 1 character after previous occurence
       }

   }

   return $array;

}
?>

usage

$string = '[quote]blahblah[/quote]
';
compare_strpos($string, 'quote'); // returns true

$string = '[/quote]
blahblah[quote]'; 
compare_strpos($string, 'quote'); // returns false

$string = '[quote]blahblah'; 
compare_strpos($string, 'quote'); // returns false

$string = 'blahblah[/quote]
'; 
compare_strpos($string, 'quote'); // returns false

I hope this helps.

92

(17 replies, posted in Programming)

Excellent example, roo. This is a very powerful layout scheme as just changing the CSS file can make it look drastically different. That's the power of CSS.

It's also useful to note that they don't line up the same in IE and Firefox.  Not the problem of the author, but of Microsoft. smile

93

(17 replies, posted in Programming)

Take a look at http://www.bwongar.com/ - Is that kind of the format you're looking for?

94

(17 replies, posted in Programming)

Create a container called #nav, then create classes .box1 and .box2 in that id. The only attributes #nav should have are containing elements (width, padding, margin...)

95

(24 replies, posted in PunBB 1.2 bug reports)

Ah, come on. Javascript is easy. I can look into it if you want...

96

(19 replies, posted in PunBB 1.2 discussion)

No kidding. I think I like yours better though.

http://www.bwongar.com/pun/punbb_xhtml.png

97

(19 replies, posted in PunBB 1.2 discussion)

I'm going to email you, Rickard, a simple 80x15 I created within the PunBB Oxygen colors.

98

(36 replies, posted in Feature requests)

There could be an argument for JavaScript obfuscation, but I myself have in the past written a user agent (in Perl) to go through such obfuscation and put the information in the database. The algorithm can be too easily exploited.

99

(36 replies, posted in Feature requests)

We could easily leverage something like this: http://www.phpclasses.org/browse/package/1914.html

100

(36 replies, posted in Feature requests)

If this were integrated with the board (and I think it is a good idea) it would have to be an option within the administration section. This would require the GD lib and not all hosts support that.