[Alpha] UserBarData - User's stats in a userbar!

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

[Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Tue May 27, 2008 7:22 pm

MOD Title: UserBarData
MOD Author: sTraTo (A.K.A. Desdenova)
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: Download provided by StarTrekGuide

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
[/i]

Demo:

(Backgrounds:)
ubar1.gif: Image
ubar2.gif: Image
ubar3.gif: Image

To come later:
  • Compatibility with upcoming Cash MOD 1.0.0 by Handyman
  • Using user's color for username color
  • Different font?
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)
Last edited by Desdenova on Thu May 29, 2008 7:23 pm, edited 1 time in total.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by darkonia » Tue May 27, 2008 7:59 pm

nice idea, i will install it at once XD
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

DJ Jonny
Registered User
Posts: 145
Joined: Sat Nov 10, 2007 10:58 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by DJ Jonny » Tue May 27, 2008 11:35 pm

love this mod sounds brill mite have this when it is finished

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Thu May 29, 2008 7:15 pm

Updated to 0.5.2!
  • Usercolor cleaned up, now using substr and not mb_substr (mb_substr was overkill).
  • Not using html_char_decode or whatever it was anymore. (unnecessary?)
  • Y Position override added.
  • Cleaned up overrides and added variable types to them.
  • Disabled experimental Cash MOD 1.0.0 integration for now, code is incomplete.
  • Usercolor integrated.
  • UTF-8 compatible. (Hopefully)
  • New font!
  • Now requires the GD library.
  • Usernumber and background override logic altered to be more...logical.
  • Color overrides altered slightly to compact the script.
  • Added a font size override, user color disabling override.

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Fri May 30, 2008 2:44 pm

It seems a line of code I've used requires SAFE_MODE to be off, however, this line is integral to UTF-8 support.

Until I can find out how to bypass this problem, SAFE_MODE will need to be disabled in order to use this script. Sorry!

iBotPeaches
Registered User
Posts: 131
Joined: Tue Jul 24, 2007 12:38 am
Location: Vahalla
Contact:

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by iBotPeaches » Sat May 31, 2008 1:49 am

Works fine for me. However I have a question.

For other users, does it display their name? or just mine? I'm sorry I still don't understand it.

Heres mine.


Image
Image

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Sat May 31, 2008 4:14 am

iBotPeaches wrote:Works fine for me. However I have a question.

For other users, does it display their name? or just mine? I'm sorry I still don't understand it.

Heres mine.


Image

You can change the user whose stats will be retrieved...
In the demo, if you'd look closely, it's all the same image the script is pointing to.

You can change the user's stats to display by simply doing this...

Code: Select all

[img]https://camo.phpbb.com/267a1cd54f15ee0ef28048df01dda8661c67ca17/687474703a2f2f69626f746d6f647a2e6e65742f7068706262332f75736572626172646174612e676966/?u=67[/img]
Image

Just replace 67 with the usernumber of the user whose stats you want displayed. ;)

naushadhassam
Registered User
Posts: 506
Joined: Wed Aug 15, 2007 9:57 pm
Contact:

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by naushadhassam » Mon Jun 02, 2008 1:12 am

great stuff
Free Hosting - Here
Sports Entertainment Online ( A PS3 Online Gaming Community ) - Here
FREE UNLIMITED HOSTING FOR PHPBB MOD MAKERS - PM ME FOR MORE INFO ( MY WAY ON DONATING TO PHPBB )

User avatar
parasolx
Registered User
Posts: 146
Joined: Wed Apr 23, 2008 8:52 am
Location: Malaysia
Name: Hadafi

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by parasolx » Mon Jun 02, 2008 9:15 am

how to install this MOD? i have copied into my server but nothing happen... the instruction also doesnt tell what to do... just copy into the server... it is missing instruction?

*OK... i get it... i need to put in the sig...thanks...

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Mon Jun 02, 2008 1:12 pm

parasolx wrote:how to install this MOD? i have copied into my server but nothing happen... the instruction also doesnt tell what to do... just copy into the server... it is missing instruction?

*OK... i get it... i need to put in the sig...thanks...
Ayah...oops.

I'll put that in the DIY instructions next version. :P

User avatar
parasolx
Registered User
Posts: 146
Joined: Wed Apr 23, 2008 8:52 am
Location: Malaysia
Name: Hadafi

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by parasolx » Tue Jun 03, 2008 3:12 pm

can i ask somethin...how to show Moderator rank?if admin i see it show "Site Admin", if global moderatorm which line should i add to show "Moderator" as a rank.

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Tue Jun 03, 2008 3:43 pm

If the moderator's rank is "Moderator", it should say that without needing an edit. ;)

If it doesn't, I've messed up a query somewheres.

Anyways, new version coming soon that can handle SAFE_MODE being on.

User avatar
parasolx
Registered User
Posts: 146
Joined: Wed Apr 23, 2008 8:52 am
Location: Malaysia
Name: Hadafi

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by parasolx » Tue Jun 03, 2008 3:46 pm

if the user only a Global Moderator? one more, how to show the groups in the user bar...

Desdenova
Registered User
Posts: 646
Joined: Sat Feb 23, 2008 7:25 pm

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by Desdenova » Tue Jun 03, 2008 3:50 pm

Whatever the user's rank is on the forum, it will display that rank (as long as you have told it the correct user, the no_rank override is not activated, and the user has a rank to be displayed).

For displaying the group, I will not add a query to support that. The userbar is getting a bit too big as it is, I'm going to have to trim the code down soon and make it more efficient.

Not to mention, it would add another query to the code, which I need to keep as low as possible.

User avatar
parasolx
Registered User
Posts: 146
Joined: Wed Apr 23, 2008 8:52 am
Location: Malaysia
Name: Hadafi

Re: [Alpha] UserBarData - User's stats in a userbar!

Post by parasolx » Tue Jun 03, 2008 5:21 pm

the ranks was not shown at all... only shows site admin for administrator... any change or would you like to see my forum?

Locked

Return to “[3.0.x] MODs in Development”