php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#221770 - 07/28/02 02:34 AM Icon for a completed Profile
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
We're always struggling to get our users to fill in their profiles. It would be cool, if an Icon would appear below their pic (next to their posts) *IF* they have a completed profile (ie. not empty).<br /><br />I don't have a clue of how to acomplish that.... but so many users complain of clicking on someone's username, only to see a totally empty profile.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221771 - 07/28/02 10:40 AM Re: Icon for a completed Profile [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hey, that's a pretty neat idea. I know more than half of my users never fill out their profile, and its kind of annoying being it is a somewhat regional site and at least a name/location would be nice because you may know the person and not even know it.<br /><br />On the same note, i don't remember but can you specify certain fields to be required when they sign up? I know that doesn't help existing users, but it would be nice to have.

Top
#221772 - 07/28/02 12:19 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Perhaps one could modify the editbasic/changebasic scripts to issue stars to the users when they provide various information in their profile.<br /><br />This would work for those that have the user ratings feature removed from thier setup only, though. <br /><br />One star could be assigned for 5 different fields and be awarded when filled in. A 5 star user would have more information filled in than a 1 star user. <br /><br />The code changes to editbasic/changebasic would not be to involved to accomplish this. One would also want to set everyone to 0 just in case there are any old ratings stored.<br /><br /><br />If you want I'll put the code together later tonight for this mod. It's an easy one. <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221773 - 07/28/02 12:30 PM Re: Icon for a completed Profile [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That would be AWESOME!!!<br /><br />We're not using the user ratings anyway!<br />Thanks Dave!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221774 - 07/28/02 02:10 PM Re: Icon for a completed Profile [Re: Daine]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I like that idea as well. We are currently using the rating system, but as of late a few people who have too much time on their hands have been going rating crazy, and I doubt its really adding anything useful to the forums anyway.

Top
#221775 - 07/28/02 02:20 PM Re: Icon for a completed Profile [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
What would be the SQL command to set all the user ratings to 0. Does anyone know?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221776 - 07/28/02 02:49 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
UPDATE w3t_Users<br />SET U_Rating = '0', U_Rates = '0'<br />WHERE 1<br /><br /><br /><br />That should work. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221777 - 07/28/02 04:00 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
In your changebasic.php script paste this: <br /> <br /><pre><font class="small">code:</font><hr> <br />// ====== START ======= <br />// Profile Star Rewards <br />$stars = 0; <br />if (!empty($Fakeemail)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Name)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Occupation)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Hobbies)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Location)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Bio)) { <br /> $stars = $stars + 5; <br />} <br />if (!empty($Picture)) { <br /> $stars = $stars + 5; <br />} <br />if ($Visible == "yes") { <br /> $stars = $stars + 5; <br />} <br />$realrating = $stars / 8; <br />$realrating = intval($realrating); <br />$stars_q = addslashes($stars); <br />$realrating_q = addslashes($realrating); <br />$query = " <br /> UPDATE w3t_Users <br /> SET U_Rating = '$stars_q', <br /> U_Rates = '8', <br /> U_RealRating = '$realrating_q' <br /> WHERE U_Username = '$Username_q' <br />"; <br />$dbh -> do_query($query); <br />// Profile Star Rewards <br />// ======= END ======== <br /></pre><hr> <br /> <br /> <br />Just above this line: <br /> <br /><pre><font class="small">code:</font><hr> <br />// --------------------------------------------------- <br />// Send them to their start page with the confirmation <br /> $html -> start_page($Cat); <br /></pre><hr> <br /> <br /> <br /> <br /> <br />I think that should do the trick. <img src="/forum/images/icons/smile.gif" alt="" /> <br /> <br /> <br />


Edited by JustDave (07/28/02 05:55 PM)
_________________________
~Dave
ChattersOnline.com

Top
#221778 - 07/28/02 04:08 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
You may want to add something stating which fields add star points in the editbasic.php display. One could add other fields easily to this hack but I kept it to what I thought was the basics. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221779 - 07/28/02 04:13 PM Re: Icon for a completed Profile [Re: sjsaunders]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Dave, you never cease to amaze me <img src="/forum/images/icons/laugh.gif" alt="" /> Looks great, I will test it out tonight and see how many people are up in arms when their 5 stars drop down to 0 or 1 <img src="/forum/images/icons/laugh.gif" alt="" />

Top
#221780 - 07/28/02 04:18 PM Re: Icon for a completed Profile [Re: palmen]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
hehehe yeah I would love to be able to hear what some would be saying to their screens... LoL<br /><br />Personally I think this is one of the better uses for the user ratings. The user has control of their rating and they can only blame themselves for a low one. LoL <img src="/forum/images/icons/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221781 - 07/28/02 04:25 PM Re: Icon for a completed Profile [Re: sjsaunders]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Hmm, now this seems like a good use for user rating stars <img src="/forum/images/icons/smile.gif" alt="" /> I turned mine off and left the post ones on, but I may try this out after I think it over. Nice job <img src="/forum/images/icons/smile.gif" alt="" />

Top
#221782 - 07/28/02 04:35 PM Re: Icon for a completed Profile [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK - Cool!<br /><br />Thanks Dave. You're awesome!<br />Just playing with this on a test board I've got set up. I dont' think it's quite working right.<br /><br />First, the SQL statement seems to wipe the stars out of the profile... but they remain next to people's post. Not a huge deal.... only like 10 -15 users were rated before I removed the feature.<br /><br />Then, I inserted the code. Now obviously, one needs to edit their profile for this info to update. OK. Did that with a test user, filled in all the fields. That worked. Look at their profile, and indeed, they had 5 stars with 8 rates (they were 0 before) OK.<br />But, then when I made a post by that user... the stars did not appear next to the post. The only stars that appeared next to the post were the few users who had ratings to begin with.<br />So somehow it's not pulling it into showflat/showthreaded. But does seem to be adding the ratings when you view their profile.<br /><br />Thanks for looking at this Dave!!!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221783 - 07/28/02 05:43 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I think that it there may be some check in showflat/showthreaded that makes sure the rates are real. There is no "0" rating in the real system but with this hack it essentially gives zeros for fields that are not filled out.<br /><br />I'll look things over and get right back. <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#221784 - 07/28/02 05:49 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Ok I found the error on my part. I'll edit the code I posted to include the correction. <img src="/forum/images/icons/smile.gif" alt="" /><br />
_________________________
~Dave
ChattersOnline.com

Top
#221785 - 07/28/02 05:57 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Should work now. <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />I have edited the posted code above.
_________________________
~Dave
ChattersOnline.com

Top
#221786 - 07/28/02 06:19 PM Re: Icon for a completed Profile [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[:"red"] AWESOME!!!![/] <br /><br />THANKS DAVE!!!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221787 - 07/28/02 06:21 PM Re: Icon for a completed Profile [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Forgot to say.....<br /><br />Works Perfect!!!!!<br /><br />Thanks again!
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221788 - 07/28/02 06:21 PM Re: Icon for a completed Profile [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Your welcome <img src="/forum/images/icons/smile.gif" alt="" /> (was an easy one)<br />
_________________________
~Dave
ChattersOnline.com

Top
#221789 - 07/28/02 07:36 PM Re: Icon for a completed Profile [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ha. Easy for you of course. <img src="/forum/images/icons/wink.gif" alt="" /><br /><br />Now, this may be more difficult, but now that stars indicate how complete the profiles are.....<br />What if the stars were added to the user list, and you could sort by stars. Thus someone could view the userlist, and put all the profiles in order by completeness.<br /><br />My gut said to change the template for the userlist... but I guess there's no rating query in place, so it wouldn't work. <br /><br />Don't know how difficult that would be. Then to have the ability to sort by stars. LOL It's over my head.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 1 of 2 1 2 >


Who's Online
0 registered (), 18 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks