View Single Post
zeroibis
Veteran Member
Join Date: Jun 2007
Old 03-25-2012 , 01:11   Re: SSMS - Sourcemod Server Management System
Reply With Quote #131

OK so here is the deal, by default this program wants you to use the t=xxxxx for your thread id which is logical as this is the thread id. However, if you search for your plugins using the sm search page than you will want to be able to use p=yyyyy instead as that is the result you get. So for those that want to use p instead of t just follow the instructions below:

How to use p= instead of t=
dbplugins.php

Line 80 change to:
Code:
                        <tr  class=\"elements\"><td><img  src=images/new.png></td><td><a  href=\"http://forums.alliedmods.net/showthread.php?p=$threadid\">$filename</a></td><td>$dbvers</td><td>$modvers</td></tr>";
Line 83 to:
Code:
                        $message = "A update for $filename  ($dbdescr) seems to be out, $dbvers is the latest. We have $modvers  running....\nhttp://forums.alliedmods.net/showthread.php?p=$threadid";
This allows the link to always work instead of most of the time. This still does not fix the incorrect results though.

Line 98 to:
Code:
$html = file_get_contents("http://forums.alliedmods.net/showthread.php?p=$threadid&postcount=1");
Remember ONLY USE the above code if you find your plugins id via http://www.sourcemod.net/plugins.php

YOU MUST CONSISTENTLY USE EITHER the values for p= or t=


If you want to use t= and the forum search than DO NOT CHANGE ANYTHING. If you want to use p= and the SM plugins search then use the CODE POSTED ABOVE.


Hopefully this will clear things up.

NOTE THAT if you get p= and you hit the name of the thread it will change to t= and you can use the default code!
__________________

Last edited by zeroibis; 03-25-2012 at 01:17.
zeroibis is offline