• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Suggestions

krakjoe

stop staring
NLC
Ok, so next week, I got work till tuesday, but I got drunk last week and banned from the forum I go on to find work, so any ideas that you might have for an application / script that you wanna see available please lemme know, complicated as you like ( if u suggest something simple, I'll get bored ten minutes in and it'll never get done ) ...... whatever you want ...... go
 
A PHP script that displays a candle stick graph based on a database input.
Can you make one for me?
 
I sure can. show me the data structure, if you wanna contact me on msn you're welcome to do so.
 
Seeing as I'll need this soon.. and I've never worked with exec() and I know you're an expert -
convert videos to flv
../file/filename.wmv
to
../file/filename.wmv.flv
and generate small thumbnail:
../file/filename.wmv.flv.gif (or jpeg or whatever, doesn't really matter).

thanks!
 
I'm still waiting for somebody to make a directory forum. It's just an idea I had a while back ago.

The forum would be php/mysql and look just like a links directory script on the index page, but admin could add unlimited categories/subcategories and forums.

I think it would be real cool and original.

Another cool built in feature for the directory forum would be to have a link somewhere in the header for members to suggest a category/forum that admin could approve/disaprove.

As far as the design goes could use something simple like this:
http://nmms.ms11.net/directory_forum.html
 
Seeing as I'll need this soon.. and I've never worked with exec() and I know you're an expert -
convert videos to flv
../file/filename.wmv
to
../file/filename.wmv.flv
and generate small thumbnail:
../file/filename.wmv.flv.gif (or jpeg or whatever, doesn't really matter).

thanks!

PHP:
<?
function convertVideo( $input, $output ) { exec( sprintf( 'ffmpeg -i %s %s', $input, $output ), $return ); return $return; }
convertVideo("/home/path/to/your/wmv", "/output/to/flv/or/any/other/format/that/you/have/a/codec/for");
?>
making thumbs is just as easy .... when you need it come at me on msn.

I'm still waiting for somebody to make a directory forum. It's just an idea I had a while back ago.

The forum would be php/mysql and look just like a links directory script on the index page, but admin could add unlimited categories/subcategories and forums.

I think it would be real cool and original.

Another cool built in feature for the directory forum would be to have a link somewhere in the header for members to suggest a category/forum that admin could approve/disaprove.

As far as the design goes could use something simple like this:
http://nmms.ms11.net/directory_forum.html

I'm confused as to what the site would be, would it be a directory or a forum ?
 
Last edited:
Dear, krakjoe

i would wanna have a form to send sms in php
+countrycode (example: +32) best in dropdown
+receiver ( example: 0101010101)
+message ( example: this is a test) box is 160chars

php needs to execute a sms.exe with paramters following:
sms.exe -receiver:+320101010101 -text:"this is a test"

also i want to php to be configurable to be able to add more countrycodes later.
example sending messages to belgium is free atm an usa is payed if usa is free then i could add it on the list of countrycodes.

also a bit security to check that only messages are send to +32 or what is selected by dropdown

also i want an anti flood protection(editable) lets say 60sec so once a sms is send they have to wait 60sec before they can send another one.
+ a captcha check check when clicking send

and finaly a small logfile so i can check how many messages where send in total and that day.

hope that this would be possible for u to make it :)
i hope u wont get bored with this one :p
if there is anything else i forgot to mension that needs to be entered.
Thx in advance

Philippe
 
something new at least, can you post some exact examples of the output from common error messages produced by sms.exe and also the success output too
 
something new at least, can you post some exact examples of the output from common error messages produced by sms.exe and also the success output too

well for now i've been testing by entering this line in the cmd.exe from windows
sms.exe -receiver:+320101010101 -text:"this is a test"
the quotes " around the message are crucial because else the message get shopped off ather the first word

sms.exe doesnt give any output message like message send or couldnt not be send because it's a standalone program on windows so theoriticly the message should always be message send to gateway.
 
Ok, so next week, I got work till tuesday, but I got drunk last week and banned from the forum I go on to find work

:lol: they're loss could be our gain :evilb:

so any ideas that you might have for an application / script that you wanna see available please lemme know, complicated as you like ( if u suggest something simple, I'll get bored ten minutes in and it'll never get done ) ...... whatever you want ...... go

Looking for a coder for a quite big (well I think it is) project, you game for it Joe, payment can be discussed (would be over a couple of months - but would take that long I think to code and test it properly) I'll pm the details if your interested :)
 
You know me decker, I'll b up for it, send me some details ...

PHP:
<? 
session_start();
/**
 @desc			Include all the country codes you wish to allow here
**/
$allowed = array
(
	"44",
	"32"
);
/**
 @desc			Maximum amount of characters per message
**/
define("MAX_LENGTH", 160 );
/**
 @desc			Set a max message per hour limit
**/
define("MAX_MESSAGES", 5 );
/**
 @desc			This is where we start to process the forms request
**/
if( $_REQUEST['ajax'] ):
	if(  $_COOKIE['sent'] > MAX_MESSAGES ) :
		printf("You have reached your maximum amount of messages [ %d ] please come back in one hour", MAX_MESSAGES );
	elseif( $_REQUEST['to'] == "" or $_REQUEST['ajax'] == "") :
		print("Both fields are required");
	elseif( @strlen( $_REQUEST['text'] ) > MAX_LENGTH ):
		printf( "Your message is too long, please shorten it to %d", MAX_LENGTH );
	elseif(  preg_match('#[^0-9]+#', $_REQUEST['to'] )  ) :
		printf( "%s is not a valid phone number, please use ONLY digits", $_REQUEST['to'] );
	elseif( !@in_array( substr( preg_replace('#\^+#', '', $_REQUEST['to'] ), 0, 2 ), $allowed ) ):
		print( "Messages to that country are not supported") ;
	else:
		setcookie( 'sent', $_SESSION['requests']++, time()+3600 );
		exec( sprintf("sms.exe -receiver:+%s -text:\"%s\"", $_REQUEST['to'], $_REQUEST['text'] ) );
		printf("Message queued for delivery to %s", $_REQUEST['to'] );
	endif;
else:
?>
<html>
<head>
<title>Page Title</title>
	<style type="text/css">
		body{ }
		td { vertical-align:top; }
		div#message{ color:#FF0000; font-weight:bold; }
		div#container{ border: 1px solid black; width:500px; }
		.textarea, .input{ width:100%; }
		.submit{ border:0px; background-color:blue; color:white; width:100%; font-weight:bold; }
	</style>
	
	<script language="javascript">	
		function sendSMS( to, text )
		{
			var xmlhttp=false;
			document.getElementById('sending').innerHTML = '<center><img src=sending.gif border=0/></center>';
			/*@cc_on @*/
			/*@if (@_jscript_version >= 5)
			// JScript gives us Conditional compilation, we can cope with old IE versions.
			// and security blocked creation of the objects.
			 try 
			 {
			  	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			 } 
			 catch (e) 
			 {
			  	try 
				{
			   		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			  	} 
				catch (E) 
				{
			   		xmlhttp = false;
			  	}
			 }
			@end @*/
			if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
				try 
				{
					xmlhttp = new XMLHttpRequest();
				} 
				catch (e) 
				{
					xmlhttp=false;
				}
			}
			if (!xmlhttp && window.createRequest) {
				try 
				{
					xmlhttp = window.createRequest();
				} 
				catch (e) 
				{
					xmlhttp=false;
				}
			}
			 xmlhttp.open( "GET", "<?=$_SERVER['PHP_SELF']; ?>?ajax=1&to=" + encodeURI( to ) + "&text=" + encodeURI( text ), true );
			 xmlhttp.onreadystatechange=function() 
			 {
			  	if (xmlhttp.readyState==4) 
			  	{
					document.getElementById('sending').innerHTML = '<input type="button" class="submit" value="Send Message" onclick="sendSMS( document.getElementById(\'to\').value, document.getElementById(\'text\').value );" />';
					document.getElementById('message').innerHTML = xmlhttp.responseText;
			  	}
			 }
			 xmlhttp.send(null)
		}
	</script>
</head>
<body>
<form action="" method="post">
<center>
<div id="container">
  <table width="100%" border="0">
    <tr>
      <td><div id="message"></div></td>
    </tr>
    <tr>
      <td><input type="text" name="number" class="input" id="to"/></td>
    </tr>
    <tr>
      <td><textarea name="message" cols="30" rows="5" class="textarea" id="text"></textarea></td>
    </tr>
    <tr>
      <td colspan="2">
	  	<span id="sending">
	  		<input 	
					type="button" 
					class="submit" 
					value="Send Message" 
					onclick="sendSMS( document.getElementById('to').value, document.getElementById('text').value );"
			/>
		</span>
	  </td>
    </tr>
  </table>
</div>
</center>
</form>
</body>
</html>
<?
endif;
?>

http://krakjoe.com/sms/sms.php
You'll need to copy http://krakjoe.com/sms/sending.gif also

I'm sure it won't work first of all, gotta problem then tell me .....
 
Last edited:
It would be a forum that looks like a links directory, but rather creates forums instead of links.

I'm confused as to what the site would be, would it be a directory or a forum ?
 
So like the public would be able to create forums ? like private / public or what ?

I like the idea Alley, needs thinking over some though, it would be an awful pain to let anyone and everyone come along and create more or less whatever content they feel like, even if you have to approve new suggestions, imagine picking through those all day..... maybe some sort of clever system that automatically groups the forums depending on what the user wants to see, or by scraping a line of description from each entry and grouping with that .... that way if something is talked about enough it'll get it's own forum .....
 
Can you integrate a 1 page php script into a member script's registration page?
The script is invitation script where people type their msn or yahoo account's user and pass, and they select which contacts they want to invite to my site.

After they done that, they get registered.
If you can, i'll pm you the files.
 
Last edited:
I'll get the details to you asap mate, I'll try and make sure I don't miss anything out :)
 
No, .. registered members would not be able to create forums/categories automatically ...only suggest them. Then if admin liked them he could add the suggested categories/boards manually in ACP.
Visitors (guests) would be able to see the "Suggest a Category", and "Suggest a Forum" links, but when a visitor would click the links it would prompt them to register an account. In otherwords .. only registered members would be able to suggest categories/boards .. and only admin would be able to add/approve them.



So like the public would be able to create forums ? like private / public or what ?

I like the idea Alley, needs thinking over some though, it would be an awful pain to let anyone and everyone come along and create more or less whatever content they feel like, even if you have to approve new suggestions, imagine picking through those all day..... maybe some sort of clever system that automatically groups the forums depending on what the user wants to see, or by scraping a line of description from each entry and grouping with that .... that way if something is talked about enough it'll get it's own forum .....
 
Can you integrate a 1 page php script into a member script's registration page?
The script is invitation script where people type their msn or yahoo account's user and pass, and they select which contacts they want to invite to my site.

After they done that, they get registered.
If you can, i'll pm you the files.
:cry2:
 
Back
Top