Raised This Month: $51 Target: $400
 12% 

Dynamic MOTD 3.0


Post New Thread Reply   
 
Thread Tools Display Modes
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 06-04-2014 , 21:07   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #151

I think this plugin has been forgotten about entirely.
StrikerMan780 is offline
Paddy1991
Junior Member
Join Date: Oct 2011
Old 07-17-2014 , 11:32   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #152

If this plugin already now updated for CS: GO?
Need a GetPlayerName for my Page...^^
MfG
Paddy1991 is offline
King Cnut
Senior Member
Join Date: Sep 2014
Old 10-12-2014 , 11:43   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #153

Quote:
Originally Posted by abrandnewday View Post
Yeah, this plugin seems to be borked. It gives me errors about the URL prefix being incorrect (I typed "http://www." and it says that it's blocked the MOTD url because it started with "http :")

Then I can't join a bloody team.
Quote:
Originally Posted by StrikerMan780 View Post
So I'm definitely not the only one. There's something really screwing things up, whether it be how it overrides regular MOTDs, or something along those lines. I'm not getting the issue of it not beginning with http: It's just not working at all... Stuck without being able to join a team. I'm still wondering why MOTDgd works in this department, but not Dynamic MOTD.
You guys should try putting this in your sourcemod.cfg

Code:
dynamicmotd_url "http://link.to.your.motd"
dynamicmotd_big 1
Works perfectly for me.
__________________
*tips fedora, unsheaths katana, teleports behind u, nods respectfully*
King Cnut is offline
pilou04
Junior Member
Join Date: Sep 2009
Old 10-20-2014 , 17:48   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #154

Hi . Sorry for my bad english .
The plugins doesn't work correctly with me.
The players remained block on the entrance's camera and cannot joins both team.
But not all round and not all players.
I haven't got any errors in my errors.log
and last version of sourcemode.

Here is code on sourcemod.cfg

Code:
dynamicmotd_url "http:// my URL /motd.php?name={NAME}&ip={SERVER_IP}&port={SERVER_PORT}&map={CURRENT_MAP}&next={NEXT_MAP}"
dynamicmotd_big 0
And my motd.php
php
PHP Code:
$map $_GET['map'];
$next $_GET['next'];
$name $_GET['name'];
$ip $_GET['ip'];
$port $_GET['port']; 
and html
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body {
  background:url(images/fond_site.jpg);
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-width:100%;
}
</style>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
include ("./contents/header.php");
?>
<div class="panel panel-warning" style="width:97.25%; margin-left:auto; margin-right:auto;">
  	<div class="panel-body">
		<center>
			<h4>Bienvenue &nbsp;&nbsp;<?php echo $name;?></h4>
		</center>
	</div>
</div>

<div class="panel panel-warning" style="width:48%; margin-left:1.5%; margin-right:auto; float:left;">
  	<div class="panel-body">
		<center>
		
		<h5>Map en cours : &nbsp;&nbsp;<?php echo $map;?></h5>
		<h5>Prochaine Map : &nbsp;&nbsp;<?php echo $next;?></h5>
		<h5>N'oubliez pas de rajouter notre IP à vos FAVORIS : &nbsp;&nbsp;</br></br><?php echo $ip;?>:<?php echo $port;?></h4>
		</center>
	</div>
</div>

</body>
</html>

Thanks for your help

Last edited by pilou04; 10-20-2014 at 18:02.
pilou04 is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 10-29-2014 , 14:19   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #155

Does the motd support HTML5?
__________________
zeroibis is offline
delidolu1genc
Member
Join Date: Feb 2013
Location: Belgium
Old 01-16-2015 , 23:11   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #156

Thanks for the plugin. Really very nice.
Take a look at this study. Hopefully that will help.


Example URL:
Code:
http://www.mysite.com/motd/index.php?name={NAME}&ip={IP}&steam={STEAM_ID}&si={SERVER_IP}&sp={SERVER_PORT}&cp={CURPLAYERS}&mp={MAXPLAYERS}&cm={CURRENT_MAP}&nm={NEXT_MAP}
Example index.php:

PHP Code:
<?php 
if(isset($_GET['name'],$_GET['ip'],$_GET['steam'],$_GET['si'],$_GET['sp'],$_GET['cp'],$_GET['mp'],$_GET['cm'],$_GET['nm']))


echo 
'YOUR INFORMATION<br>';
echo 
'UserName: 'htmlspecialchars($_GET['name']).' <br>';
echo 
'Your IP: 'htmlspecialchars($_GET['ip']).' <br>';
echo 
'Steam ID: 'htmlspecialchars($_GET['steam']).' <br><br>';

echo 
'SERVER INFORMATION<br>';
echo 
'Server IP: 'htmlspecialchars($_GET['si']).':'htmlspecialchars($_GET['sp']).' <br>';
echo 
'Players: 'htmlspecialchars($_GET['cp']).'/'htmlspecialchars($_GET['mp']).' <br>';
echo 
'Current Map: 'htmlspecialchars($_GET['cm']).' <br>';
echo 
'Next Map : 'htmlspecialchars($_GET['nm']).' <br>';

}
?>
Add server.cfg
Code:
dynamicmotd_url "hhttp://www.mysite.com/motd/index.php?name={NAME}&ip={IP}&steam={STEAM_ID}&si={SERVER_IP}&sp={SERVER_PORT}&cp={CURPLAYERS}&mp={MAXPLAYERS}&cm={CURRENT_MAP}&nm={NEXT_MAP}"
Screenshot
http://i.hizliresim.com/oYXaa7.jpg
Attached Files
File Type: zip index.php.zip (510 Bytes, 114 views)

Last edited by delidolu1genc; 01-16-2015 at 23:47.
delidolu1genc is offline
Send a message via MSN to delidolu1genc Send a message via Skype™ to delidolu1genc
msoza1
Junior Member
Join Date: Mar 2015
Location: California
Old 04-15-2015 , 02:06   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #157

I just wanted to say thank you! The tiny motd space wasn't enough for my wall of text. XD
__________________
*Insert Generic Knockoff Signature Here*
msoza1 is offline
Send a message via Skype™ to msoza1
Hefal
Senior Member
Join Date: Jul 2015
Old 08-30-2015 , 17:10   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #158

I know that I have seen tf2 servers running this, as soon as two days ago was the latest encounter. Can't find that one in my history tho and I would like to contact the server admin and ask him how he pulled it off. Anyone got it up and running here? Or can someone give me an IP?

I've tried multiple times to get this to function properly but I'm always getting "Blocking MOTD URL 'http:'; must begin with 'http://' or 'https://' or be about:blank"

Willing to tip 3TF2 keys to the person who's tip or action helps me solve this issue.
Hefal is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 08-31-2015 , 22:01   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #159

Quote:
Originally Posted by Hefal View Post
I know that I have seen tf2 servers running this, as soon as two days ago was the latest encounter. Can't find that one in my history tho and I would like to contact the server admin and ask him how he pulled it off. Anyone got it up and running here? Or can someone give me an IP?

I've tried multiple times to get this to function properly but I'm always getting "Blocking MOTD URL 'http:'; must begin with 'http://' or 'https://' or be about:blank"

Willing to tip 3TF2 keys to the person who's tip or action helps me solve this issue.
TF2 motd will block any 'url' given that doesn't start with http:// (so it doesn't load something it shouldn't)

so if you're trying to link to say.. "www.youtube.com/video" it'll spit that error, you need "http://www.youtube.com/video" for it to work.

Hope that helps,
Jpk.
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
iBradleyy
AlliedModders Donor
Join Date: Jan 2013
Old 09-08-2015 , 15:46   Re: Dynamic MOTD (updated 2012-07-15)
Reply With Quote #160

Doesn't work for Counter-Strike: Global Offensive, [SM] Unable to load plugin "dynamic_motd.smx": Native "BfReadString" was not found
iBradleyy is offline
Reply



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 19:55.


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