Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

User Bar 1.0
#1

Although everybody can see this section and its threads and posts, only gold subscribers can download attachments. Click here to subscribe.

This PHP script (it's not a plugin) outputs an image with the following info about the user:
  • User Name
  • Posts
and at the bottom right corner, displays the URL of the board.
Of course, you can add more things if you want.
The image is composed of 2 images, the background and the gloss so the gloss is above the text not below.

Demo:
http://forums.consoleworld.net/userbar.php?uid=1

[Image: userbar.php?uid=1]


Attached Files
.rar   Userbar 1.0.rar (Size: 15.98 KB / Downloads: 73)
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#2

Awesome Plugin!!
I really thank you Nervo!
you tha man
^^
#3

Very nice one, thank you.
[Image: mybbaddonssignatur.gif]
#4

Warning [2] require_once(./inc/init.php) [function.require-once]: failed to open stream: No such file or directory - Line: 17 - File: inc/plugins/userbar.php PHP 5.2.9 (Linux)
File Line Function
/inc/plugins/userbar.php 17 errorHandler->error
/inc/plugins/userbar.php 17 require_once
/admin/modules/config/plugins.php 285 require_once
/admin/index.php 380 require

Fatal error: require_once() [function.require]: Failed opening required './inc/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bluntwa1/public_html/forum/inc/plugins/userbar.php on line 17
#5

This is not a plugin, it must be placed in the root of your MyBB installation
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#6

aaahaay.. PHP text to images.. i love it Big Grin
Heart
#7

kewl Big Grin

mine..
[Image: userbar.php?uid=32]
Heart
#8

Can make it show up only when you typed the uid and username?

Can you cast an eye what i've just written?:
PHP Code:
<?php
if (!$mybb->input['uid'] AND !$mybb->input['username'])
{
    return;
}
else if (
$mybb->input['uid'])
{
    
$user $db->fetch_array($db->simple_select("users""username,postnum"'uid='.intval($mybb->input['uid'])));
}
else
{
    
$user $db->fetch_array($db->simple_select("users"'username,postnum'"username='".$db->escape_string($mybb->input['username'])."'"));
}
?>
#9

(09-28-2009, 07:59 PM)habs Wrote: kewl Big Grin

mine..
[Image: userbar.php?uid=32]

How did you add rep and points?

[Image: glas.png]
#10

@Julek12 you should use elseif not else if
Replace return with exit or die()

It should be something like:
PHP Code:
<?php
if ($mybb->input['uid'])
{
    
$user $db->fetch_array($db->simple_select("users""username,postnum"'uid='.intval($mybb->input['uid'])));
}
elseif (
$mybb->input['username'] != "")
{
    
$user $db->fetch_array($db->simple_select("users"'username,postnum'"username='".$db->escape_string(trim($mybb->input['username']))."'"));
}
else
{
    die();
}
?>
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.




Users browsing this thread: 1 Guest(s)