[Alpha] UserBarData

Post your MODs, receive and provide feedback!
Topics in this forum are not for MOD support, they are for giving the author feedback.
Forum rules
The topics in this forum are not for general MOD support, they are for giving the MOD author some feedback, ideas and bug reports.
Post Reply
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

[Alpha] UserBarData

Post by Obsidian »

MOD Title: UserBarData
MOD Author: [url=http://startrekguide.com/community/memberlist.php?mode=viewprofile&u=8985]sTraTo[/url] (A.K.A. [url=http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=480595]Desdenova[/url])
MOD Version: 0.5.2 Alpha 2
MOD Description: An image script that allows you to display a user's postcount & Cash amount (if Handyman's Cash MOD 0.3.2 is installed) within an image the size of a userbar, and if a background is specified, it can look like an actual userbar that has the specified user's live stats. Very easily customized!

Script is VERY easy to install, all it requires is some file copying. To customize the script, edit it in a UTF-8 BOMless PHP editor and go to the Override Controls section. Simply by reading the instructions inside the file, you can override certain features to prevent auto-activation or to set custom colors, etc. etc.

Script will automatically assume (unless there are overrides active) that the user is UID #2 if none is supplied.


Please, beware, the Cash MOD integration is still experimental. While it can't do anything to the Cash MOD, it might not grab the data properly and the script may end up looking like a mess because of it.

Tested on phpBB version: 3.0.1
Released: 27 May 2008

Installation Level: easy
Installation Time: ~ 1 Minutes

Download: [url=http://startrekguide.com/community/viewtopic.php?f=127&t=6784]Download provided by StarTrekGuide[/url]

Included: Three default userbar backgrounds. (ubar1.gif, ubar2.gif, ubar3.gif)

Script will fully display 350px wide by 19px tall userbars.

Overrides Available:
  • Disable user choice
  • Override default user
  • Disable rank query & display
  • Disable Cash MOD integration (only if Cash MOD is detected)
  • Override Cash ID (probably unneeded)
  • Disable backgrounds
  • Disable background choice (force certain background)
  • Set default background
  • Set text color
  • Set background color (if no background image is used)
  • Disable appearance of site URL
  • Disable auto-border
  • Change border colors
  • Adjust username vertical positioning
  • Disable usercolor integration
  • Font size override


Demo:

(Backgrounds:)
ubar1.gif: [img]http://infernalarcade.ej.am/stats.gif/index.php?u=53&bg=ubar1.gif[/img]
ubar2.gif: [img]http://infernalarcade.ej.am/stats.gif/index.php?bg=ubar2.gif[/img]
ubar3.gif: [img]http://infernalarcade.ej.am/stats.gif/index.php?bg=ubar3.gif[/img]

To come later:
  • Compatibility with upcoming Cash MOD 1.0.0 by Handyman
  • Workability when PHP SAFE_MODE is enabled.

Features:
  • Sessionless, I.E. no cookies generated!
  • No hardcoded language or language files or language edits! Uses the board's default common.php language file for the few language entries it needs.
  • Easily adapted!
  • SQL queries are written to be compatible with the SQL types supported by phpBB using the sql_build_query function. - (Only tested on MySQL and MySQLli)
User avatar
Brandon
Member
Member
Posts: 62
Joined: 08 Apr 2008, 00:11
Real name: Brandon
Location: USA
Contact:

Re: [Alpha] UserBarData

Post by Brandon »

Very nice Modification sTraTo.

:D
Image
array(
'Brandon' => ' VALIDATE_USER ',
),
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [Alpha] UserBarData

Post by Obsidian »

Thanks Brandon. :)

Beware, this script doesn't like SAFE_MODE. See this topic if you can help: http://phpbbmodders.net/board/viewtopic.php?f=55&t=2702
Nerdy
New member
New member
Posts: 2
Joined: 13 Jun 2008, 15:18
Real name: Jakub
Location: Czech Republic, Chomutov

Re: [Alpha] UserBarData

Post by Nerdy »

Hi all...
How to install UserBarData? :-D
I uploaded all files on ftp and big error
I can not install it
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: [Alpha] UserBarData

Post by igorw »

Please post the error message, else it's impossible to help you.
Nerdy
New member
New member
Posts: 2
Joined: 13 Jun 2008, 15:18
Real name: Jakub
Location: Czech Republic, Chomutov

Re: [Alpha] UserBarData

Post by Nerdy »

igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: [Alpha] UserBarData

Post by igorw »

Safe Mode warning: Cannot set environment variable 'GDFONTPATH' - it's not in the allowed list


Your host has enabled PHP's "safe mode", either ask them how to put 'GDFONTPATH' on the allowed enviroment variable list or ask them to disable "safe mode" because it's not safe and makes life a pain. Another thing worth trying is to disable DEBUG in config.php (assuming it's enabled).

As for the other errors, you are either missing some font file (visitor1.ttf) somewhere or you have to replace the following:

Code: Select all

$font = 'visitor1';

with:

Code: Select all

$font = 'visitor1.ttf';
neuropass
Member
Member
Posts: 66
Joined: 12 Apr 2010, 17:07

Re: [Alpha] UserBarData

Post by neuropass »

Can someone explain how to use it? there are no instruction in the folder... :roll:
mryozocripz
New member
New member
Posts: 1
Joined: 22 May 2010, 01:14

Re: [Alpha] UserBarData

Post by mryozocripz »

How to install UserBarData?

When i install this in my testing forum i got an error like this

Code: Select all

The image “http://mryozocripz.byethost8.com/userbardata.gif/” cannot be displayed, because it contains errors.

im newbie of phpbb forum.. please help me.. thanks in advance :roll:
Post Reply