php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#235140 - 02/04/03 12:21 AM [6.2] Profile Status Bars 1.1
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.2] Profile Status Bars 1.1 to Del.icio.us Add to del.icio.us
  Digg [6.2] Profile Status Bars 1.1 Digg it
Mod Name / Version: ProfileStatusBar 1.1 <br /> <br />Description: This is a hack which was based on the Profile Star Rewards by JustDave <br />and tweaked by me. It assigns a value (from 0-5) based on the completeness of the user's <br />profile into the rating field. This hack assumes that you are not using the rating <br />function. Then it will include a "status bar" graphic showing the completeness of a user's <br />profile. This hack gives instructions for displaying the status bar with the posts, <br />in both flat and threaded mode, in the user's profile, on the Who's Online screen, and <br />in the User List. It even adds the ability to sort by profile status in the user list. <br />Version 1.1 made necessary tweaks to instructions for 6.1. <br />Version 2.0 made necessary tweaks to instructions for 6.2. <br /> <br />Working under: UBB.threads 6.2 <br /> <br />Any pre-requisites: Assumes you're not going to use the user rating feature. <br /> <br />Author(s): JoshPet, JustDave, Gardener <br /> <br />Credits: JoshPet suggested and JustDave developed the ProfileStarRewards hack. <br />This simply takes it one further, and uses a symbol which is more accepted if your <br />users don't like "people being rated". Graphics created by JoshPet. <br />Gardener created the script to update existing users. <br /> <br />Files Altered: changebasic.php, /admin/dochangeuser.php, showflat.php, showthreaded.php, <br />/languages/english/showprofile.php, showprofile.php, showprofile.tmpl, <br />showmembers.php, showmembers.tmpl, /languages/english/showmembers.php, <br />online.php, online.tmpl, /languages/english/online.php <br /> <br />Database Altered: Not Really. If you have previously used the Profile Rating feature <br />there is a Database Command below to clear those ratings. If you don't clear the ratings <br />your UserList sort by Profile Status won't be accurate. <br /> <br />New Files: empty.gif, profile1.gif, profile2.gif, profile3.gif, profile4.gif, profile5.gif <br />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. <br /> <br />Special Notes: A good add on to this is my other mod which restricts viewing of profiles to <br />people with profiles 60% complete. <br /> <br />What the bars look like: <br />It will show []http://www.pettitfamily.net/josh/empty.gif[/] if the profile is empty (or not updated). <br />It will show []http://www.pettitfamily.net/josh/profile1.gif[/] if the profile is 20% complete (ie 1 star). <br />It will show []http://www.pettitfamily.net/josh/profile2.gif[/] if the profile is 40% complete (ie 2 star). <br />It will show []http://www.pettitfamily.net/josh/profile3.gif[/] if the profile is 60% complete (ie 3 star). <br />It will show []http://www.pettitfamily.net/josh/profile4.gif[/] if the profile is 80% complete (ie 4 star). <br />It will show []http://www.pettitfamily.net/josh/profile5.gif[/] if the profile is 100% complete (ie 5 star). <br /> <br /> <br />Profile Screen: <br />[]http://www.threadsdev.com/threads/php/uploads/54616-profilescreen.gif[/] <br /> <br /> <br />User List Screen: <br />[]http://www.threadsdev.com/threads/php/uploads/54617-userlistscreen.gif[/] <br /> <br /> <br />Who's Online Screen: <br />[]http://www.threadsdev.com/threads/php/uploads/54618-whoonlinescreen.gif[/] <br />


Attachments
67476-ProfileStatusBar1.1.zip (94 downloads)



Edited by JoshPet (02/14/03 07:40 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235141 - 02/04/03 05:05 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
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.<br /><br />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.<br /><br />In your files altered list you have listed /languages/english/online.tmpl. Should this be online.php?<br /><br />You also have one instance of the word Fidn:<br /><br />Well, there's the latest rants from beta-testing. The hack itself seems to work well though.<br /><br />Thanks again!
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#235142 - 02/04/03 05:17 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25411
Loc: Texas
in showmembers.tmpl, need to add a </td> after the </a> <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#235143 - 02/13/03 12:55 AM Re: [6.2] Profile Status Bars 1.1 [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Moved to finished mods.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235144 - 02/14/03 09:40 PM [6.2] Profile Status Restriction 1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version: Profile Status Restriction 1.1 <br />    Version 1.1 - Updated for UBB.Threads version 6.2 <br /> <br />Description: This Hack Requires the Profile Status Bar Hack. <br />What it does is prohibit the viewing of profiles from users who do not have their profile at least 60% complete. <br />I call it "tit for tat profile viewing". If you wanna see profiles, then you have to fill yours in. <br />I have seen a BIG improvement in the number of completed profiles. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Working under: UBB.threads 6.2 <br /> <br />Any pre-requisites: Profile Status Bar Hack for 6.2 (from the first post in this thread) <br /> <br />Author(s): JoshPet of www.joshuapettit.com <br /> for discussions and bugs go to www.threadsdev.com <br /> <br />Date: 2/14/03 <br /> <br />Credits: JustDave for the core code of the Profile Status Bar hack. <br /> <br />Files Altered: showprofile.php, ubbt.inc.php, /templates/default/myhome.tmpl <br /> <br />Database Altered: No. <br /> <br />New Files: none <br /> <br />Notes: Again, this Requires the use of the Profile Status Bar hack to do the calculations and write the profile rating to the database. <br />


Attachments
68934-ProfileStatusRestriction1.1.txt (108 downloads)



Edited by JoshPet (02/17/03 12:48 AM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235145 - 02/16/03 06:06 PM Re: [6.2] Profile Status Restriction 1.1 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
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?<br /><br />version 6.2.2

Top
#235146 - 02/16/03 09:50 PM Re: [6.2] Profile Status Restriction 1.1 [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'll check this. Perhaps there's something missing from my instructions. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235147 - 02/17/03 12:49 AM Re: [6.2] Profile Status Restriction 1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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. <br /><br />It should work for you now.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235148 - 02/17/03 03:44 AM Re: [6.2] Profile Status Restriction 1.1 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
All better <img src="/forum/images/graemlins/smile.gif" alt="" /> Thanks Josh good one as usual

Top
#235149 - 02/17/03 02:18 PM Re: [6.2] Profile Status Bar images [Re: Kelly]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
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. <br /><br />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".<br /><br />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.

Top
#235150 - 02/17/03 03:29 PM Re: [6.2] Profile Status Bar images [Re: jbiz]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2570
Loc: England
Feel free to share the images if you wish <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#235151 - 02/17/03 04:04 PM Re: [6.2] Profile Status Bar images [Re: Gorlum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Great idea Coy! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I also made a set of orange bars for a site, I should share those here as well.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235152 - 02/18/03 09:06 PM Re: [6.2] Profile Status Bar images -- Smilies [Re: Gorlum]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
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 (53 downloads)


Top
#235153 - 02/19/03 04:38 AM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
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.
_________________________
/Gardener | Complete list of my mods

Top
#235154 - 02/19/03 09:06 AM Re: [6.2] Profile Status Bars 1.1 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I haven't noticed a problem. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235155 - 02/19/03 09:51 AM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
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. ;]
_________________________
/Gardener | Complete list of my mods

Top
#235156 - 02/19/03 05:19 PM Re: [6.2] Profile Status Bar images -- Smilies [Re: jbiz]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Thanks for sharing coy7. These will come handy sometime soon <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Nikos

Top
#235157 - 02/28/03 01:02 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Small fix in the online.php script:<br /><br />Change this:<br /> if ($Status == "User") { $Status = "<img src=\"{$config['images']}/blank.gif\" alt=\"{$ubbt_lang['USER_MOD']}\" border=\"0\" />"; }<br /><br />To this:<br /> if ($Status == "User") { $Status = "<img src=\"{$config['images']}/blank.gif\" alt=\"\" border=\"0\" />"; }<br /><br />Otherwise there will be a tool tip saying "Moderator" if you happen to hover the pointer above the blank gif next to normal users.
_________________________
/Gardener | Complete list of my mods

Top
#235158 - 04/19/03 02:44 PM Re: [6.2] Profile Status Bars 1.1 [Re: c0bra]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
My users seem to have found a bug in this...<br /><br />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%.<br /><br />This little quirk greatly offends them <img src="/forum/images/graemlins/smile.gif" alt="" /> Any idea of what is causing it or how to fix it?

Top
#235159 - 04/19/03 02:56 PM Re: [6.2] Profile Status Bars 1.1 [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It was originally set up like that.... so the "visible" field counted.<br /><br />Here's how you can fix it :<br /><br />In the changebasic.php and /admin/dochangeuser.php script, find the bit that looks like this and remove it:<br /><br />if ($Visible == "yes") {<br /> $stars = $stars + 5;<br />}<br /><br /><br /><br />Then also find where it says:<br /><br />$stars / 8;<br /><br />And change it to:<br /><br />$stars / 7; <br /><br />(as we are now only requiring 7 things.)<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235160 - 04/19/03 03:11 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
Ah, okay -- I will make the changes so that they can have their 5 smilies while still remaining mysterious and secretive <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />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.


Edited by coy7 (04/19/03 04:00 PM)

Top
#235161 - 04/19/03 04:34 PM Re: [6.2] Profile Status Bars 1.1 [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah, things don't get updated until you or they edit their profile.<br /><br />Or you can run the script included that gardener wrote to update every's status bars. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235162 - 04/19/03 05:24 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
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.

Top
#235163 - 04/19/03 06:36 PM Re: [6.2] Profile Status Bars 1.1 [Re: jbiz]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Doah. <img src="/forum/images/graemlins/tongue.gif" alt="" /> That makes sense. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235164 - 11/06/03 06:09 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
TheInsider Offline
Journeyman

Registered: 03/16/03
Posts: 124
Loc: Baghdad, Iraq
Does this work in 6.4? I am trying it now eitherway...
_________________________
Always looking for that next great thing...

My site: www.iraqiinsider.com

Top
#235165 - 11/06/03 06:42 PM Re: [6.2] Profile Status Bars 1.1 [Re: scot]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes, I have not officially updated the instructions, but I'm using it on a 6.4 forum.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235166 - 11/06/03 07:53 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
TheInsider Offline
Journeyman

Registered: 03/16/03
Posts: 124
Loc: Baghdad, Iraq
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.<br /><br />In the Who's online everything looks fine. Only have display problems with the User list.<br /><br />Use: test/test to log in to my site and see the list.<br /><br />Thanks.
_________________________
Always looking for that next great thing...

My site: www.iraqiinsider.com

Top
#235167 - 01/14/04 08:17 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
CurlGirl Offline
Newbie

Registered: 12/20/03
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. <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" /><br /><br />Thanks,<br />Patrice

Top
#235168 - 01/17/04 06:07 AM Re: [6.2] Profile Status Bars 1.1 [Re: GrandAmEmt]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Has anyone tried this with 6.4.1?<br /><br />There are some changes, witch mess things up a bit.<br /><br />And update would be great!

Top
#235169 - 01/17/04 06:44 PM Re: [6.2] Profile Status Bars 1.1 [Re: tubedogg_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#235170 - 01/17/04 09:49 PM Re: [6.2] Profile Status Bars 1.1 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I have it running on my site but didn't document the changes to make it fit.

Top
#235171 - 03/03/04 06:19 AM Re: [6.2] Profile Status Bars 1.1 [Re: Kelly]
Pasqualist Offline
Member

Registered: 01/30/03
Posts: 285
Loc: Amsterdam, The Netherlands
Also waiting for the update <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" />

Top
Page 1 of 2 1 2 >