Giter Club home page Giter Club logo

slash-reflect-sandbox's Introduction

Reflect implements an interface change to the comments section that helps people listen, while at the same time producing useful summaries. Next to every comment, readers are prompted to succinctly restate/summarize a point they hear the commenter making. The summaries are displayed in a bulleted list. Commenters can engage with summarizers to make sure that the summarized points accurately portray the points they were trying to make.

== Dependencies ==

1. The Ajax Slash plugin. 
2. jQuery 1.3+

== Installing Reflect into Slashcode ==

1. Create a Reflect directory in your Slashcode plugin directory and clone this repo. 

    git clone [email protected]:tkriplean/Slash-Reflect-sandbox.git /path/to/slashcode/plugins/Reflect

2. Run the slash installer or plugin installer. Make sure to select the Reflect and Ajax plugins. 

3. Add the following to the appropriate place in your theme's templates (e.g. themes/templates/html-header):

	[% IF constants.plugin.Reflect && (user.currentPage == "article" || user.currentPage == "comments") && story_title -%]
	   [% commentstatus = Slash.db.sqlSelect('commentstatus', 'discussions', "title='$story_title'"); -%]
	   [% IF commentstatus=='reflect_enabled' -%]
	      <script src="/js/reflect.third_party.min.js" type="text/javascript"></script>
	      <script src="/js/reflect.js" type="text/javascript"></script>
	      <script src="/js/reflect.slash.js" type="text/javascript"></script>
	   [% END -%]
	[% END -%]


4. Depending on the theme you are using, you may have to modify some of the settings in /js/reflect.slash.jsraw. Currently it is ready for the current Slashdot theme and the slashcode theme. 

5. Integrate plugin:
    /path/to/slashcode/bin/symlink-tool -U
    /path/to/slashcode/bin/template-tool -U

6. Win!

== Uninstalling Reflect ==

SQL: 
    DELETE FROM css WHERE file IN ('css/reflect.slash.css', 'css/reflect.css');
    DELETE FROM message_codes WHERE type='Reflect summary';

	UPDATE discussions set commentstatus='enabled' where commentstatus='reflect_enabled';
	ALTER TABLE discussions MODIFY COLUMN commentstatus ENUM('disabled','enabled','friends_only','friends_fof_only','no_foe','no_foe_eof','logged_in');

    DROP TABLE reflect_bullet;
    DROP TABLE reflect_bullet_revision;
    DROP TABLE reflect_bullet_rating;
    DROP TABLE reflect_response;
    DROP TABLE reflect_response_revision;
    DROP TABLE reflect_highlight;

slash-reflect-sandbox's People

Contributors

tkriplean avatar

Watchers

 avatar  avatar

slash-reflect-sandbox's Issues

check permissions server side

For all posts to Reflect.pl, need to do a server-side check to see whether the logged in user has the necessary permissions to carry out the action

optionally activate Reflect for a news story

Reflect should be deactivated by default, and there should be the ability to turn Reflect on for a given story. In the trial run, Reflect will likely only be activated in stories at off-hours.

paginate reflect summaries

It is possible that the vertical size of all summaries is actually greater than the original comment. Figure out a UI solution to displaying the summaries alongside the comment in a way that doesn't allow the summaries to be extraordinarily longer than the comment.

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.