Code Monkey home page Code Monkey logo

user-directory's Introduction

User directory by FriendsOfFlarum

License Latest Stable Version Compatibility

An extension that generates a new url /users that provides a list of users, with the ability to sort. You can search through the users from the global search input field, a new item shows up "Search all users for ...".

You can protect access to the list with a permission. If the user has no access, they will see a 404 not found page.

A setting allows you to show a link to the directory from the homepage sidebar, or you can use the links extension if you prefer a link in the header.

Installation

composer require fof/user-directory:"*"

Updating

To the next minor version:

composer update fof/user-directory

To the latest compatible version:

composer require fof/user-directory:"*"

Links

An extension by FriendsOfFlarum

user-directory's People

Contributors

ajaypayne avatar ardacebi avatar askvortsov1 avatar clarkwinkelmann avatar dependabot[bot] avatar dsevillamartin avatar flarum-bot avatar gianniguida avatar hiobi avatar imorland avatar ipurpl3x avatar johannsa avatar karaok491 avatar luceos avatar manurohr avatar rafaucau avatar ralkage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

user-directory's Issues

Feature Request: Sorting users based on roles

This will probably solve the need for having a team page as people always want to know who are the ones handling the community. Since all the user sortings are already in this extension so maybe, sorting users based on roles would also fit here.

German Language file

Hi,
since i'm not into github, i try to help here instead of pull request thingy..

german language file: de.yml

fof-user-directory:
    forum:
        search:
            users_heading: 'Suche in allen Benutzern nach "{query}"'
        page:
            nav: Benutzerliste
            sort:
                relevance: Relevanz
                default: Standard
                username_az: Benutzername (a-z)
                username_za: Benutzername (z-a)
                newest: Neuester
                oldest: Ältester
                seen_recent: Kürzlich online
                seen_oldest: Längstens abwesend
                most_posts: Meiste Beiträge
                least_posts: Wenigste Beiträge
                most_discussions: Meiste Themen
                least_discussions: Wenigste Themen
    admin:
        permissions:
            view_user_directory: Einsicht Benutzerliste
        settings:
            title: Einstellungen Benutzerliste
            link: Füge Link zur Homepage für berechtigte Benutzer hinzu

CSS bug in Google Chrome

There is a CSS bug on Google Chrome, when .Select select { width: auto } is disabled it looks OK. This width : auto is from the flarum/core CSS code.

screenshot

Unchecking "Add link on homepage for users able to see the directory" causes the "canSeeUserDirectoryLink" attribute to be false

I unchecked the Add link on homepage for users able to see the directory option to add a link to the User Directory elsewhere.

{app.forum.attribute('canSeeUserDirectoryLink') && (
  <LinkButton icon="far fa-address-book" href={app.route('fof_user_directory')}>
    {app.translator.trans('fof-user-directory.forum.page.nav')}
  </LinkButton>
)}

And it wouldn't work. It turned out that after unchecking this option, the canSeeUserDirectoryLink attribute is false.

image
image
This option should be independent of permissions.

shown users item duplicated

As the gif figure shown as follow, duplicated items can be found when I turn three pages and some of the users were not shown.

You can open this url and reproduce the situation.

composer show output:

antoinefr/flarum-ext-bbcode-fa          v0.1.1         Insert FontAwesome icons in your posts.
clarkwinkelmann/flarum-ext-emojionearea 0.1.2          Add EmojiOne Area emoji picker to Flarum
components/font-awesome                 4.7.0          The iconic font designed for use with Twitter Bootstrap.
csineneo/flarum-ext-traditional-chinese v0.1.0-beta.7  Traditional Chinese language pack for Flarum
danielstjules/stringy                   1.10.0         A string manipulation library with multibyte support
davis/flarum-ext-inviteonly             v0.1.0-beta3   Allow Registration only if invited.
davis/flarum-ext-socialprofile          0.2.3          Allows addition of Social Media buttons to profile
dflydev/fig-cookies                     v1.0.2         Cookies for PSR-7 HTTP Message Interface.
doctrine/annotations                    v1.4.0         Docblock Annotations Parser
doctrine/cache                          v1.6.2         Caching library offering an object-oriented API for many cache backends
doctrine/collections                    v1.4.0         Collections Abstraction library
doctrine/common                         v2.7.3         Common Library for Doctrine projects
doctrine/dbal                           v2.5.13        Database Abstraction Layer
doctrine/inflector                      v1.2.0         Common String Manipulations with regard to casing and singular/plural rules.
doctrine/lexer                          v1.0.1         Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
filp/whoops                             2.1.10         php error handling for cool kids
flagrow/byobu                           0.1.0          Well integrated, advanced private discussions.
flagrow/flarum-ext-image-upload         0.3.1          Image uploader for Flarum forum messages.
flagrow/flarum-ext-latex                0.1.1          Renders LaTeX expressions.
flagrow/user-directory                  0.1.0          The permission based public user directory extension for your Flarum forum.
flarum/core                             v0.1.0-beta.7  Delightfully simple forum software.
flarum/flarum-ext-akismet               v0.1.0-beta.6  Stop spam using the Akismet anti-spam service.
flarum/flarum-ext-approval              v0.1.0-beta.7  Make discussions and posts require moderator approval.
flarum/flarum-ext-auth-github           v0.1.0-beta.6  Allow users to log in with GitHub.
flarum/flarum-ext-bbcode                v0.1.0-beta.5  Allow posts to be formatted with BBCode.
flarum/flarum-ext-emoji                 v0.1.0-beta.6  Convert text and unicode emoji into Twemoji.
flarum/flarum-ext-english               v0.1.0-beta.7  English language pack.
flarum/flarum-ext-flags                 v0.1.0-beta.7  Allow users to flag posts for moderator review.
flarum/flarum-ext-likes                 v0.1.0-beta.6  Allow users to like posts.
flarum/flarum-ext-lock                  v0.1.0-beta.7  End a discussion and don't let anyone add further replies.
flarum/flarum-ext-markdown              v0.1.0-beta.5  Allow posts to be formatted with Markdown.
flarum/flarum-ext-mentions              v0.1.0-beta.7  Mention and reply to specific posts and users.
flarum/flarum-ext-pusher                v0.1.0-beta.6  See new discussions and posts in real-time using Pusher.
flarum/flarum-ext-sticky                v0.1.0-beta.7  Pin discussions to the top of the list.
flarum/flarum-ext-subscriptions         v0.1.0-beta.6  Allow users to follow discussions and receive notifications for new posts.
flarum/flarum-ext-suspend               v0.1.0-beta.7  Suspend users so they can't post.
flarum/flarum-ext-tags                  v0.1.0-beta.8  Organize discussions into a hierarchy of tags and categories.
franzl/studio                           0.11.2         Develop your Composer libraries with style
franzl/whoops-middleware                0.4.1
ganuonglachanh/flarum-ext-search        0.3            Allows to search by discusstion title
guzzlehttp/guzzle                       6.3.0          Guzzle is a PHP HTTP client library
guzzlehttp/promises                     v1.3.1         Guzzle promises library
guzzlehttp/psr7                         1.4.2          PSR-7 message implementation that also provides common utility methods
http-interop/http-middleware            0.2.0          Common interface for HTTP middleware
hyn/flarum-default-group                0.5.0          Assign a default group to new users automatically.
illuminate/bus                          v5.1.41        The Illuminate Bus package.
illuminate/cache                        v5.1.41        The Illuminate Cache package.
illuminate/config                       v5.1.41        The Illuminate Config package.
illuminate/container                    v5.1.41        The Illuminate Container package.
illuminate/contracts                    v5.1.41        The Illuminate Contracts package.
illuminate/database                     v5.1.41        The Illuminate Database package.
illuminate/events                       v5.1.41        The Illuminate Events package.
illuminate/filesystem                   v5.1.41        The Illuminate Filesystem package.
illuminate/hashing                      v5.1.41        The Illuminate Hashing package.
illuminate/mail                         v5.1.41        The Illuminate Mail package.
illuminate/pipeline                     v5.1.41        The Illuminate Pipeline package.
illuminate/support                      v5.1.41        The Illuminate Support package.
illuminate/validation                   v5.1.41        The Illuminate Validation package.
illuminate/view                         v5.1.41        The Illuminate View package.
intervention/image                      2.4.1          Image handling and manipulation library with support for Laravel integration
ircmaxell/random-lib                    v1.2.0         A Library For Generating Secure Random Numbers
ircmaxell/security-lib                  v1.1.0         A Base Security Library
issyrocks12/flarum-ext-filter           1.2.2          Filter out words and phrases from forum posts
jsthon/flarum-ext-simplified-chinese    v0.1.0-beta.7  Simplified Chinese language pack.
league/flysystem                        1.0.41         Filesystem abstraction: Many filesystems, one API.
league/oauth2-client                    1.4.2          OAuth 2.0 Client Library
league/oauth2-github                    0.2.2          Github OAuth 2.0 Client Provider for The PHP League OAuth2-Client
matthiasmullie/minify                   1.3.52         CSS & JS minifier
matthiasmullie/path-converter           1.1.0          Relative path converter
monolog/monolog                         1.23.0         Sends your logs to files, sockets, inboxes, databases and various web services
nesbot/carbon                           1.22.1         A simple API extension for DateTime.
nikic/fast-route                        v0.6.0         Fast request router for PHP
oe800/flarum-ext-bbcode-fontizymo       0.1.4          Add Custom Web Fonts Flarum
oyejorge/less.php                       v1.7.0.14      PHP port of the Javascript version of LESS http://lesscss.org (Originally maintai...
paragonie/random_compat                 v1.4.2         PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
psr/http-message                        1.0.1          Common interface for HTTP messages
psr/log                                 1.0.2          Common interface for logging libraries
pusher/pusher-php-server                2.6.4          Library for interacting with the Pusher REST API
reflar/gamification                     2.0.2          Upvotes and downvotes for your Flarum community
s9e/flarum-ext-mediaembed               0.3.2          Embed third-party content in your Flarum.
s9e/text-formatter                      0.8.5          Multi-purpose text formatting and markup library. Plugins offer support for BBCod...
sijad/flarum-ext-details                0.1.2          Details BBCode for Flarum
sijad/flarum-ext-links                  0.1.0-beta.6   Manage flarum primary navbar menu links.
sijad/flarum-ext-pages                  0.1.0-beta.3   Create custom page with Flarum
sijad/flarum-ext-spoiler-alert          0.1.0          Spoiler plugin for Flarum using spoiler-alert jQuery plugin
swiftmailer/swiftmailer                 v5.4.8         Swiftmailer, free feature-rich PHP mailer
symfony/console                         v2.8.27        Symfony Console Component
symfony/debug                           v2.7.34        Symfony Debug Component
symfony/filesystem                      v3.3.9         Symfony Filesystem Component
symfony/finder                          v2.7.34        Symfony Finder Component
symfony/http-foundation                 v2.7.34        Symfony HttpFoundation Component
symfony/polyfill-mbstring               v1.5.0         Symfony polyfill for the Mbstring extension
symfony/process                         v3.3.9         Symfony Process Component
symfony/translation                     v2.7.34        Symfony Translation Component
symfony/yaml                            v2.8.27        Symfony Yaml Component
tijsverkoyen/akismet                    1.1.1          Akismet is a wrapper-class to communicate with the Akismet API.
tobscure/json-api                       v0.3.0         JSON-API responses in PHP
wiseclock/flarum-ext-post-copyright     0.1.7          Enables copyright settings on posts.
wiseclock/flarum-ext-profile-image-crop 0.1.1          Crop when uploading profile image.
wiseclock/flarum-ext-reply2see          0.1.1          Adds a reply to see BBCODE.
wiwatsrt/flarum-ext-best-answer         v0.1.0-beta.11 Best Answer for Flarum.
xengine/flarum-ext-markdown-editor      1.3.1          WYSIWYG Editor for Flarum
zendframework/zend-diactoros            1.6.0          PSR HTTP Message implementations
zendframework/zend-escaper              2.5.2
zendframework/zend-stratigility         1.3.3          Middleware for PHP

Add a Total Number of accounts

It should be great to visually have:

  • Total amount of registered accounts
  • Possibly the amount of suspended acounts?
  • An additional filter of Suspended accounts to keep track of who exactly are suspended.

Ability to customize the FA icon class

Currently, I use FontAwesome Pro's duotone icons (class fad). Unfortunately, the icon classes used in this extension (fad fa-address-book) are currently hardcoded in vendor/fof/user-directory/js/src/forum/index.js. Would love the ability to customize this the way other extensions do.

Just a suggestion. Thanks!

Feature Request: Search

This great plugin is lack of search field.

Please make search field above the list (right to filtering).

Allow filtering by user groups

It would be great to have the option to filter all users according to groups as set via Flarum core. I don't know whether this would best happen via the already available dropdown or via a secondary filter (a dedicated dropdown for groups).

Problem with styles after updating to 1.2

Bug Report

Current Behavior
The new search box looks different from the rest of the Flarum inputs. It also does not highlight when focused.
Styles on mobile are broken.

Screenshots

image

2021-12-27-17-06-03.mp4

Environment

  • Flarum version: 1.1.1
  • Extension version: 1.2.0

Cannot read properties of undefined (reading 'UserDirectoryPage') when re-enabling the extension

Bug Report

I disabled the extension and then re-enabled it. Now when trying to load any page on the user-facing site (e.g.: / or /d/2031) I get "Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error." and the js console shows:

Screenshot 2022-01-16 at 22 53 25

I tried hard refreshing and php flarum cache:clear but none of that works. Only disabling the extension makes the site work again.

Environment

  • Webserver: apache
  • Hosting environment: shared
  • Browser: chrome 97, firefox, safari ... all broken
Flarum core 1.1.1
PHP version: 7.4.15
MySQL version: 8.0.26-0ubuntu0.20.04.2
Loaded extensions: Core, date, libxml, pcre, sqlite3, filter, hash, intl, json, mbstring, SPL, PDO, Reflection, session, pdo_sqlite, standard, mysqlnd, bcmath, bz2, calendar, ctype, curl, dom, exif, fileinfo, ftp, gd, gettext, iconv, imap, mysqli, openssl, pcntl, pdo_mysql, zlib, posix, pspell, sodium, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, imagick, Zend OPcache
+-----------------------------+---------+--------+
| Flarum Extensions           |         |        |
+-----------------------------+---------+--------+
| ID                          | Version | Commit |
+-----------------------------+---------+--------+
| flarum-subscriptions        | v1.1.0  |        |
| flarum-tags                 | v1.1.0  |        |
| flarum-flags                | v1.1.0  |        |
| flarum-markdown             | v1.1.1  |        |
| fof-follow-tags             | 1.0.2   |        |
| flarum-suspend              | v1.1.0  |        |
| flarum-approval             | v1.1.0  |        |
| the-turk-mathren            | 1.0.3   |        |
| matteocontrini-imgur-upload | v3.9.1  |        |
| ianm-follow-users           | 1.0.4   |        |
| fof-user-directory          | 1.2.0   |        |
| fof-subscribed              | 1.0.2   |        |
| fof-split                   | 1.0.1   |        |
| fof-recaptcha               | 1.0.0   |        |
| fof-merge-discussions       | 1.1.5   |        |
| fof-impersonate             | 1.0.1   |        |
| fof-formatting              | 1.0.2   |        |
| fof-analytics               | 1.0.0   |        |
| flarum-sticky               | v1.1.0  |        |
| flarum-statistics           | v1.1.0  |        |
| flarum-mentions             | v1.1.3  |        |
| flarum-lock                 | v1.1.0  |        |
| flarum-likes                | v1.1.0  |        |
| flarum-emoji                | v1.1.1  |        |
| flarum-bbcode               | v1.1.0  |        |
| flarum-akismet              | v1.1.0  |        |
| askvortsov-markdown-tables  | v1.2.1  |        |
+-----------------------------+---------+--------+
Base URL: https://wtf.bela.io
Installation path: /home/belaplatform/wtf.bela.io
Queue driver: sync
Mail driver: smtp
Debug mode: ON

grep'ing for 'fof-user-directory` in the database gives:

(224, '2019_06_10_000000_rename_permissions', 'fof-user-directory'),
('c-link', '0'),
('fof-user-directory.default-sort', ''),
('fof-user-directory.disable-global-search-source', '1'),
('fof-user-directory.use-small-cards', '0'),

How to edit this button in user profile

Hi, can i ask what put in css when i want edit this button in user card profile ? This is card inside discussion when open user profile.
I need recolor this in to white color. Thanks
1121

Expose components

Like byobu did, we should expose components so that stuff like #40 could be extended

The Flarum search focuses by default on searching for users.

Bug Report

Current Behavior
When I want to search for something quickly on the forum, I type in a phrase and press enter. Instead of getting the discussions I am looking for, I get the user directory. This is because the Flarum global search engine focuses on the user search option instead of the discussion.

Steps to Reproduce

  1. enable fof/user-directory
  2. try to search for something on the forums

Expected Behavior
The search engine should search for discussions instead of users by default.
If this is not a bug and is intentional, then there should be an option to change the default search.

Screenshots
image

Environment

  • Flarum version: 1.0.3
  • Extension version: 1.0.2

explode() string expected, array given on /users

If PHP Warnings are not hidden, the following appears when accessing /users directly:

Warning: explode() expects parameter 2 to be string, array given in /var/www/vhosts/domain.com/forum.domain.com/vendor/tobscure/json-api/src/Parameters.php on line 124

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/domain.com/forum.domain.com/vendor/tobscure/json-api/src/Parameters.php on line 126

Fatal error: Uncaught Zend\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /var/www/vhosts/domain.com/forum.domain.com/vendor/zendframework/zend-httphandlerrunner/src/Exception/EmitterException.php:23 Stack trace: #0 /var/www/vhosts/domain.com/forum.domain.com/vendor/zendframework/zend-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(39): Zend\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /var/www/vhosts/domain.com/forum.domain.com/vendor/zendframework/zend-httphandlerrunner/src/Emitter/SapiEmitter.php(26): Zend\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /var/www/vhosts/domain.com/forum.domain.com/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(97): Zend\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Zend\Diactoros\Response\HtmlResponse)) #3 /var/www/vhosts/domain.com/forum.domain.com/vendor/flarum/core/src/Http/Server.php(46): Zend\HttpHandle in /var/www/vhosts/domain.com/forum.domain.com/vendor/zendframework/zend-httphandlerrunner/src/Exception/EmitterException.php on line 23

No idea if we're doing something wrong in User Directory, or if it's an issue in the JSON API library...

If someone has time to dig into the root cause, all help is welcome 😄

The workaround is to hide the PHP Warnings in the page output, as it should be on production anyway.

Feature request list layout and hide user

  • allow the admin(s) to hide special users from the List
    For example: i want to show all my admins, but there is one account that nobody should see in public. So you could hide him in that list?

  • add an other listing
    Maybe it should be possible to switch between the current list layout and an other one, where you have just a table with the basic informations like username, number of posts joined, last activity

flarum.ERROR: InvalidArgumentException: No hint path defined for [fof.user-directory]

[2020-11-15 16:14:51] flarum.ERROR: InvalidArgumentException: No hint path defined for [fof.user-directory]. in /var/www/html/flarum/vendor/illuminate/view/FileViewFinder.php:112Stack trace:
#0 /var/www/html/flarum/vendor/illuminate/view/FileViewFinder.php(90): Illuminate\View\FileViewFinder->parseNamespaceSegments()
#1 /var/www/html/flarum/vendor/illuminate/view/FileViewFinder.php(76): Illuminate\View\FileViewFinder->findNamespacedView()
#2 /var/www/html/flarum/vendor/illuminate/view/Factory.php(131): Illuminate\View\FileViewFinder->find()
#3 /var/www/html/flarum/vendor/fof/user-directory/src/Content/UserDirectory.php(75): Illuminate\View\Factory->make()
#4 /var/www/html/flarum/vendor/flarum/core/src/Frontend/Frontend.php(63): FoF\UserDirectory\Content\UserDirectory->__invoke()
#5 /var/www/html/flarum/vendor/flarum/core/src/Frontend/Frontend.php(55): Flarum\Frontend\Frontend->populate()
#6 /var/www/html/flarum/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document()
#7 /var/www/html/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Frontend\Controller->handle()
#8 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#9 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\DispatchRoute->process()
#10 /var/www/html/flarum/vendor/fof/oauth/src/Middleware/ErrorHandler.php(50): Laminas\Stratigility\Next->handle()
#11 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\OAuth\Middleware\ErrorHandler->process()
#12 /var/www/html/flarum/vendor/fof/ban-ips/src/Middleware/RegisterMiddleware.php(93): Laminas\Stratigility\Next->handle()
#13 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\BanIPs\Middleware\RegisterMiddleware->process()
#14 /var/www/html/flarum/vendor/fof/stopforumspam/src/Middleware/RegisterMiddleware.php(101): Laminas\Stratigility\Next->handle()
#15 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\StopForumSpam\Middleware\RegisterMiddleware->process()
#16 /var/www/html/flarum/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php(48): Laminas\Stratigility\Next->handle()
#17 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\Terms\Middlewares\RegisterMiddleware->process()
#18 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle()
#19 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ShareErrorsFromSession->process()
#20 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#21 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#22 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(37): Laminas\Stratigility\Next->handle()
#23 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#24 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#25 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#26 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility\Next->handle()
#27 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#28 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#29 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#30 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
#31 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CollectGarbage->process()
#32 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#33 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#34 /var/www/html/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#35 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#36 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#37 /var/www/html/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#38 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#39 /var/www/html/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility\Next->handle()
#40 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#41 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#42 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#43 /var/www/html/flarum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
#44 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#45 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#46 /var/www/html/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#47 /var/www/html/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#48 /var/www/html/flarum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#49 /var/www/html/flarum/index.php(26): Flarum\Http\Server->listen()
#50 {main}  
# php flarum info
Flarum core 0.1.0-beta.14.1
PHP version: 7.4.12
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqlnd, PDO, Phar, SimpleXML, sockets, sqlite3, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, xmlreader, zip
+---------------------------------+------------------+--------+
| Flarum Extensions               |                  |        |
+---------------------------------+------------------+--------+
| ID                              | Version          | Commit |
+---------------------------------+------------------+--------+
| flarum-approval                 | v0.1.0-beta.14   |        |
| flarum-bbcode                   | v0.1.0-beta.12   |        |
| flarum-emoji                    | v0.1.0-beta.14   |        |
| flarum-flags                    | v0.1.0-beta.14.1 |        |
| flarum-likes                    | v0.1.0-beta.14   |        |
| flarum-lock                     | v0.1.0-beta.14   |        |
| flarum-markdown                 | v0.1.0-beta.14   |        |
| flarum-mentions                 | v0.1.0-beta.14   |        |
| flarum-sticky                   | v0.1.0-beta.14   |        |
| flarum-subscriptions            | v0.1.0-beta.14   |        |
| flarum-suspend                  | v0.1.0-beta.14   |        |
| flarum-tags                     | v0.1.0-beta.14   |        |
| flarum-lang-english             | v0.1.0-beta.14.1 |        |
| flarum-statistics               | v0.1.0-beta.14   |        |
| fof-user-bio                    | 0.3.1            |        |
| tolgaaaltas-lang-turkish        | 0.14.1           |        |
| v17development-seo              | 1.4              |        |
| fof-follow-tags                 | 0.5.1            |        |
| fof-formatting                  | 0.2.0            |        |
| fof-split                       | 0.5.0            |        |
| tolgaaaltas-turkish             | 0.14.0           |        |
| nearata-signup-confirm-password | v2.1.0           |        |
| fof-forum-statistics-widget     | 0.3.0            |        |
| nearata-copy-code-to-clipboard  | v1.1.0           |        |
| fof-drafts                      | 0.2.0            |        |
| fof-best-answer                 | 0.2.0            |        |
| fof-links                       | 0.4.1            |        |
| fof-linguist                    | 0.4.4            |        |
| fof-terms                       | 0.5.0            |        |
| fof-merge-discussions           | 0.4.0            |        |
| fof-spamblock                   | 0.3.0            |        |
| fof-stopforumspam               | 0.3.1            |        |
| fof-geoip                       | 0.2.0            |        |
| fof-ban-ips                     | 0.3.0            |        |
| matteocontrini-imgur-upload     | v3.4.1           |        |
| fof-reactions                   | 0.4.2            |        |
| fof-profile-image-crop          | 0.2.0            |        |
| fof-pages                       | 0.5.0            |        |
| fof-nightmode                   | 0.6.0            |        |
| fof-github-autolink             | 0.1.4            |        |
| kyrne-shout                     | 0.2.4-beta.1     |        |
| clarkwinkelmann-author-change   | 0.2.1            |        |
| fof-filter                      | 0.1.0-beta.3     |        |
| fof-username-request            | 0.3.0            |        |
| nomiscz-auth-steam              | v0.2.0           |        |
| fof-oauth                       | 0.1.0            |        |
| michaelbelgium-discussion-views | v5.0.0           |        |
| michaelbelgium-profile-views    | v4.0.0           |        |
| fof-analytics                   | 0.10.0           |        |
| askvortsov-categories           | v1.1.0           |        |
| fof-html-errors                 | 0.4.1            |        |
| fof-transliterator              | 0.2.1            |        |
+---------------------------------+------------------+--------+
Base URL: https://dursuncanpoyraz.com.tr/flarum
Installation path: /var/www/html/flarum
Debug mode: off

Refreshing user list page error.

Hi! I noticed that whenever i refresh (F5) the user list page, I get an error. I'm not sure if it's missconfiguration of my flarum install but I wanted to send the error log anyway.
The forum is currently in debug mode.

InvalidArgumentException
No hint path defined for [fof.user-directory].

Immagine

[2020-11-18 11:21:53] flarum.ERROR: InvalidArgumentException: No hint path defined for [fof.user-directory]. in /var/www/forum/vendor/illuminate/view/FileViewFinder.php:112
Stack trace:
#0 /var/www/forum/vendor/illuminate/view/FileViewFinder.php(90): Illuminate\View\FileViewFinder->parseNamespaceSegments()
#1 /var/www/forum/vendor/illuminate/view/FileViewFinder.php(76): Illuminate\View\FileViewFinder->findNamespacedView()
#2 /var/www/forum/vendor/illuminate/view/Factory.php(131): Illuminate\View\FileViewFinder->find()
#3 /var/www/forum/vendor/fof/user-directory/src/Content/UserDirectory.php(75): Illuminate\View\Factory->make()
#4 /var/www/forum/vendor/flarum/core/src/Frontend/Frontend.php(63): FoF\UserDirectory\Content\UserDirectory->__invoke()
#5 /var/www/forum/vendor/flarum/core/src/Frontend/Frontend.php(55): Flarum\Frontend\Frontend->populate()
#6 /var/www/forum/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document()
#7 /var/www/forum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Frontend\Controller->handle()
#8 /var/www/forum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#9 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\DispatchRoute->process()
#10 /var/www/forum/vendor/fof/ban-ips/src/Middleware/RegisterMiddleware.php(93): Laminas\Stratigility\Next->handle()
#11 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\BanIPs\Middleware\RegisterMiddleware->process()
#12 /var/www/forum/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle()
#13 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ShareErrorsFromSession->process()
#14 /var/www/forum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#15 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#16 /var/www/forum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(37): Laminas\Stratigility\Next->handle()
#17 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#18 /var/www/forum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#19 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#20 /var/www/forum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility\Next->handle()
#21 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#22 /var/www/forum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#23 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#24 /var/www/forum/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
#25 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CollectGarbage->process()
#26 /var/www/forum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#27 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#28 /var/www/forum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#29 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#30 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#31 /var/www/forum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#32 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#33 /var/www/forum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility\Next->handle()
#34 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#35 /var/www/forum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#36 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#37 /var/www/forum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
#38 /var/www/forum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#39 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#40 /var/www/forum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#41 /var/www/forum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#42 /var/www/forum/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#43 /var/www/forum/public/index.php(26): Flarum\Http\Server->listen()
#44 {main}

"Search all users for" is visible even for users without access to user directory page

Bug Report

Current Behavior
If a user has Flarum permission "View user list" (soon to be renamed Search users) but not FoF Permission "View user directory", they still see the "Search all users for " in the search autocomplete

Steps to Reproduce

  1. Set "View user list" permission to guests
  2. Set "View user directory" permission to Admin
  3. Search for any term in the global search bar
  4. See link to directory

Expected Behavior
The link should not be visible since the user doesn't have access to the page

Screenshots

image

Environment

  • Flarum version: beta 16, probably 1.0 as well
  • Extension version: 0.6.2, probably dev-master as well

Possible solution(s)
Either we need to follow the same logic as the link to user directory page and use the existing app.forum.attribute('canSeeUserDirectoryLink'), or we need to introduce a new attribute either just based on the "View user directory" permission or maybe take the opportunity to introduce a new checkbox "Show link in search results" to match with the other link setting.

Additional Context
This is not a security issue. Hiding the user directory via "View user directory" permission is only effective if the "View user list" permission matches the value.

If the "View user list" permission allows broader access than "View user directory", then we must only hide references to the user list page for aesthetics purposes.

Clicking the link in the search results actually loads the page fine since there is no additional check client side to prevent access to the page. However it results in 404 error if refreshing since we implemented a page not found error in the backend. Again, for aesthetics since the data is always available from the REST API anyway.

/users 500 on beta.8

I encountered this error on master (b8147de17d) using flarum beta.8:

screenshot-localhost-8888-2019 02 26-14-24-14

If somebody can give me some hints on how to fix this, I will try to contribute.

Ghost spinner icon appearing on user directory

Hi! Today, when I looking for my forum users I find one alarming thing.

I do not know if I can throw it into the error section?
This is about the element:
error

Sometimes it is visible, but not always, although all users are already loaded.

PS. Sorry for my weak english.

More complex filter and search in the user directory

The user directory has huge potential but currently, it can search users based on their groups and user name.

Would be great if we can have a search based on each field we create.

For example, if we create 4 fields: 1 of them is "Location", 2nd is "Education" and 3rd is "Skills", 4th is years of experience. Then we can search for all users that are at a specific location, with specific education and specific skills, with specific years of experience. All 4 together, while 1 won't exclude the other but the filter preferences should be additive.

Also, the dropdown should allow multiple choices.

Undefined variable: forum

Installing ^0.3.2 on core v0.1.0-beta.9
No previous installation of Flagrow package.

Navigate to /users produce this error:

compact(): Undefined variable: forum in FALARUM_BASE_DIR/vendor/fof/user-directory/src/Content/UserDirectory.php on line 72 

Mobile: user card menu is not clickable

Hi,

On mobile browsers the menu of the user card is not usable.

This is the list:
user_list_mobile_small
I'm logged in with an admin user with permissions to edit user profiles. When I click on the menu of an user card, an overlay prevents tapping on the menu items:

user_list_click_on_user_menu_small

It's behaving the same with chrome on android and safari on ios. I'm using Flarum beta 15 with FoF user directory 0.5.0 and FoF terms 0.6.1.

Error if access to directory but not user list

If you have the "View user directory" permission but not the "View user list" permission you can access the page but it will result in a "Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error" error with message TypeError: t is undefined in the console

Ability to add user

It's not possible to add a user in flarum from the admin. Neither is possible to invite a user (via email). In fact, if you close Sign up, their is no way to create a new user.

The ability for admin to add new user would be a great addition to this extinction.

Customizable time frame for the discussion count attribute and sorting

Most types of sorting are present in this extension but the current sorting is done from the day a forum is started. How about sorting through a time frame like most discussions in a week or month or year. Specific date selector would also be better. This would help us in various community tasks and also keep members motivated as they can keep their track as compared to other members on weekly/monthly/yearly basis.

flarum

Setting for default sorting

As a feature request, I'd like to see a setting introduced that would allow us to define the default sort order for the the user list.

Users without directory permissions see 403s during post drafting due to @mentions

Bug Report

Current Behavior
Users without directory permissions see 403s during post drafting due to @mentions

Steps to Reproduce

  1. Have Mentions and User Directory installed
  2. Log in as a user without the "View user directory" permission
  3. Compose a post or reply and type "@asdf" and then space
  4. See 403s and "You do not have permission to do that." red popup in corner

Expected Behavior
No 403s happen during regular use of the web UI.

Screenshots
N/A

Environment

  • Flarum version: 7.4.19
  • Extension version: 1.0.2
  • Website URL: Not public
  • Webserver: nginx, flarum in docker
  • Hosting environment: docker in EC2
  • PHP version: 7.4.19
  • Browser: Chrome 73
Output of "php flarum info", run this in terminal in your Flarum directory.
Flarum core 1.0.0
PHP version: 7.4.19
Loaded extensions: Core, date, libxml, pcre, zlib, filter, hash, readline, Reflection, SPL, session, ctype, curl, dom, fileinfo, gd, gmp, iconv, intl, json, mbstring, openssl, PDO, standard, SimpleXML, sodium, tokenizer, xml, xmlwriter, zip, exif, mysqlnd, Phar, pdo_mysql, uuid, Zend OPcache
+----------------------+------------+--------+
| Flarum Extensions    |            |        |
+----------------------+------------+--------+
| ID                   | Version    | Commit |
+----------------------+------------+--------+
| flarum-markdown      | v1.0.0     |        |
| fof-impersonate      | 1.0.0      |        |
| flarum-suspend       | v1.0.0     |        |
| flarum-tags          | v1.0.0     |        |
| askvortsov-rich-text | v2.1.0     |        |
| [redacted]           | dev-master |        |
| fof-moderator-notes  | 1.0.0      |        |
| fof-upload           | 1.0.2      |        |
| flarum-nicknames     | v1.0.0     |        |
| flarum-subscriptions | v1.0.0     |        |
| flarum-sticky        | v1.0.0     |        |
| flarum-statistics    | v1.0.0     |        |
| flarum-mentions      | v1.0.0     |        |
| flarum-lock          | v1.0.0     |        |
| flarum-likes         | v1.0.0     |        |
| flarum-lang-english  | v1.0.0     |        |
| flarum-emoji         | v1.0.0     |        |
| flarum-bbcode        | v1.0.0     |        |
| fof-user-directory   | 1.0.2      |        |
| flarum-flags         | v1.0.0     |        |
| fof-webhooks         | 1.0.4      |        |
+----------------------+------------+--------+
Base URL: [redacted]
Installation path: /opt/flarum
Debug mode: off

Possible solution(s)

Disable the dropdown for searching users by name when typing @ in the composition when the user doesn't have the directory permission. Alternatively, have a different permission for searching users by name and outright enumeration of users.

Php Error Class 'Flarum\Forum\Controller\WebAppController'

[14-Dec-2018 15:23:18 UTC] PHP Fatal error: Class 'Flarum\Forum\Controller\WebAppController' not found in /home/domain/forum/vendor/flagrow/user-directory/src/Http/Controllers/UserDirectoryController.php on line 14

Flarum: Beta 8.1
PHP: 7.2

It works with the dev-master branch.

Thks,

/users 500 error page

[Mon Feb 25 12:10:38.449833 2019] [:error] [pid 1618:tid 140639006078720] [client 92.82.219.27:59890] PHP Fatal error:  Class 'Flarum\\Forum\\Controller\\WebAppController' not found in /home/hartexro/.forum/vendor/flagrow/user-directory/src/Http/Controllers/UserDirectoryController.php on line 14
[Mon Feb 25 12:10:42.090545 2019] [:error] [pid 2073:tid 140638955722496] [client 92.82.219.27:59898] PHP Fatal error:  Class 'Flarum\\Forum\\Controller\\WebAppController' not found in /home/hartexro/.forum/vendor/flagrow/user-directory/src/Http/Controllers/UserDirectoryController.php on line 14
[Mon Feb 25 12:10:52.672510 2019] [:error] [pid 1618:tid 140639116478208] [client 92.82.219.27:59914] PHP Fatal error:  Class 'Flarum\\Forum\\Controller\\WebAppController' not found in /home/hartexro/.forum/vendor/flagrow/user-directory/src/Http/Controllers/UserDirectoryController.php on line 14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.