|
Post by Dexx on Feb 21, 2004 2:16:12 GMT
This script will print the amount of shouts you have "where you will place this code" Example: dexxaboy.com/Create a new .php file and past in this code
<?PHP $url = "http://www.saybox.co.uk/shout.php?action=archive&user=USERNAME"; preg_match('|<strong>(\d+)</strong>|', file_get_contents($url), $match); // Will print the amount, example 123 echo "Shouts <b>$match[1]</b>"; ?>
Hope you enjoy it Got any problems, post them here
|
|
|
Post by jordan on Feb 21, 2004 21:22:41 GMT
sweet code dude
|
|
|
Post by Nocando on Feb 21, 2004 22:27:04 GMT
Man Renegade, it keeps getting better and better ;D
|
|
|
Post by Rage of Thor on Feb 23, 2004 16:41:58 GMT
*is clueless about PHP*
Is there a way to get this to work for Proboards?
|
|
|
Post by Nocando on Feb 23, 2004 23:42:06 GMT
Since you need to upload the new file to a server I doubt that will be possible
|
|
|
Post by Renegade on Feb 23, 2004 23:57:28 GMT
*is clueless about PHP* Is there a way to get this to work for Proboards? You can't use php on a ProBoards forum.
|
|
|
Post by Rage of Thor on Feb 24, 2004 16:19:41 GMT
Didn't think so....... Thanks anyway.
|
|
|
Post by Christie on Feb 24, 2004 21:40:13 GMT
So if my saybox is on a proboard, I cannot use this?
|
|
|
Post by fireball21 on Feb 24, 2004 22:41:40 GMT
that is right.
|
|
|
Post by Ron on Feb 25, 2004 2:28:33 GMT
Accually, with a couple minor changes, you can use it on your proboard... copy/paste this script to a notepad, save it and upload it to your host. <?php
$url = "http://www.saybox.co.uk/shout.php?action=archive&user=USERNAME"; preg_match('|<strong>(\d+)</strong>|', file_get_contents($url), $match); echo 'document.write("Shouts <b>'.$match[1].'</b>");';
?> don't forget to modify the 'USERNAME' part. Now, in your headers/footers place this code: <script language="javascript" src="URL of above file"></script> Just replace 'URL of above file' with the appropriate URL.
|
|
|
Post by Rage of Thor on Feb 25, 2004 15:12:47 GMT
What type of file should I save it as? And would Angelfire work as a host? If not, what would? Any furthur help you could give me would be greatly appreciated...
|
|
|
Post by Ron on Feb 25, 2004 23:34:16 GMT
.php
|
|
|
Post by Rage of Thor on Feb 26, 2004 17:29:57 GMT
It's not working for me. Is Angelfire the problem?
|
|
|
Post by cellDamage@Elixant on Feb 26, 2004 17:37:08 GMT
Yes, angelfire dont offer PHP as part of their package. Try lycos.co.uk as they DO provide PHP
|
|
|
Post by Rage of Thor on Feb 27, 2004 16:12:29 GMT
Is that for free? I need something that has PHP for free.
|
|