DiGiTaL

DiGiTaL

Joined
Sep 12, 2008

Activity Stream

DiGiTaL commented on a Page, Nick/Pass  -  Sep 18, 2008

:-) Great script though. Im recommending it.

 Respond  
DiGiTaL commented on a Page, Ip tracer  -  Sep 16, 2008

Lol I'm not bitching. I apologize it seems that way.

 Respond  
DiGiTaL commented on a Page, Ip tracer  -  Sep 16, 2008

There is a better way to understand these small scripts and how they work...

http://php.net/fopen

 Respond  
DiGiTaL commented on a Page, Ip tracer  -  Sep 16, 2008

You SHOULD never consider the superglobal variable's elements an actual variable. Very bad practise.
Thats like treating $_POST['id'] to $id...

Use the following: $_SERVER['REMOTE_ADDR'] and if you want concatenate it inside a string use this: {$_SERVER['REMOTE_ADDR']}

 Respond  
DiGiTaL commented on a Page, Nick/Pass  -  Sep 16, 2008

It should have a text field where users can enter how to identify ie a little text box that has /msg nickserv identify %pass so people can customize to fit their server needs.

 Respond  
DiGiTaL commented on a Page, C++ variable use  -  Sep 15, 2008
   cout<<"The product is"<<num1*num2<<endl;
   cin.ignore();
 Respond  
DiGiTaL commented on a Page, Php web Hitcounter  -  Sep 15, 2008

Hawkee: You like Analytics I like Mint :}. Its all good. Whichever works for us.

Jonesy44: Its the keyword to identify a property or method in OOP, unless it is a static property/variable then you access them via ::. Ie; Counter::styles.

 Respond  
DiGiTaL commented on a Page, Php web Hitcounter  -  Sep 15, 2008

Because the person I wrote this little thing for wanted it to be seperate so he can modify his getinfo() method without touching the add(). He doesnt always parse the same paremeter to the add() method. He added to his code so there are differences. For example, I have just $this->getinfo(); in here but he had a few extra methods inside the getinfo method to seperate pages and the counting.

Yes, this will generate a big file if you just keep it running, a better thing to do would be to only save the count for Unique hits in which it will avoid all the page views.

There are better hitcounters and such on the internet, I've messed with google analytics, it is pretty good I should say but not the best. Its got some downfalls, I currently use Mint from http://www.haveamint.com/, check them out they have an amazing tool for web tracking.

 Respond  
DiGiTaL commented on a Page, Redirection  -  Sep 15, 2008

Geez people do you guys test your shit before uploading it or just write and send it for no reason :/ What horrible code Here is an a lot easier to write this

 <?php  
      header("Location: http://siteurl.com");
 ?>
 Respond  
DiGiTaL commented on a Page, C++ variable use  -  Sep 15, 2008

Variable scoping problem here,

Why make x,y & z a global variable when you only need it within the function. You might as well do this in C not C++.

 Respond  
DiGiTaL created a Page  -  Sep 15, 2008
1 960 
DiGiTaL commented on a Page, Simple Private Spam Blocker  -  Sep 14, 2008

How about a simple code when someone PMs you, you are asked wether you want to accept their PM or Not? You get a notice of what they pmed you (the first line) and if you want to continue to talk to them /query

What I have is, when someone PMs me they automatically go under my PM Ignores unless they are in my PM exceptions. So if some random person PMed me they'd be ignored right away, I have to either PM them to start a conversation or put them in my exceptions.

 Respond  
DiGiTaL commented on a Page, mass hugger  -  Sep 13, 2008

The echo works fine, I just tested it on my mirc and it didnt cause any problems. Could be difference in mirc versions.

 Respond  
DiGiTaL commented on a Page, MessageDigest.pl  -  Sep 13, 2008

if (@ARGV !=1)

@ARGV is a list, it will not work because you are comparing the array to an integer. The correct term you'd need is $#ARGV.

If ($#ARGV != 1) { do stuff }

($var) = @ARGV; you are distributing @ARGV into ($var), var is now a list therefore you cant use it this way: print "\n$var (MD5)" . " : " . md5_hex("$var")."\n"; you'd need to access the elements for example $var[0]

 Respond  
DiGiTaL commented on a Page, mass hugger  -  Sep 13, 2008

Napa, the //echo is a test clause, ofcourse you'd change that to line use /notice instead of /echo.

 Respond  
DiGiTaL commented on a Page, mass hugger  -  Sep 13, 2008

alias hug {
var %nicks = $nick($chan,0)
while (%nicks) {
/echo -a $iif($nick($chan,%nicks) == $me,$chr(32),hugs $nick($chan,%nicks))
dec -z %nicks
}
}

:/ You always want to make the code smaller and efficient. No one likes a big mess.

 Respond  
DiGiTaL commented on a Page, IP / Nick tracker  -  Sep 13, 2008

Using a .txt file for an .ini configuration system, very smart.

 Respond  
DiGiTaL commented on a Page, Javascript Visibility Toggle  -  Sep 13, 2008

You can also space some lines and change line 4-5 to:

item.style.visibility = (item.style.visibility == 'visible') ? 'hidden' : 'visible';

 Respond  
DiGiTaL commented on a Page, Javascript Visibility Toggle  -  Sep 13, 2008

Your changing the visibility attribute, basically your saying if the visibility is OFF, keep that space but dont show it, if its on USING That space show it..

Visibility is not recommended it. change it to 'display'

 Respond  
DiGiTaL commented on a Page, Simple Private Spam Blocker  -  Sep 13, 2008

So If I had to PM a friend and give him a URL, this script would assume Im a spam bot?

:/ there are betters ways to write this.

 Respond  
DiGiTaL commented on a Page, multi mode notice  -  Sep 13, 2008

Or you know...just type this:

/notice +# Hello there and it would notice anyone who is Voiced or up.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.