R77 Community Forum Archive

Programming => Scripting => Requests => Topic started by: awsome on February 24, 2009, 03:45:47 PM

Title: Request on a small script.
Post by: awsome on February 24, 2009, 03:45:47 PM
k im still knew to the scripting world and if i knew how to make these i would but i dont .
Anyways, i was wondering if it possible to make a script where stealthbot would connect to your formus. This is so that the bot would kick anyone that's not registered, out of the channel.

Help Would me nice
Title: Request on a small script.
Post by: Ferre7 on February 24, 2009, 07:56:14 PM
Very possible. It'd be useful if you gave a link to your forums/member listing. I'm not saying I will do it, just saying whoever makes this needs this information. =]
Title: Request on a small script.
Post by: awsome on February 24, 2009, 08:01:05 PM
Quote from: Ferre7
Very possible. It'd be useful if you gave a link to your forums/member listing. I'm not saying I will do it, just saying whoever makes this needs this information. =]


oh shure um the link is here http://gnk-league.forumq.biz/ (http://gnk-league.forumq.biz/) oh and lol well u know anyone who would be willing to do it
Title: Request on a small script.
Post by: Vector on February 24, 2009, 10:36:25 PM
IF you can't do it, I will, Ferre7.
Title: Request on a small script.
Post by: awsome on February 25, 2009, 07:44:20 AM
thanks alot vector you'r awsome
Title: Request on a small script.
Post by: ArticWolve on February 25, 2009, 08:23:08 AM
Speaking of which, this would be a great script for more then one clan!
Title: Request on a small script.
Post by: Austin on February 25, 2009, 10:38:29 AM
so can someone post the finished code? oO
Title: Request on a small script.
Post by: Vector on February 25, 2009, 01:54:00 PM
It hasn't even been started. I'll go work on it now.

Oh, ewwww, guests need to log in. This will be a bit more complex than I thought. I don't even think I know how to log into an IPB forum from the outside through a script.

If guests could log in, I could do this.
Title: Request on a small script.
Post by: awsome on February 25, 2009, 03:44:46 PM
what do you mean vector with guest?
Title: Request on a small script.
Post by: Vector on February 25, 2009, 09:23:29 PM
In order to even view the member list, or rather each member, I would need to first log in with a member account. Currently, guests cannot view any members on that site.
Title: Request on a small script.
Post by: Hero on February 26, 2009, 05:07:00 AM
I have a better way of doing this, Jason is paying me to create the same system and I simply use a php file to extract all the members from the database then add other 'exceptions' using a text file. It just needs read and write privileges. After creating the php file, it is very easy to create a script to parse it.
Title: Request on a small script.
Post by: awsome on February 26, 2009, 07:53:25 AM
Quote from: Hero
I have a better way of doing this, Jason is paying me to create the same system and I simply use a php file to extract all the members from the database then add other 'exceptions' using a text file. It just needs read and write privileges. After creating the php file, it is very easy to create a script to parse it.


Thanks lol
Title: Request on a small script.
Post by: Vector on February 26, 2009, 08:37:57 AM
You and your PHP

I should go learn PHp and SQL, hah!
Title: Request on a small script.
Post by: Hero on February 26, 2009, 08:52:54 AM
I could just give you a copy and you would have to fill out database info.

Here's the PHP file: (This one only draws data from the database, no text file)

Code: [Select]
<?php
$con = mysql_connect("localhost","username_here","password_here");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database_here", $con);

$result = mysql_query("SELECT * FROM ibf_members");

while($row = mysql_fetch_array($result))
  {
  echo $row['name'];
  echo "<br />";
  }

mysql_close($con);
?>

Make sure to fill in:

username_here
password_here
database_here

If your SQL server is not located on the same server as your website you will have to change it from localhost to something else, but try localhost first.
Title: Request on a small script.
Post by: awsome on February 26, 2009, 01:53:30 PM
Quote from: Hero
I could just give you a copy and you would have to fill out database info.

Here's the PHP file: (This one only draws data from the database, no text file)

Code: [Select]
<?php
$con = mysql_connect("localhost","username_here","password_here");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database_here", $con);

$result = mysql_query("SELECT * FROM ibf_members");

while($row = mysql_fetch_array($result))
  {
  echo $row['name'];
  echo "<br />";
  }

mysql_close($con);
?>

Make sure to fill in:

username_here
password_here
database_here

If your SQL server is not located on the same server as your website you will have to change it from localhost to something else, but try localhost first.


so database is the website right or is it the server that stealthbot connects to?
Title: Request on a small script.
Post by: Vector on February 26, 2009, 08:37:07 PM
database is the name of the actual database the PHP script connects to.

Just an update, the script Hero started is coming along. I worked on it too, and it bans users like it should. Hero just needs to add a few things to it that Power wants.
Title: Request on a small script.
Post by: awsome on February 26, 2009, 09:24:39 PM
Thanks for doing this guys
Title: Request on a small script.
Post by: awsome on February 28, 2009, 10:00:56 AM
<?php
$con = mysql_connect("localhost","username_here","password_here");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("database_here", $con);

$result = mysql_query("SELECT * FROM ibf_members");

while($row = mysql_fetch_array($result))
  {
  echo $row['name'];
  echo "<br />";
  }

mysql_close($con);
?>where i put this?

Title: Request on a small script.
Post by: Vector on February 28, 2009, 03:35:25 PM
in public_html, if you want. Make sure to modify what Hero told you to modify (database_here, etc.)
Title: Request on a small script.
Post by: awsome on February 28, 2009, 04:11:14 PM
sry but im new to all this stuff where public_html u mean i save it as a document and name it ****.html ?
Title: Request on a small script.
Post by: Hero on February 28, 2009, 06:14:23 PM
It's should be in a PHP file - .php
Title: Request on a small script.
Post by: awsome on March 01, 2009, 04:25:50 PM
um whos working on the script file just wanna know
Title: Request on a small script.
Post by: Hero on March 01, 2009, 04:34:47 PM
It's done and has been for a while. I made it and Joel debugged it.
Title: Request on a small script.
Post by: awsome on March 03, 2009, 10:01:02 PM
where can i get it
Title: Request on a small script.
Post by: Hero on March 09, 2009, 04:27:38 PM
http://rev77.net/scripts/?query=view&s...alSafelist.plug (http://rev77.net/scripts/?query=view&script=escExternalSafelist.plug)
Title: Request on a small script.
Post by: Austin on March 10, 2009, 07:49:58 AM
Thanks, for future updates to this plugin, maybe a multi-support feature, where if the website picks up multi ip 2 usernames both will be unvouched, etc.

Nice job though Hero, I remember asking for this like a year ago and no one made it for me XD
Title: Request on a small script.
Post by: ArticWolve on March 10, 2009, 07:56:25 AM
If it was at Stealthbot.net, its understandable. The people there are getting old (No offense to those who still go there) and tired of making scripts. Think about it. As time goes on, they get more and more requests from people who have less then 200 posts. And it seems to me that they are only fulfilling requests of the people THEY FUCKING like. Anyone who has any affiliation to a clan they don't like gets warned for the slightest infraction while a person who does the same thing gets a slap on the wrist.
Title: Request on a small script.
Post by: EKLIPz on March 10, 2009, 08:06:46 AM
I agree and disagree.  My FIRST request and my FIRST post on SB.net were both for my custom CRS plugin. It spanned ~7 pages. Ninja worked on that and she was maad cool about it. Everytime I asked for something new on it, she hopped on it. I think every other scipter at SB doesn't do shit. Usually when I make a request now, a few people will comment on it, and it will fly over people's heads. I have alot of posts now at SB, and I help alot of people, but, they still ignore me. I only 1 person there that is cool, and that is Ninja. She is almost the only one over there doing script requests.

And it seems like everytime I post to help someone PhiX is up my ass on something, no matter how right I was, he posts saying some shit.
Title: Request on a small script.
Post by: Austin on March 10, 2009, 09:06:23 AM
Yeah, PhiX is roflmao the kid is a hugeee tool.

And yah I posted my Req on SB.nEt