2006-12-28, 02:23 PM
2007-01-28, 04:26 PM
Aw man, I get the same error a couple of people are getting here:
...cannot be displayed, because it contains errors.
...cannot be displayed, because it contains errors.
2007-01-28, 05:33 PM
Have you tried this version: http://community.mybboard.net/showthread...6#pid79836
2007-01-28, 06:00 PM
DrPoodle Wrote:Have you tried this version: http://community.mybboard.net/showthread...6#pid79836
Yeah, that's the one I tried, but it didn't work
2007-01-30, 09:46 AM
It was working fine before, but now I get this(very long) error
Thats not all of it, there is more, but from ‰PNG and on is mybbsig.png, i don't know what went wrong
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/dudeness/public_html/forums/mybbsig.php on line 21
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/dudeness/public_html/forums/mybbsig.php on line 21
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dudeness/public_html/forums/mybbsig.php on line 22
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/dudeness/public_html/forums/mybbsig.php on line 25
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/dudeness/public_html/forums/mybbsig.php on line 25
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dudeness/public_html/forums/mybbsig.php on line 26
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/dudeness/public_html/forums/mybbsig.php on line 29
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/dudeness/public_html/forums/mybbsig.php on line 29
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/dudeness/public_html/forums/mybbsig.php on line 30
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/dudeness/public_html/forums/mybbsig.php on line 34
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/dudeness/public_html/forums/mybbsig.php on line 34
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dudeness/public_html/forums/mybbsig.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/dudeness/public_html/forums/mybbsig.php:21) in /home/dudeness/public_html/forums/mybbsig.php on line 37
‰PNG
Thats not all of it, there is more, but from ‰PNG and on is mybbsig.png, i don't know what went wrong
2007-01-30, 02:00 PM
Well this one is working for me:
<?php
/**
* MyBB Signature v1.0
* Copyright © 2006 CreateMyBB, All Rights Reserved
*
* Website: http://www.createmybb.com
* Created by Adam of CreateMyBB.com
*/
//Start Code by Michael83
define("KILL_GLOBALS", 1);
define("NO_ONLINE", 1);
define("IN_MYBB", 1);
//End Code by Michael83
require "./global.php";
//Total Members
$total_members_sql = mysql_query("SELECT * FROM ".TABLE_PREFIX."users");
$total_members_result = mysql_num_rows($total_members_sql);
//Total Posts
$total_posts_sql = mysql_query("SELECT * FROM ".TABLE_PREFIX."posts");
$total_posts_result = mysql_num_rows($total_posts_sql);
//Newest Member
$newest_member_sql = mysql_query("SELECT * FROM ".TABLE_PREFIX."users ORDER BY `uid` DESC LIMIT 0 , 1");
$newest_member_result = mysql_fetch_array($newest_member_sql);
//Total Threads
$total_threads_sql = mysql_query("SELECT * FROM ".TABLE_PREFIX."threads");
$total_threads_result = mysql_num_rows($total_threads_sql);
Header ("Content-type: image/png");
$img_handle = imageCreateFromPNG("http://www.drpoodle.com/forums/mybbsig.png");
$color = ImageColorAllocate ($img_handle, 100, 100, 100);
$totalmembers = "$total_members_result";
$newestmember = "$newest_member_result[username]";
$totalposts = "$total_posts_result";
$totalthreads = "$total_threads_result";
ImageString ($img_handle, 3, 10, 10, "Total Members: $totalmembers", $color);
ImageString ($img_handle, 3, 10, 40, "Newest Member: $newestmember", $color);
ImageString ($img_handle, 3, 200, 10, "Total Posts: $totalposts", $color);
ImageString ($img_handle, 3, 200, 40, "Total Threads: $totalthreads", $color);
ImagePng ($img_handle);
ImageDestroy ($img_handle);
?>
Put that in a file called "mybbsig.php" and upload it to your forum root along with the mybbsig.png image.2007-02-20, 10:28 PM
were does this go community or inc/plugins
2007-02-23, 12:59 PM
2007-02-23, 01:52 PM
clocktower Wrote:were does this go community or inc/pluginsIt goes in your root folder (i.e. your very first folder to access your forums ).
2007-03-03, 08:48 AM
Thanks for it but maybe you should update the script for the latest edition although someone has already done it but it should be in the first post.