MyBB Community Forums

Full Version: MyBB Signature v1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Is there a way I can change the font to black instead of gray?
Aw man, I get the same error a couple of people are getting here:

...cannot be displayed, because it contains errors.
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 Sad
It was working fine before, but now I get this(very long) error

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
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.
were does this go community or inc/plugins
clocktower Wrote:were does this go community or inc/plugins
It goes in your root folder (i.e. your very first folder to access your forums Smile).
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.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14