Commit graph

149 commits

Author SHA1 Message Date
Charlie DeTar
83bb43ab46 Add hooks so packages can modify profiles
Add the following hooks:
 - ``addToUserSchema``: fields to add to the (currently unused) user
   Schema
 - ``postAuthor``: templates to use when rendering the post author in the
   byline
 - ``userProfileDisplay``: additional templates to add to the user
   profile display.
 - ``userProfileEdit``: additional templates to add to the user profile
   editing form.
 - ``userProfileFinishSignup``: additional templates to show in the view
   for completing user signup (adding email, username, etc).
 - ``userEditRenderedCallbacks``: Callbacks executed on "rendered" for
   user_edit view.
 - ``userEditClientCallbacks``: Callbacks used to further process user
   properties before saving changes in user_edit view.
 - ``userProfileCompleteChecks``: Functions called to determine whether
   a user profile is "complete" (e.g. has email, username, and whatever
   else).

These hooks facilitate package authors changing which profile fields are
displayed, which profile fields are required, and how to display
usernames next to posts.
2014-10-27 17:59:12 -06:00
Ben Gott
c84279cdfe Fix email_hash bug (Issue #393) 2014-10-15 16:48:04 -05:00
Ben Gott
4bb13c9243 Update to use bengott:avatar 0.1.2 2014-10-13 16:14:48 -05:00
Sacha Greif
29495788e8 Merge pull request #454 from bengott/avatar-tweaks
Update to use bengott:avatar package for user avatars
2014-10-04 10:14:49 +09:00
Charlie DeTar
ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
Ben Gott
bab24860d6 Update to use bengott:avatar package for all user avatars 2014-09-30 12:34:42 -05:00
Ben Gott
8e709a8372 Rename common template/view 'gravatar' to 'avatar' 2014-09-27 12:05:15 -05:00
shaialon
8eaab14ede Refactor code with reuse. 2014-09-26 23:20:00 +03:00
shaialon
6592f5761a Change to user / userId 2014-09-26 23:06:12 +03:00
shaialon
94e114cc6f Lint clean the code. 2014-09-26 22:50:37 +03:00
shaialon
f91e02b29a Reusable gravatar component 2014-09-26 22:48:09 +03:00
Sacha Greif
7d66ae23eb Fix #430 2014-09-26 09:40:55 +09:00
Jamie Wilson
37f363df37 Corrected path to /forgot-password
needed to be hyphenated rather than underscored
2014-09-19 09:56:56 -05:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Jamie Wilson
34f9ffa650 Correcting the if statement for profile.site url
needed to be `profile.site`
2014-09-12 15:52:05 -05:00
Sacha Greif
f67ad0b7ae regenerate email hash on profile update 2014-09-12 11:54:04 +09:00
Niklas Ström
e8fce5d292 removed the old signup and signin pages which was not in use (except if you tried to post a new link without being logged in, then you got redirected to that login page) 2014-09-08 01:39:29 +08:00
Sacha Greif
6dee86463a paginating user profile on the client 2014-09-03 09:46:39 +09:00
Sacha Greif
d25f644c2c Profile tweaks; display more posts 2014-09-01 09:52:40 +09:00
Sacha Greif
735f0645db move votes to their own object on user object 2014-08-23 11:53:37 +09:00
Sacha Greif
df479d43c3 Stop tracking comments in User object; Refactor publications; add data property to user 2014-08-23 11:28:05 +09:00
Sacha Greif
9b8e16f177 now showing comments on user profile page 2014-08-22 17:06:22 +09:00
Sacha Greif
0a0ad6a501 layout tweaks 2014-08-21 15:30:05 +09:00
Philip Nuzhnyy
932f56bc1f merge master 2014-08-12 16:02:05 +02:00
Sacha Greif
083a4c4dc4 show username if available 2014-08-12 17:47:11 +09:00
Sacha Greif
509972f18a Now keeping track of upvoted/downvoted posts & comments. 2014-08-11 10:14:53 +09:00
Sacha Greif
7f103be36d refactoring and style tweaks 2014-08-05 12:25:26 +09:00
Philip Nuzhnyy
3b73dbb0e8 update message upon successful invite 2014-08-02 14:06:28 +02:00
Philip Nuzhnyy
f5464ecf7f clean seen errors before reporting invitation status 2014-08-01 14:21:33 +02:00
Philip Nuzhnyy
d2d4a0dd6b propagate invitation call results through throwError 2014-08-01 13:16:40 +02:00
Philip Nuzhnyy
895b434b44 update inviteUser call to work with the new method 2014-08-01 13:15:58 +02:00
Philip Nuzhnyy
e30709cb55 integrate invites rendering through a partial
had to specify an id for account form to make sure form submission handle does not mess with invitation form submission
2014-07-31 01:19:26 +02:00
Philip Nuzhnyy
57bd83a1a4 add invites component 2014-07-31 01:18:17 +02:00
Sacha Greif
615bb4c6c2 making all template includes dynamic 2014-07-05 11:42:28 +09:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
bc08e8b5cc don't show password field to users who logged in via twitter or facebook 2014-06-22 13:20:10 +09:00
Sadi
fd62a516d8 fixed - not showing user profiles
fixed - not showing user profiles if logged with fb or twitter
2014-06-17 15:20:01 +03:00
Sacha Greif
3ed2cca35f Merge branch 'master' into blaze 2014-05-07 09:49:45 +09:00
Ali Elouafiq
731723d6c6 integrating Facebook profile picture and fixing Facebook integration issues 2014-05-04 18:48:47 +01:00
Ali Elouafiq
12c18e0119 adding Facebook Login
and a fancy favicon
2014-05-04 17:21:52 +01:00
Sacha Greif
379c002698 working on 0.8 2014-04-30 16:58:11 -07:00
Richard Pullinger
e2562cbdf2 Fix new post checkbox
New post checkbox wasn't showing the correct value
2014-02-03 18:26:10 +00:00
Egor Suvorov
b9ce01ce07 User profile edit form: now it's prevented from submit and windows is scrolled to display error/success message 2014-01-06 02:30:59 +02:00
Tarang Patel
39eb1c8e0a Update Events
Move from using depreciated event declaration style. Still supported
not sure if future proof (see
https://github.com/meteor/meteor/blob/devel/packages/templating/deftempl
ate.js#L184)
2013-11-24 16:13:53 +02:00
Sacha Greif
ea70384950 added date headers to logs 2013-11-22 14:46:42 +09:00
Sacha Greif
b2afbe6ac7 merging with master 2013-11-21 11:41:04 +09:00
Sacha Greif
4cd03a6a11 refactored notifications; added notifications for new users 2013-11-18 11:30:58 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Sacha Greif
0ea12ec96f do not try to add user to mailchimp list if they don't have an email 2013-11-14 10:04:11 +09:00
Sacha Greif
4636e9a1e4 Merge branch 'master' of github.com:Toam/Telescope into Toam-master 2013-11-12 08:25:48 +09:00