Commit graph

61 commits

Author SHA1 Message Date
Sacha Greif
4e3f4ce174 Refactor default view route controller code and use tagline in title on homepage 2015-02-11 19:15:29 +09:00
Sacha Greif
1eb72079b4 adding userCreatedCallbacks callback hook and refactoring user creation 2014-12-13 14:02:45 +09:00
Anthony Mayer
e71be66c57 Should fix various url problems by taking siteUrl into account when getting route urls.
Trying to make as much use of path as possible on the client side.
2014-12-09 09:29:17 -08:00
Sacha Greif
bdae77a41b fix user profile complete check 2014-12-06 18:19:54 +09:00
Sacha Greif
716f329908 Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2014-12-04 13:10:27 +09:00
Sacha Greif
3e415dce78 Merge branch 'telescope-master-profile-hooks' of github.com:AdmitHub/Telescope into AdmitHub-telescope-master-profile-hooks
Conflicts:
	client/views/posts/modules/post_info.html

Note:
	adapted PR to only keep some of the added features
2014-12-04 12:38:20 +09:00
Anthony Mayer
23b72b9cb8 Switching from manually generating urls to using IronRouter functions.
Using {{pathFor}}, path(), and url() where possible. Passing in path
to Meteor.absoluteUrl() where the IronRouter functions didn't make sense.
Also deleting some random unused code.
2014-12-03 00:06:00 -08:00
Sacha Greif
c335d654c9 fixing missing username in notifications; cleaning up console.logs 2014-11-18 11:00:38 +09:00
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
Charlie DeTar
b6a98e0deb Add missing adminMongoQuery and notAdminMongoQuery
These parameters, introduced in
ed09d0ea7c, weren't defined in that PR but
should have been.
2014-10-06 09:49:50 -06: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
a3c7de767b Add helpful comments to changes in getAvatarUrl function 2014-09-27 12:46:41 -05:00
Ben Gott
8357e45381 Modify getAvatarUrl function to use larger images for Twitter and Facebook 2014-09-27 12:30:40 -05:00
Jeremy Shimko
d1c85559c5 swap order of subtract() args due to deprecation 2014-09-18 16:30:52 -04:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Sacha Greif
67de4f432a Fix gravatar code for good this time (hopefully) 2014-09-12 11:42:44 +09:00
Arunoda Susiripala
9c21aca7d3 added gravatar as well 2014-09-11 21:59:26 +05:30
Sacha Greif
02b146df83 reenable facebook avatars 2014-09-10 14:57:01 +09:00
Sacha Greif
dec414c64a just use gravatars for now 2014-09-10 14:39:18 +09:00
Sacha Greif
619577d6cd migration tweak 2014-08-30 10:04:56 +09:00
Sacha Greif
8ae358181e Got rid of meteorhacks:npm packages; moved email features to their own package 2014-08-29 10:23:11 +09:00
Sacha Greif
be82db9072 Disable resetScroll; Simplify adminUsers publication; fix search controller 2014-08-28 11:10:31 +09:00
Sacha Greif
083a4c4dc4 show username if available 2014-08-12 17:47:11 +09:00
Sacha Greif
7f103be36d refactoring and style tweaks 2014-08-05 12:25:26 +09:00
Sacha Greif
be0ab69c7b Adding footer and hero modules; working on newsletter subscribe banner 2014-08-05 10:16:05 +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
Sacha Greif
1598511dc3 fixing getUsername; fixing site title 2014-05-23 13:08:40 +09:00
Christian Bundy
86ec3ede93 Solve trivial JS errors
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00
Ali Elouafiq
731723d6c6 integrating Facebook profile picture and fixing Facebook integration issues 2014-05-04 18:48:47 +01:00
Sacha Greif
4cd03a6a11 refactored notifications; added notifications for new users 2013-11-18 11:30:58 +09:00
Ry Walker
050ca1ba15 Use higher quality gravatar image 2013-11-11 16:29:40 -05:00
Sacha Greif
0bed5aa609 cleaned up user profiles a bit 2013-11-08 11:42:00 +09:00
Sacha Greif
f876eb263e added profile fields for github, twitter, and personal site, and fixed profile avatar 2013-11-07 09:57:57 +09:00
Sacha Greif
676dc3c349 loading relevant users for each post list view 2013-10-25 11:23:16 +09:00
Sacha Greif
86114b7573 make isAdmin work better when user is null 2013-10-25 10:37:39 +09:00
Sacha Greif
c5821d5739 updated router and added nprogress hook 2013-10-24 14:34:50 +09:00
Sacha Greif
7966f0b985 generate user slug from username, make it non-modifiable 2013-10-24 14:24:03 +09:00
Sacha Greif
78bba0e915 invite system 2013-10-23 19:43:42 +09:00
Sacha Greif
2cfbcd2360 improving notifications 2013-10-23 10:21:08 +08:00
Sacha Greif
9c4f030b90 fixing singleUser publication; simplifying user object update/remove permissions 2013-10-21 18:56:22 +08:00
Sacha Greif
ddb65f8ec5 cleaning up user subscriptions 2013-10-09 22:16:47 +09:00
Sacha Greif
7961c7d86f fixed twitter avatar URL 2013-06-13 15:13:12 +09:00
Sacha Greif
59e1304c72 still cleaning up files 2013-04-13 15:10:07 +09:00
Sacha Greif
3f180f027b added rate limiting to posts and comments posting 2012-10-06 13:15:55 +09:00
Sacha Greif
1c2056d2f8 perfected permission and redirection system 2012-10-05 22:46:20 +09:00
Sacha Greif
4e74d43b06 improving permissions 2012-10-05 22:09:13 +09:00