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
Djees =P Try

Find
mysql_

Change into
$db->
hello all,
how can add my sign at change signature at usercp ?
cause i add this code not worked
 <img src="http://www.bravoe.net/mybbsig.php" alt="" border="0">
mybbsig.php is
<?php

/**
 * MyBB Signature v1.0
 * Copyright © 2006 CreateMyBB, All Rights Reserved
 *
 * Website: http://www.createmybb.com
 * Created by Adam of CreateMyBB.com
 * Updated to work with MyBB 1.2 by Tikitiki
 */
 
$link = "mybbsig.png";

define("IN_MYBB", 1);
define("NO_ONLINE", 1);

require "./global.php";

//Total Members
$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) as rows");
$total_members_result = $db->fetch_field($query, "rows");

//Total Posts
$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(*) as rows");
$total_posts_result = $db->fetch_field($query, "rows");

//Newest Member
$query = $db->simple_select(TABLE_PREFIX."users", "*", "", array('order_by' => 'uid', 'order_dir' => 'desc', 'limit' => 1));
$newest_member_result = $db->fetch_array($query);

//Total Threads
$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) as rows");
$total_threads_result = $db->fetch_field($query, "rows");

Header("Content-type: image/png");
$img_handle = imageCreateFromPNG($link);
$color = ImageColorAllocate ($img_handle, 100, 100, 100);

ImageString($img_handle, 3, 10, 10,  "Total Members: {$total_members_result}", $color);
ImageString($img_handle, 3, 10, 40,  "Newest Member: {$newest_member_result['username']}", $color);
ImageString($img_handle, 3, 200, 10,  "Total Posts: {$total_posts_result}", $color);
ImageString($img_handle, 3, 200, 40,  "Total Threads: {$total_threads_result}", $color);
ImagePng($img_handle);
ImageDestroy($img_handle);
?>
ups, sorry...
my problem be solved

at my sign change add
[img]http://bravoe.net/mybbsig.php[/img]

and look like this :
[Image: mybbsig.php]

thanks....
and nice mod sign
hello all,

i need your help...

can u give me the mybbsig.png modification for mybbsig?
because mybbsig.png only 10 character is look good not more character.

screenshot :
[Image: mybbsig.php]

at newest member focus...
I'm a server host, where one of my accounts is using MyBB as their forum. They have enabled this modification, and it is hammering the Apache web server with GET /mybbsig.php requests continually, so much so that it fills all the available apache slots within seconds and stalls the server for every site that's on there.

Is this something that others that have installed this modification have experienced, or is it something that the account administrator has overlooked? I have checked the code, and I cannot find anything in it that would cause what is effectively a "loop" GET request to the server.

I'd appreciate some guidance here, as I'm loathe to forbid any modification that enhances their site, but at the same time I have to be sure that scripts like this don't bring down the whole server. Thanks.
I just made a nicer version of this. His was very old.

[Image: mybbsig.php]

That's using the stats cache so it doesn't load the server much and it's also a smaller image (468x31). It also displays the forum name and url but of course you still have to link the image in most forum signatures yourself.

[img]http://www.talkvideogames.com/mybbsig.php[/img]

Test it yourself..works great.

You can get the package at mybb central but I will probably release this at the mods site once it's finalized version. I might make some changes or add different background images.

http://www.mybbcentral.com/showthread.php?tid=616
Since the original author has not responded, nor has he made other posts, then I will assume that this particular mod is no longer supported.

That being the case, I would recommend to anyone who has hosted services, that no-one installs or uses this due to the server load it will place on their hosts. It calls the script with a GET call everytime it is accessed, and this can load an entire Apache server within minutes, thus causing it to collapse.

I have already made the suggestion to my hoster acquaintances to suspend any account running a MyBB system that may have this plugin installed (I would say most already know about it due to the server load being so high). I will have no compunction but to do the same.

Be warned - this mod is unstable at best, and may cause your hosted accounts to become terminated by your hosts!
Did you read my post?

http://www.mybbcentral.com/showthread.php?tid=616

I have a better version ready to run. Anyone running old software runs risks.
Great plugin!!! I love it!
[Image: mybbsig.php]
Adam Wrote:Thanks guys, took me about 30 minutes. Toungue

I am so sad! it's not working on my Forum as i did all the things you wrote! i did and uploaded and it says ;
Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined.

FAISAL!
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14