Thread Rating:
  • 4 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB Signature v1.0
o. Is there anyway to get a free version of MYPS for 1.4? lol?
[Image: Chasingu.png]
Reply
all i am getting instead of signature is [Image: mybbsig.php]
i am putting in my sig like....
[img]www.mysite.com/forums/mybbsig.php[/img]

and I changed the path to my forum in the php file
Reply
Very nice!Smile
Reply
I love it.. Thx
New Beta Portal from MyBB Indonesia to get local support
My 'Simple' Unique Plugin here Smile
Reply
This user has been denied support. This user has been denied support.
FYI...I updated this to version 3. If you had your board set to closed the image wouldn't display but that's now fixed. So if you are running this with image error just update. If you do not have a mybb subscription but you have an older version simple alter one line:

require "./globals.php";

to

require_once "./inc/init.php";

That should do it.
Reply
Thanks for the update!Smile
Reply
error says

Direct initialization of this file is not allowed.
[Image: mybbsig.php]
Reply
(04-22-2009, 04:08 PM)cobarde Wrote:  error says

Direct initialization of this file is not allowed.

Mine is similar:

Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined.

That's what came up for me :o
Reply
[Image: mybbsig.php]

test
Reply
UPDATE FOR MYBB 1.6

PHP Code:
<?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("users""COUNT(*) as rows");
$total_members_result $db->fetch_field($query"rows");

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

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

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

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

ImageString($img_handle31010,  "Total Members: {$total_members_result}"$color);
ImageString($img_handle31040,  "Newest Member: {$newest_member_result['username']}"$color);
ImageString($img_handle320010,  "Total Posts: {$total_posts_result}"$color);
ImageString($img_handle320040,  "Total Threads: {$total_threads_result}"$color);
ImagePng($img_handle);
ImageDestroy($img_handle);
?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)