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>
You are not logged in. Please login or register.
PunBB Forums → Posts by druvans
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>
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
It creates a very small png file, the file names needs to be fixed to make it unique per email id.
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
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
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
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
fair enough. now I have reason to look forward for 1.3
Hope it will make to the final cut
Is there any way to put posting to into pending state, so that it will require moderators approval
need to work figure out how to remove the outer box around title bar, not complete yet
grandpa
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.
Why making editors for Windows when we really need a fast and reliable one on Linux
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.
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 ?
PunBB Forums → Posts by druvans
Powered by PunBB, supported by Informer Technologies, Inc.