vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   rating user profiles (https://vborg.vbsupport.ru/showthread.php?t=247490)

richy96 07-28-2010 09:31 PM

rating user profiles
 
Hi all

I want to add a feature to my vb 3.7.0. /vbaCMPS based site

What I want to do is add a rating (display a number of stars) that are determined by how much of a users profile fields are filled in

So for example they get one star for filling in basic profile fields, another for filling in advanced profile fields, another for having at least one photo album....... etc

I already have a 'Verify My Profile' Page to which I am going to add a button which will check if various profile fields are filled in etc and increase the rating accordingly

I am OK with the programming side but not sure about the best approach to this

Plan A

Would i be better adding a custom (hidden) profile field which the user can not edit directly - and then running my own php from them hitting the 'verify' button to set the value of this field. Can I then use this value to display the correct number of stars on members profiles, postbits, member search results etc ? If so what sort of field should I be creating (editable, private, ???)

OR plan B

Am I better 'hijacking' the built in reputation system and modifying it to suit my needs? I don't need reputation in as much as allowing users to leave rep for other users based on forum posts so it is kinda redundant at the moment. In this case I would need a basic understanding of where the reputation score is stored (which field) and would the member be able to indirectly set their own reputation level by hitting the 'verify button' yet not be able to alter it by any other method (nor by anyone else alter it bar admins in the ACP) or are there permissions issues to consider?

TIA
rich

richy96 07-31-2010 08:05 AM

Have I asked this in the wrong forum section as I don't have any response?

richy96 08-01-2010 06:13 PM

Despite the lack of advice ??? I'm quite way into coding this now. I've got all teh tests done and working for basic and advanced profile feilds

Here are a couple questions that would help me and I'm sure someone can answer these easily

1. How do I test if a user has an avatar (other than the default VB one) I guess the answer is the URl to the avatar is in the database somewhere I i can check that to see if they uploaded an avatar? Can anyone give me a code sniippet please?

2. How do I check if a user has a Profile Pic? I assume the answer is similar to above?

TIA
Rich


All times are GMT. The time now is 12:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01684 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete