Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2010, 09:31 PM
richy96's Avatar
richy96 richy96 is offline
 
Join Date: Apr 2008
Location: England
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-31-2010, 08:05 AM
richy96's Avatar
richy96 richy96 is offline
 
Join Date: Apr 2008
Location: England
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have I asked this in the wrong forum section as I don't have any response?
Reply With Quote
  #3  
Old 08-01-2010, 06:13 PM
richy96's Avatar
richy96 richy96 is offline
 
Join Date: Apr 2008
Location: England
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:05 AM.


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.04846 seconds
  • Memory Usage 2,173KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete