Raised This Month: $32 Target: $400
 8% 

Calladmin WEBSITE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AceNetworks
Member
Join Date: Aug 2017
Old 12-12-2017 , 14:06   Calladmin WEBSITE
Reply With Quote #1

Is it possible do to a calladmin website? which shows new reports and old in a list?

Last edited by AceNetworks; 04-03-2022 at 19:24.
AceNetworks is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 12-12-2017 , 19:31   Re: Calladmin WEBSITE
Reply With Quote #2

Indeed it is possible.
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 12-13-2017 , 07:44   Re: Calladmin WEBSITE
Reply With Quote #3

Yes, this is certainly do-able.
I'll make one for a cheap price.
__________________
B3none is offline
mlov420
Senior Member
Join Date: May 2013
Old 12-13-2017 , 08:11   Re: Calladmin WEBSITE
Reply With Quote #4

Here you go bud. It is extremely basic, put it together in about 10 minutes just now to give you a starting point, you can style it and adjust it to your liking. Just copy this whole thing to notepad, adjust the Database settings to your database, save as whatever.php, and upload to your site.

Uses PHP7. If you're on an older version of PHP, you will need to change any instances of 'mysqli' to 'mysql'. Good luck <3

Here is a demo of the code beloww: http://raidboss.org/calladmin.php

Code:
<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- Bootstrap 4 Beta 2 -->
		<link async rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
	</head>

	<body>
		<div class="col-md-12">
			<table class="table table-sm">
				<tr class="text-center" style="margin-bottom:15px"><td colspan="7">Call Admin Requests</td></tr>
				
				<tr>
					<td>Server IP</td>
					<td>Target Name</td>
					<td>Target SteamID</td>
					<td>Reason</td>
					<td>Reporter Name</td>
					<td>Reporter SteamID</td>
					<td>Date Reported</td>
				</tr>
				
				<?
					//DB Config
					$servername = "yourHostIP";
					$username = "yourDBUserName";
					$password = "yourDBPassword";
					$db = "yourCallAdminDB";


					// Create connection
					$conn = mysqli_connect($servername, $username, $password, $db);
					// Check connection
					if (!$conn) {
						die("Connection failed: " . mysqli_connect_error());
					}
					
					//Get all info from calladmin db (callID, serverIP, serverPort, serverName, serverKey, targetName, targetID, targetReason, [cont...])
					// [cont...] clientName, clientID, callHandled, reportedAt)
					$callAdmin_query = mysqli_query($conn, "SELECT * FROM calladmin");
					while($callAdmin = mysqli_fetch_assoc($callAdmin_query)){
				?>
				
				<tr style="font-size:12px">
					<td><?=$callAdmin['serverIP'];?></td>
					<td><?=$callAdmin['targetName'];?></td>
					<td><?=$callAdmin['targetID'];?></td>
					<td><?=$callAdmin['targetReason'];?></td>
					<td><?=$callAdmin['clientName'];?></td>
					<td><?=$callAdmin['clientID'];?></td>
					<td><?=date("F j, Y, g:i a", $callAdmin['reportedAt']);?></td>
				</tr>
				
				<? } ?>
				<? mysqli_close($conn); ?>
			</table>
		</div>
	</body>
</html>
mlov420 is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 12-13-2017 , 08:56   Re: Calladmin WEBSITE
Reply With Quote #5

I wasn't going to do it like that! I would have made you a Silex App for it.
__________________
B3none is offline
AceNetworks
Member
Join Date: Aug 2017
Old 12-13-2017 , 09:52   Re: Calladmin WEBSITE
Reply With Quote #6

Quote:
Originally Posted by mlov420 View Post
Here you go bud. It is extremely basic, put it together in about 10 minutes just now to give you a starting point, you can style it and adjust it to your liking. Just copy this whole thing to notepad, adjust the Database settings to your database, save as whatever.php, and upload to your site.

Uses PHP7. If you're on an older version of PHP, you will need to change any instances of 'mysqli' to 'mysql'. Good luck <3

Here is a demo of the code beloww: http://raidboss.org/calladmin.php

Code:
<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- Bootstrap 4 Beta 2 -->
		<link async rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
	</head>

	<body>
		<div class="col-md-12">
			<table class="table table-sm">
				<tr class="text-center" style="margin-bottom:15px"><td colspan="7">Call Admin Requests</td></tr>
				
				<tr>
					<td>Server IP</td>
					<td>Target Name</td>
					<td>Target SteamID</td>
					<td>Reason</td>
					<td>Reporter Name</td>
					<td>Reporter SteamID</td>
					<td>Date Reported</td>
				</tr>
				
				<?
					//DB Config
					$servername = "yourHostIP";
					$username = "yourDBUserName";
					$password = "yourDBPassword";
					$db = "yourCallAdminDB";


					// Create connection
					$conn = mysqli_connect($servername, $username, $password, $db);
					// Check connection
					if (!$conn) {
						die("Connection failed: " . mysqli_connect_error());
					}
					
					//Get all info from calladmin db (callID, serverIP, serverPort, serverName, serverKey, targetName, targetID, targetReason, [cont...])
					// [cont...] clientName, clientID, callHandled, reportedAt)
					$callAdmin_query = mysqli_query($conn, "SELECT * FROM calladmin");
					while($callAdmin = mysqli_fetch_assoc($callAdmin_query)){
				?>
				
				<tr style="font-size:12px">
					<td><?=$callAdmin['serverIP'];?></td>
					<td><?=$callAdmin['targetName'];?></td>
					<td><?=$callAdmin['targetID'];?></td>
					<td><?=$callAdmin['targetReason'];?></td>
					<td><?=$callAdmin['clientName'];?></td>
					<td><?=$callAdmin['clientID'];?></td>
					<td><?=date("F j, Y, g:i a", $callAdmin['reportedAt']);?></td>
				</tr>
				
				<? } ?>
				<? mysqli_close($conn); ?>
			</table>
		</div>
	</body>
</html>

thank you but i need it more advanced
AceNetworks is offline
AceNetworks
Member
Join Date: Aug 2017
Old 12-13-2017 , 09:53   Re: Calladmin WEBSITE
Reply With Quote #7

Quote:
Originally Posted by b3none View Post
I wasn't going to do it like that! I would have made you a Silex App for it.
Added you on Steam
AceNetworks is offline
mlov420
Senior Member
Join Date: May 2013
Old 12-13-2017 , 09:56   Re: Calladmin WEBSITE
Reply With Quote #8

Quote:
Originally Posted by b3none View Post
I wasn't going to do it like that! I would have made you a Silex App for it.
That's cool if he wants to pay for something. I was just offering a quick solution for the lad.

Quote:
thank you but i need it more advanced
You're welcome. It wasn't meant to be a final solution, it was an example you could build off easily without having to pay for. What more would you be looking for anyway? Everything you need is already built into the plugin and this displays those calls descending by most recent. Maybe add some a count limit and pagination, some styling of your own? I just don't know what advanced features could go into this?

Last edited by mlov420; 12-13-2017 at 09:59.
mlov420 is offline
AceNetworks
Member
Join Date: Aug 2017
Old 12-13-2017 , 10:01   Re: Calladmin WEBSITE
Reply With Quote #9

Quote:
Originally Posted by mlov420 View Post
That's cool if he wants to pay for something. I was just offering a quick solution for the lad.



You're welcome. It wasn't meant to be a final solution, it was an example you could build off easily without having to pay for. What more would you be looking for anyway? Everything you need is already built into the plugin and this displays those calls descending by most recent. Maybe add some a count limit and pagination, some styling of your own? I just don't know what advanced features could go into this?

Last edited by AceNetworks; 04-03-2022 at 19:24.
AceNetworks is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 12-15-2017 , 15:41   Re: Calladmin WEBSITE
Reply With Quote #10

I found the idea interesting, if after finalized can disclose how it was and the price to buy thank you, I would like to purchase.

Last edited by paulo_crash; 12-15-2017 at 15:42.
paulo_crash is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode