GithubHelp home page GithubHelp logo

coldtrick / questions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ewinslow/elgg-questions

7.0 4.0 7.0 715 KB

A Q&A plugin for Elgg (ala Facebook Questions, Quora, Stack Overflow, etc.)

Home Page: https://elgg.org/plugins/2472722

PHP 99.40% CSS 0.60%

questions's Introduction

Questions for Elgg

Elgg 6.0 Lint Checks Latest Stable Version License

Questions is a plugin for Elgg to provide your network with Q&A functionality analogous to Quora, Stack Overflow, or Facebook Questions

Features

  • Ask questions as an individual or to a group.
  • Comment on questions + answers (ala StackOverflow)
  • Like questions + answers

(C) 2011 Evan Winslow (C) 2015-2024 ColdTrick IT Solutions

questions's People

Contributors

jeabakker avatar jdalsem avatar ewinslow avatar lianglee avatar rickterheide avatar emanwebdev avatar nschonni avatar duboisp avatar yaco avatar oseg avatar

Stargazers

Oranyero avatar  avatar Alberto G. Rodriguez avatar  avatar Guoliang Zhou avatar  avatar Florian DANIEL aka Facyla avatar

Watchers

James Cloos avatar  avatar Oranyero avatar Luis Castillo avatar

questions's Issues

Strange thing with tabs

Hi @jeabakker I'm testing questions to implement it in production, when I access the general questions there are four different tabs:
Todo =/questions/all ---Ok
Mine=/questions/owner/USER ---OK
Todo=/questions/todo ?? what is it
Experts=/questions/experts ---OK

and in the groups:
Todo =/questions/group/90/all ---OK (90 is the group number)
Todo=/questions/todo ?? what is it again
Group Todo=/questions/todo/90 no is the url where is going /questions/all
Experts=/questions/experts ---OK

and what to move to discussions is not in the edition of the question
captura

Thanks for your work
Jon

"No longer correct" link is not working, the answer remains "correct" and question remains "locked"

Plugins context: elgg v2.3.3 + question plugin v5.2

Settings context: "Close a question when it gets a marked answer" question setting is set to "yes"

Scenario:

  • Create a group and enable "questions" in this group
  • Create a question
  • Add an answer to this question
  • Click on the "correct" link to mark the answer as "correct"
    -> The answer is marked as "correct" and the question is locked
  • Click on the "No longer correct" link
    -> The answer remains marked as correct and the question remains locked

The answer should be unmarked as "correct" and the question should be unlocked

error when deleting questions

when I delete a question I get the following error (but the question is still deleted):

Fatal error: Call to a member function getGUID() on a non-object in /elggsite/mod/elgg-questions/pages/questions/owner.php on line 27

1 Answers

Please update plugin so either it says "1 Answer" when there is only one, or maybe show the answers like this:

Answers (1)

That would work for all scenarios.

Answer "Embed content" link hidden by tinymce editor

Title: Answer "Embed content" link hidden by tinymce editor

Context: When using "Questions" plugin v2.1 with "extended_tinymce" plugin v4.3.8 on elgg v1.12.11 with "embed" plugin activated

Scenario

  • Click on "Add a question" button to display the question creation form => "Embed content" link is displayed correctly
  • Fill in the question fields and click on "Submit" button
  • Click on the just created question to display question answer form => "Embed content" link is hidden by the tinymce editor

I see 2 ways to fix the issue:

  1. in the "questions" plugin by adding a label before the longtext editor (similar to question creation form) or
  2. in the "extended tinymce" plugin by adding a style .tinymce {clear: right;} (similar to .cke in "ckeditor" plugin)
    But, maybe there is a 3rd solution in the "embed" plugin ;-)

I created the issue in this repository, because the problem happens only with "questions", I do not reproduce the issue with other elgg content like page, bookmark... Should I still create an issue in the "extended tinymce" repository?

Add more notifications

To question owner when:

  • there is a new answer
  • an answer is marked correct (by someone else)
  • question is moved to a different group
  • question is moved to a discussion

"Search in this group" does not search in group question's answers

Context: elgg v2.3.3+questions v5.2

Scenario:

  • Create a group
  • In this group, create a question with "comala" in the title and details fields
  • in this question's page, add an answer containing "comala"
  • go to the group profile page
  • in the "search in this group" field, enter "comala" and press "go" button
  • -> the "comala" question is found but not the "comala" answer
  • in the right menu, click "All" link
  • -> Both the "comala" question and its "comala" answer are found

May be related to "'Search in this group' does not search in group comments" elgg issue: Elgg/Elgg#11172

Question owner is not notified on answer comments

Issue reproduced on both context:

  • elgg v1.12.14 + questions v2.1.2 + content_subscription v3.1
  • elgg v2.2.1 + questions v3 + content_subscription v4

Scenario:

  • create 3 users (user1, user2 & user3) with both Settings/Notifications/Personal notifications checked (when actions are performed on your content & when comments get posted on content you subscribed to)
  • create a "test-group", add the 3 users to the group and enable group notifications for the group users
  • user1 adds a group question
    => user2 & user3 are notified of the added question in the group
  • user2 adds an answer to user1's question
    => user1 is notified of the answer
  • user3 adds a comment on user2's answer
    => user2 is notified of the comment but user1 is NOT

The question owner (user1) should be notified of an answer's comment

Search result crash if an unreachable container(the question) answer is found

Context: elgg v2.3.3 + question v5.4.1

Scenario:

  • In an invisible group
  • User A creates a question, with group access level
  • User B answers to the question with 'keyword' in the answer
  • User B leaves the invisible group
  • User B search for 'keyword'
    => a crash happens with the following stack

PHP Fatal error: Call to a member function getDisplayName() on boolean in C:\xampp\htdocs\cmt-1.3\mod\questions\views\default\search\object\answer\entity.php on line 48
PHP Stack trace:
PHP 1. {main}() C:\xampp\htdocs\cmt-1.3\index.php:0
PHP 2. Elgg\Application::index() C:\xampp\htdocs\cmt-1.3\index.php:8
PHP 3. Elgg\Application->run() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\Application.php:384
PHP 4. Elgg\Router->route() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\Application.php:436
PHP 5. call_user_func:{C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\Router.php:100}() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\Router.php:100
PHP 6. search_page_handler() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\Router.php:100
PHP 7. elgg_view_resource() C:\xampp\htdocs\cmt-1.3\mod\search\start.php:62
PHP 8. Elgg\ViewsService->renderView() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\lib\views.php:514
PHP 9. Elgg\ViewsService->renderViewFile() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:306
PHP 10. include() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:370
PHP 11. elgg_view() C:\xampp\htdocs\cmt-1.3\mod\search\views\default\resources\search\index.php:194
PHP 12. Elgg\ViewsService->renderView() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\lib\views.php:337
PHP 13. Elgg\ViewsService->renderViewFile() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:306
PHP 14. include() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:370
PHP 15. elgg_view() C:\xampp\htdocs\cmt-1.3\mod\search\views\default\search\list.php:113
PHP 16. Elgg\ViewsService->renderView() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\lib\views.php:337
PHP 17. Elgg\ViewsService->renderViewFile() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:306
PHP 18. include() C:\xampp\htdocs\cmt-1.3\vendor\elgg\elgg\engine\classes\Elgg\ViewsService.php:370

Experts

Is there anyway to give a user the ability to select a particular "expert" they would like to answer their questions. I believe this would be a very good feature, seeing their is a "list experts" feature already present.

Regards,

Answers and answer's comments are not displayed in the group activity

Title: Answers and answer's comments are not displayed in the group activity

Context: elgg v2.3.3 and questions v5.1 activated

Scenario:

  • Enable "questions" tool in a group
  • Create a question in this group
  • Add an answer to this question
  • Add a comment to this answer
  • Have a look at this group activity
    -> The question is displayed but not the answer and not the answer's comment
  • Have a look at the whole site activity
    -> The question, the answer and the answer's comment are displayed

Fatal error (exception) when trying to view the detailed page of a question

Context: elgg v3.2.0 + questions v6.0.4

Scenario:

  • Click on "questions" main menu item
  • Click on "add a question" button
  • Fill in the question form
    • Title: "My question"
    • "Details"
    • "Tag"
    • Comment "ON"
    • who can see this "logged in users"
    • where should this question be liste "My account"
    • validate by clicking on "Submit" button
      =>"My question" is displayed among my other questions
  • Click on my question to view the detailed page

Results: Fatal error (Exception)

Expected results: the detailed page of "My question"

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.