Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: ProfileStatusBar 1.1

Description: This is a hack which was based on the Profile Star Rewards by JustDave
and tweaked by me. It assigns a value (from 0-5) based on the completeness of the user's
profile into the rating field. This hack assumes that you are not using the rating
function. Then it will include a "status bar" graphic showing the completeness of a user's
profile. This hack gives instructions for displaying the status bar with the posts,
in both flat and threaded mode, in the user's profile, on the Who's Online screen, and
in the User List. It even adds the ability to sort by profile status in the user list.
Version 1.1 made necessary tweaks to instructions for 6.1.
Version 2.0 made necessary tweaks to instructions for 6.2.

Working under: UBB.threads 6.2

Any pre-requisites: Assumes you're not going to use the user rating feature.

Author(s): JoshPet, JustDave, Gardener

Credits: JoshPet suggested and JustDave developed the ProfileStarRewards hack.
This simply takes it one further, and uses a symbol which is more accepted if your
users don't like "people being rated". Graphics created by JoshPet.
Gardener created the script to update existing users.

Files Altered: changebasic.php, /admin/dochangeuser.php, showflat.php, showthreaded.php,
/languages/english/showprofile.php, showprofile.php, showprofile.tmpl,
showmembers.php, showmembers.tmpl, /languages/english/showmembers.php,
online.php, online.tmpl, /languages/english/online.php

Database Altered: Not Really. If you have previously used the Profile Rating feature
there is a Database Command below to clear those ratings. If you don't clear the ratings
your UserList sort by Profile Status won't be accurate.

New Files: empty.gif, profile1.gif, profile2.gif, profile3.gif, profile4.gif, profile5.gif
Also included in the zip is a script from Gardener "updateprofiles.php" which will update existing profiles of all your users for the status bar.

Special Notes: A good add on to this is my other mod which restricts viewing of profiles to
people with profiles 60% complete.

What the bars look like:
It will show []http://www.pettitfamily.net/josh/empty.gif[/] if the profile is empty (or not updated).
It will show []http://www.pettitfamily.net/josh/profile1.gif[/] if the profile is 20% complete (ie 1 star).
It will show []http://www.pettitfamily.net/josh/profile2.gif[/] if the profile is 40% complete (ie 2 star).
It will show []http://www.pettitfamily.net/josh/profile3.gif[/] if the profile is 60% complete (ie 3 star).
It will show []http://www.pettitfamily.net/josh/profile4.gif[/] if the profile is 80% complete (ie 4 star).
It will show []http://www.pettitfamily.net/josh/profile5.gif[/] if the profile is 100% complete (ie 5 star).


Profile Screen:
[]https://www.ubbdev.com/threads/php/uploads/54616-profilescreen.gif[/]


User List Screen:
[]https://www.ubbdev.com/threads/php/uploads/54617-userlistscreen.gif[/]


Who's Online Screen:
[]https://www.ubbdev.com/threads/php/uploads/54618-whoonlinescreen.gif[/]
Attachments
67476-ProfileStatusBar1.1.zip (0 Bytes, 102 downloads)

Last edited by JoshPet; 02/14/2003 8:40 PM.
Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Great hack Josh! I've just installed it, so my beta testing is in it's infancy, but I think I found some problems with the instructions.

One of the steps is to open and edit showprofile.php, yet this is not listed in the files altered list. The only showprofile.php file you have listed there is /languages/english/showprofile.php.

In your files altered list you have listed /languages/english/online.tmpl. Should this be online.php?

You also have one instance of the word Fidn:

Well, there's the latest rants from beta-testing. The hack itself seems to work well though.

Thanks again!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
in showmembers.tmpl, need to add a </td> after the </a>


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Moved to finished mods.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Profile Status Restriction 1.1
    Version 1.1 - Updated for UBB.Threads version 6.2

Description: This Hack Requires the Profile Status Bar Hack.
What it does is prohibit the viewing of profiles from users who do not have their profile at least 60% complete.
I call it "tit for tat profile viewing". If you wanna see profiles, then you have to fill yours in.
I have seen a BIG improvement in the number of completed profiles.

Working under: UBB.threads 6.2

Any pre-requisites: Profile Status Bar Hack for 6.2 (from the first post in this thread)

Author(s): JoshPet of www.joshuapettit.com
for discussions and bugs go to www.ubbdev.com

Date: 2/14/03

Credits: JustDave for the core code of the Profile Status Bar hack.

Files Altered: showprofile.php, ubbt.inc.php, /templates/default/myhome.tmpl

Database Altered: No.

New Files: none

Notes: Again, this Requires the use of the Profile Status Bar hack to do the calculations and write the profile rating to the database.
Attachments
68934-ProfileStatusRestriction1.1.txt (0 Bytes, 428 downloads)

Last edited by JoshPet; 02/17/2003 1:48 AM.
Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Josh I have the status bar working on my site. I then added the restriction hack and it didn't allow me to access profiles. I had mine filled out 100%... did I miss a step or need to run the update profiles again?

version 6.2.2

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'll check this. Perhaps there's something missing from my instructions.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I updated the instructions for the profile status restriction add on.... I need to go to school for copy and paste. I had missed a line in the instructions.

It should work for you now.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
All better Thanks Josh good one as usual

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I made some new images to replace the standard blue bars that are included with this mod. I made series of different coloured smilies instead, so users get between 0 to 5 smilies based on how complete their profile is.

I did this because I'd had complaints that the blue bar was "boring" (my forums are populated by teenagers). However, it's had the added bonus of encouraging people to complete their profile because they want "all the colours".

So, just an idea to keep in mind to personalize this mod. If you make images that are relevant to your forum and/or theme, it might be added incentive to complete the profile.

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Feel free to share the images if you wish


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Great idea Coy!

I also made a set of orange bars for a site, I should share those here as well.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
Attached are my "smilie bars" to replace the standard blue profile status bars. Be forewarned, they're a bit gaudy, but the kids really like them.
Attachments
69724-ProfileSmilieBars.zip (0 Bytes, 58 downloads)

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
My profile page sometimes showed the wrong percentage and it seems I had slipped a lot in the copy/paste when installing the script on that page. Or was this a bug that's been fixed? Just curious.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I haven't noticed a problem.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Probably just me then. =] When I followed the instructions in this version correctly it worked just fine. Don't know how I could've missed a couple of steps though. Was hoping it was somebody elses fault. ;]

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Thanks for sharing coy7. These will come handy sometime soon


Nikos
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Small fix in the online.php script:

Change this:
if ($Status == "User") { $Status = "<img src="{$config['images']}/blank.gif" alt="{$ubbt_lang['USER_MOD']}" border="0" />"; }

To this:
if ($Status == "User") { $Status = "<img src="{$config['images']}/blank.gif" alt="" border="0" />"; }

Otherwise there will be a tool tip saying "Moderator" if you happen to hover the pointer above the blank gif next to normal users.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
My users seem to have found a bug in this...

Users in one particular user group have noticed that if they make themselves invisible, their status bar switches to 80% complete, even though their profile is really 100% complete. Once they are visible in the user list again, their profile bar goes back to 100%.

This little quirk greatly offends them Any idea of what is causing it or how to fix it?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It was originally set up like that.... so the "visible" field counted.

Here's how you can fix it :

In the changebasic.php and /admin/dochangeuser.php script, find the bit that looks like this and remove it:

if ($Visible == "yes") {
$stars = $stars + 5;
}



Then also find where it says:

$stars / 8;

And change it to:

$stars / 7;

(as we are now only requiring 7 things.)


Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
Ah, okay -- I will make the changes so that they can have their 5 smilies while still remaining mysterious and secretive

edited to add: Users need to make themselves visible, then go back to invisible, for the change to take place. I supposed a cookie deletion or logout/login might work too, but the change doesn't seem to happen automatically.

Last edited by coy7; 04/19/2003 4:00 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, things don't get updated until you or they edit their profile.

Or you can run the script included that gardener wrote to update every's status bars.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I ran the script, and then discovered that it also needs to be modified as per your instructions for changebasic.php and /admin/dochangeuser.php. Just an fyi for anyone else who might be trying this.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Doah. That makes sense.

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Does this work in 6.4? I am trying it now eitherway...

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, I have not officially updated the instructions, but I'm using it on a 6.4 forum.

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Anyone know why my userlist shows the actual ratings number under the User# column and thus the profile bars column doesn't get updated. I followed the instructions to a tee and ran the update script.

In the Who's online everything looks fine. Only have display problems with the User list.

Use: test/test to log in to my site and see the list.

Thanks.

Joined: Dec 2003
Posts: 18
Newbie
Newbie
Offline
Joined: Dec 2003
Posts: 18
I am running AdminSelectableRatings 2.0 on my threads to identify the different levels of patronship and I was wondering is there another way to use the Profile Status mod? I'd really like to passively force my users to fill out their profile. Could I create another database? Or are there relationships to the ratings database that I don't know I about and would really screw things up. Because you know...that's what I'm good at.

Thanks,
Patrice

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
Has anyone tried this with 6.4.1?

There are some changes, witch mess things up a bit.

And update would be great!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's on my list to update, but havne't had any free time to do so, I've been soooo swamped with work right now.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I have it running on my site but didn't document the changes to make it fit.

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Also waiting for the update


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)