easiest way is to keep userlist.php as it is, then provide a new link to uselist2day.php for filtered user list

in admin->options->additional menu
10=<a href=http://www.xxx.com/userlist2day.php>Todays visitors</a>

102

(9 replies, posted in Programming)

I am trying to add a new bbcode called [x]druvan@gmail.com[/x], what I want is, whatever value placed inside this code, should be turned into images, for example, email ids.

I created a function called imagize, which basically converts the given text into a png image file, then returns the file name. This part works OK.

Now, I added all this to parser.php file and   

$text = preg_replace("#\[x\](.*?)\[/x\]#", "imagize('$1')", $text);

==>  imagize('druvan@gmail.com')

I am not able to execute  'imagize' function, can someone help me.

Result  <img src=imagize('$1') />

line no: 166
$today = idate('U', mktime(23, 59, 59, date("m")  , date("d")-1, date("Y")));

cahnge to
$today = date('U', mktime(23, 59, 59, date("m")  , date("d")-1, date("Y")));

idate is a PHP version 5 function, I am not sure why I used it.

hope this fixes it

Ataxy, u r killing me man, Here's a quick hack

http://www.gotoguide.org/userlist2....

It works in firefox, I dont see any reason why it shouldnt work on other browsers.

Here is what it do

1 - restricts user list access only for mods and admins
2 - shows a filtered user list based on  todays log ins

My changes are between line 150 and 190

make minor changes in uselist.php, it is easy

106

(9 replies, posted in Programming)

It creates a very small png file, the file names needs to be fixed to make it unique per email id.

107

(9 replies, posted in Programming)

I wrote a smaller program to do the same, This can be included as a bbcode tag, I need to figure out how to it

<?php
/***********************************************************************
Druvan (druvan@gmail.com)
Use it anyway you want it.
************************************************************************/

function imagize($email){
header("Content-type: image/png");
$fontsize=4;
// Create the image
$im = @imagecreatetruecolor( strlen($email)*8, 15 ) or die( "Cannot Initialize new GD image stream" );
imagefilledrectangle( $im, 0,0,strlen($email)*8, 15, ImageColorAllocateHex( $im,'FFFFFF' ) );

// Create some colors
$color = imagecolorallocate($im, 125,  125,125);
// write the string at the top left
imagestring($im,$fontsize=3, 0, 0, $email, $color);


// Using imagepng() results in clearer text compared with imagejpeg()

return imagepng($im,"email.png");
//imagedestroy($im);
}
  
// Parse an RGB value
function getRGB( $hex )
{
    for( $i = 0; $i < 3; $i++ )
    {
        $temp = substr( $hex, 2 * $i, 2 );
        $rgb[$i] = 16 * hexdec( substr( $temp, 0, 1 ) ) + hexdec( substr( $temp, 1, 1 ) );
    }
    return $rgb;
}

// Allocate a GD color
function ImageColorAllocateHex( $image, $hex )
{
    $rgb = getRGB( $hex );
    $rgb = ImageColorAllocate( $image, $rgb[0], $rgb[1], $rgb[2] );
    return $rgb;
}

?> 
    <span>Mail to:<?php imagize("druvan@gmail.com"); ?><img src="email.png"/></span></h2>

I revised the script

108

(9 replies, posted in Programming)

Here u go.

http://www.gotoguide.org/email.zip

both php file and the reqiuired png file

It is easy. Some smart guy called Bill Zeller of  Minimal Verbosity.com, created a php script for button maker, the same can be used for email also.

I modified the script a little to explain the point,

http://www.gotoguide.org/email.php?righ … @gmail.com

change the rightText value.

cool, Thanks !

I added an email button into it, so that  a email like  xx@yy.co.in  can be converted to xx at yy dot co dot in .

thanks again

http://punbb.org/forums/viewtopic.php?id=7067

I made 2 silly modifications to userlist.php.

1 - Removed guest access to user list.
2 - In user list, added a column called last visit for moderators and admins

113

(0 replies, posted in PunBB 1.2 troubleshooting)

while trying to post, I am getting a precondition failed err.

The precondition on the request for the URL /post.php evaluated to false.

Thanks. It works

115

(18 replies, posted in News)

good job

116

(2 replies, posted in PunBB 1.2 discussion)

fair enough. now I have reason to look forward for 1.3 smile

Hope it will make to the final cut

117

(2 replies, posted in PunBB 1.2 discussion)

Is there any way to  put posting to into pending state, so that it will require moderators approval

118

(0 replies, posted in PunBB 1.2 show off)

http://jobs.gotoguide.org

need to work figure out how to remove the outer box around title bar, not complete yet

119

(1,382 replies, posted in General discussion)

grandpa

120

(1 replies, posted in PunBB 1.2 discussion)

Is there anyway to nofify the moderators about a bad post, so that they can edit/delete the post.

Stupid me. pl. delete this post.

Jansson wrote:

Why making editors for Windows when we really need a fast and reliable one on Linux sad

I use Anjuta in linux.  and Kate for textediting

that's bad. I am the only person switched from winamp to coolplayer.

Here's two more software's which I uses - both GPLed. Let me see what ya all thinks.

http://syn.sourceforge.net/ - I used to use texpad before this.

http://freemind.sourceforge.net/wiki/in … /Main_Page -  is a Mindmapping software.

winamp was good.
now it has too many option, it taks to time to load. tries to be everything.
moreover it is not GPLed. it is owned by AOL.

Try this GPLed mp3player for Win32. IMHO, it is really neat.

http://coolplayer.sourceforge.net/

125

(7 replies, posted in General discussion)

how does dyndns works ?

if I have a xyz.org registered to my name, how do I associate it to my computer.

what do I do with dyndsn ?