Commit Graph
107 Commits
Author SHA1 Message Date
Jaysinh Shukla 5f987f8745 [IMP] website_forum: added social sharing on questions.
A widget based on website share widget has been added that allows to share
questions and answers on social networks. Old posts can also be bumped
through sharing.

New fields have been added on forum model allowing to disable the old
question bump and social sharing modals.

Courtesy of RD India: Ajay Patel (apa@odoo.com), Jaysinh Shukla
(jsh@odoo.com)
Courtesy of use Merge: Damien Bouvy (dbo@odoo.com)
2015-01-22 17:02:17 +01:00
Christophe Matthieu 9069d0127c [IMP] website: use the new summernote editor 2015-01-05 10:59:42 +01:00
Christophe Simonis 1d3f8eba87 [MERGE] forward port of branch 8.0 up to 591e329 2014-12-02 16:18:08 +01:00
Fabien Pinckaers 7ae48c1839 [FIX] links and threads 2014-12-02 14:48:13 +01:00
Fabien Pinckaers de730aebcf [IMP] karma retag checks 2014-12-02 14:07:51 +01:00
Fabien Pinckaers 84f467a806 [IMP] Tags on discussions and links 2014-12-02 14:04:28 +01:00
Fabien Pinckaers 36955696e0 [IMP] css forum 2014-12-02 13:58:25 +01:00
Fabien Pinckaers 1f0171f8c5 [IMP] Layout of forum 2014-12-02 13:51:44 +01:00
Jeremy Kersten 5d58b5551f [FIX] website_forum: use other attr than value to init select2
The backend would otherwise fail because the value has been already processed
2014-12-01 20:03:31 +01:00
Jeremy Kersten 3c0cf7c977 [FIX] website_forum: restore bind to onclick because CKE Editor uses it, so on('click', fun) breaks things.
Fixes bugs with z-index error on some popups (image selector for example...)
2014-12-01 20:01:00 +01:00
tpa-odoo 6d9e04db87 [IMP] website_forum: add a new karma to control the
way links displayed in posts and answers. A nofollow attribute is
added is the author has not enough karma, adding a protection for
spammer tryign to improve their SEO.
2014-11-19 15:06:08 +01:00
Jeremy Kersten 1035e929b6 [MERGE] forward port of branch 8.0 up to c41109f 2014-11-18 16:57:06 +01:00
Jeremy Kersten c41109f2f0 [FIX] website_forum:
Remove useless document ready
   Add select2 to frontend to allow public user to use tags
2014-11-18 16:20:58 +01:00
Jeremy Kersten 3288f07eaa [FIX] website_forum:
Use if_dom_contains to check if we need to load js
   Fix bug where _tag_to_write_vals was called like old API but model converter was new api
   Move IsKarmaValid and Load CKE only in website_forum context
2014-11-18 14:31:36 +01:00
Jeremy Kersten 86c634965e [MERGE] forward port of branch 8.0 up to 5ed0739 2014-11-18 10:40:59 +01:00
Jeremy Kersten 86a6619dc8 [FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install... 2014-11-17 16:50:52 +01:00
Jeremy Kersten 90b88e33cb [FIX] website_forum - replace texttext by select2 for the tags fields 2014-11-17 16:50:34 +01:00
Jeremy Kersten d3dfbe5852 [FIX] website_forum: fixes
[FIX] website_forum: escape the tags from post at texttext rendering
    [FIX] website_forum: jquery is not already loaded
    [FIX] website_forum: use uid from session because WebsiteForum object has no attribute '_uid'
2014-11-13 14:51:43 +01:00
Christophe Simonis 812c257094 [MERGE] forward port of branch 8.0 up to c825d05 2014-11-05 21:49:01 +01:00
Christophe Simonis c825d0552d [MERGE] forward port of branch saas-3 up to ec27773 2014-11-05 21:46:42 +01:00
Christophe Simonis 4b6c948be5 [MERGE] forward port of branch 8.0 up to ed92589 2014-10-23 17:14:35 +02:00
ssh-odoo ef8099424d [IMP] [TEST] website_forum: security fixes + tests
- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
2014-10-23 11:36:03 +02:00
Fabien Pinckaers 8219d13257 [IMP] better layout and options 2014-10-04 21:19:46 +02:00
tpa-odoo 417c105e18 [IMP] improved code to use cookie instead of session to show introduction message and allow only 2 leval reply funtionality in discussion and article posts. 2014-09-23 15:44:32 +05:30
tpa-odoo 7f2d4f2ce5 [ADD] website_forum: added new funtionality to post Articles and Discussions also on forum insted of only questions. On articles and discussions users kan post multiple reply on each post insted on only one reply per post and users will able to post reply on any other reply. in list posts will be default sorted by relevancy. show introduction message when people not logged in. 2014-09-23 14:28:25 +05:30
Hitesh Trivedi 9094216550 [IMP] website_forum: tag creation now done only on enter, allowing to add whitespaces in tag name. More consistent behavior with odoo. 2014-09-17 14:22:29 +02:00
Jeremy Kersten 287ea2fb17 [IMP] website_*forum,blog,instantclick,...: Move Js in assets 2014-08-28 12:21:47 +02:00
Thibault Delavallée 1e402cb084 [FIX] website_forum: fixed comment unlink action :
- fixed call to a wrong method
- fixed button display, now based on the standard way of managing karma (popup when
not having the required karma)
- fixed button display karma computation
- some css tweaking for this button
2014-08-27 11:41:51 +02:00
Jay Patel f274572c30 [FIX] website_forum: when a user posting a new answer or question does not have a valid email address, redirect to the user's profile instead of crashing when trying to send notifications. 2014-08-05 10:05:49 +02:00
Thibault Delavallée abbe4ef76c [FIX] website_forum: fixed issue with user vote badly taken into account when upvoting / downvoting + crash due to wrong field name. Backport of Leonardo Donelli PR for master. 2014-07-10 09:03:53 +02:00
Thibault Delavallée 2a4ec367a9 [IMP] [FIX] website_forum: cleaned and improved the management of available actions based on the user's karma. The karma levels are now stored on the forum itself, allowing customization. The various check of karma are done at model level and not at controller level anymore, leading to a more secure and easier to inherit behavior. 2014-07-01 10:29:37 +02:00
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Niels Huylebroeck e59077b0f9 Fix displaying of minKarma requirements 2014-06-19 15:23:54 +02:00
Thibault Delavallée 907862655a [FIX] website_forum: people having enough karma can accepts answers on every question, not just their own. Fixed the condition computation. 2014-06-11 13:56:23 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Thibault Delavallée 1fbc5c1cfb [FIX] website_forum: fixed issues with images in question / answers, now limited
in width + auto height. Improved rule for img-avatar to avoid being overriden
by the default img rule.
2014-05-15 11:38:00 +02:00
Xavier Morel 023aa7acdf [FIX] website_forum links which should not be, post-install crawler
* move URLs of purely-JS-hook <a> to data-href so the crawler does not try to
  access them (they're JSON-RPC endpoints...)
* replace side-effecting links (...) by styled buttons
* fix crawler to not take fragments in account when deduplicating and
  navigating URLs
2014-05-12 18:34:55 +02:00
Christophe Simonis b8089a1521 [MERGE] forward port of branch saas-4 up to revid 9410 chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
bzr revid: chs@openerp.com-20140507170112-bjeltv2b0coy60am
2014-05-07 19:01:12 +02:00
Thibault Delavallée 69ec02b2d4 [FIX] website_forum: more fixes :
- display tag name in 'filter' bar when filtering on a tag
- display active tag in a blue color
- order answers: correct first, then most upvoted

bzr revid: tde@openerp.com-20140506123001-fz5gt6i9zw6ondcu
2014-05-06 14:30:01 +02:00
Fabien Meghazi b0cbaf330a [IMP] website: load website.xml templates only in editable mode
bzr revid: fme@openerp.com-20140505113800-wv5vh802us270oez
2014-05-05 13:38:00 +02:00
Thibault Delavallée 252be1b9ab [FIX] website_forum: various fixes and usability improvements
- question title is now a link
- fixed a crash when trying to see badges in the 'new badge' notification
- improved the tags manager: manage tag at blur event (otherwise the last tag
was ften not created) + manage already-existing tags

bzr revid: tde@openerp.com-20140423142034-5si58h4jgd1jyyem
2014-04-23 16:20:34 +02:00
Christophe Simonis 12beacda08 [MERGE] backport of trunk revisions:
9362 fp@tinyerp.com-20140421205739-rki3bctinjy3amzy [MERGE] new module: website_forum_doc + small fixes (close) in forum
9363 fp@tinyerp.com-20140421213850-19gk3hfz8qxa6fw3 [IMP] improved form view for posts

bzr revid: chs@openerp.com-20140422143249-3cfh18tenn3a5ry1
2014-04-22 16:32:49 +02:00
Thibault Delavallée 018624ea43 [IMP] website_forum: better error messages about karma
bzr revid: tde@openerp.com-20140418151608-0pb3ui97aksb9en1
2014-04-18 17:16:08 +02:00
Thibault Delavallée a6103a08be [IMP] [FIX] website_forum: better karma management for votes
and answers. Also some fixes in answer tagging and edition closing.

bzr revid: tde@openerp.com-20140418132905-ja2rqcc2edqzu3jv
2014-04-18 15:29:05 +02:00
Thibault Delavallée 06776da4a9 [IMP] website_forum: karma management for vote
bzr revid: tde@openerp.com-20140411182254-0wyvzpcqxk4jyqev
2014-04-11 20:22:54 +02:00
Thibault Delavallée b9b087ffb5 [FIX] [CLEAN] website_forum: cleaned and fixed upvote, downvote and favourite
bzr revid: tde@openerp.com-20140411171029-zeqtrko98z1jr3sm
2014-04-11 19:10:29 +02:00
Thibault Delavallée 5a3f68a767 [FIX] website_forum: deleting a comment is back and works
bzr revid: tde@openerp.com-20140411170114-po5bgwc2z2qgs8f0
2014-04-11 19:01:14 +02:00
Thibault Delavallée b6a1359b4f [FIX] website_forum: convert comment to post is back and works
bzr revid: tde@openerp.com-20140411161916-rlobfxosniii66m4
2014-04-11 18:19:16 +02:00
Thibault Delavallée 133038c722 [FIX] website_forum: fixed toggle_correct for setting answers as correct
bzr revid: tde@openerp.com-20140411155622-18bdyddcs6hdln77
2014-04-11 17:56:22 +02:00