Giter Site home page Giter Site logo

elgg-questions's Introduction

Questions for Elgg 1.8

Questions is a plugin for Elgg to provide your network with Q&A functionality analagous 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

elgg-questions's People

Contributors

emanwebdev avatar ewinslow avatar lianglee avatar rickterheide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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  avatar

elgg-questions's Issues

river/question create.php

subject_guid); $object = get_entity($statement->object_guid); $url = elgg_view('output/url', array( 'href' => $performed_by->getURL(), 'text' => $performed_by->name, 'encode_text' => TRUE, )); echo elgg_echo("questions:river:question:created:by", array($url)) . " $performed_by->name"; echo elgg_view('output/url', array( 'name' => 'newquestioncreated', 'text' => elgg_echo('question:view'), 'href' => $object->getURL(), ));

Follow-up questions

It's common for a question or answer to create another, related question. This could be a great use-case to take care of.

Language patches

'questions:river:question:created:by' => "New Question is created by",
'question:view' => " view",

Optional wiki-style answers

Site admin can determine whether there should be 1 community-generated answer or each person posts their own answer.

Add Question Add button

Add Question add button

to add button go questions/pages/questions/all.php

After the first line:
elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());

just add:
elgg_register_title_button();

Error Message

Fix Deprecated in 1.0: Use elgg_register_menu_item() to register for the title menu

to fix go to pages/add.php

find
$body = elgg_view_layout('content', array(
'title' => $title,
'content' => $content,
'filter' => '',
'buttons' => '',
));

Replace with

$body = elgg_view_layout('content', array(
'content' => $content,
'title' => $title,
'filter' => '',
'header' => '',
));

Edit Question Patch work now pages/edit.php

canEdit()) { register_error(elgg_echo('questions:unknown')); forward(REFERRER); } $title = elgg_echo('questions:edit'); elgg_push_breadcrumb($title); $vars = array( 'entity' => $question, ); $content = elgg_view_form('object/question/save', array(), $vars); $body = elgg_view_layout('content', array( 'content' => $content, 'title' => $title, 'filter' => '', 'header' => '',)); echo elgg_view_page($title, $body);

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.