Topic: [Module & Snippet] JoCo : Jot Comment tool  (Read 23125 times)

Pages: [1] 2 3 ... 5   Go Down

#1: 15-Nov-2008, 06:11 PM

Moderators

AHHP
Posts: 435

!یک امیرحسین ویژه

WWW
JoCo (Jot Comments tool)
Last version : Module: 0.9.2 , Snippet: 0.9.1.4
On : 2009/01/21


I re-wrote and upgraded JoCo. In new version
  • You can moderate your comments
  • You can moderate comments from your last login
  • You can moderate comments of documents which you have created or published or edited
  • Search in comments by string and highlighting, by webgroups, users, guests, docgroups, documents, between two dates and etc
  • All important elements need permissions to see and managers can set permission, add or remove a user and etc
  • There is summary part for see list of documents which have comments, subscriptions, last comment date and ...
  • JoCo users do not see comments in documents that they have not enough permissions to access them
  • Another view added for manage more comments in a page
  • Manage and modify all Jot calls in TVs, Chunks and document Content (in module).  NEW in 0.9.2
  • And... .


By JoCo snippet you have module in a frontend page, you can set trusted webusers to access to this page and moderate comments. There are some parameters to set permissions for each webuser and set a certain permission for all webusers for example no webuser can edit a comment or access to permission part and ....
To see snippet parameters see snippets codes.
Put JoCo snippet call in a documents with BLANK template.

Also you can see logs of webusers actions in JoCo module


other descriptions,

Hint :
   - JoCo gets value of jot custom fields ONLY from "jot_fields" table. if it find a custom field, search the language file for a string which it's KEY is the custom field label and prints the value of language variables else prints the label of field. you can see some default custom fields below:
      $JoCo_lang['name'] = "Name";
      $JoCo_lang['email'] = "Email";
      $JoCo_lang['website'] = "Website";
      $JoCo_lang['title'] = "Subject";
   so you can add yours easily; for example if you have set userGender custom field in Jot, you can add variable below and see "Gender" instead "userGender":
      $JoCo_lang['userGender'] = "Gender";
   all found custom fields prints automatically.
   
   - JoCo codes are clear but there is another way to custimize output without modify modules codes directly:
      There is customactions.php in joco/inculdes folder. you can add your custom codes in this file to modify output. it is useful for set some data that needs to more codes for example insering FULL NAME of comment owner or update another table on delete a comment and etc.
      It contains 5 functions that each one runs in a LOOP:
         * onBeforeSetOutputRow($row,$tpl) : It runs after comments data collected from "jot_content" and "jot_fields" tables. $row is comment data which is an associative array, KEY is column name and VALUE is column value from "jot_content". $row['label] is another associative array, KEY is "label" column and VALUE is "content" column value from "jot_fields". This function MUST return an array with 2 items, first is associative array that is merged to $row (VALUE of $row['customKey'] is replaced with [+customKey+]  in indv.tpl.html) and second is new row tpl which is replaced with current tpl.

         * onBeforeCheckRow($row) : It runs right before parse comment output and decides to accept (and parse) comment or reject comment. If it returns TRUE comment data will parse and if it returns FALSE current comment will reject.

         functions below run right before UPDATE database and return void :
         * onBeforePublish($comment_id)
         * onBeforeUnpublish($comment_id)
         * onBeforeDelete($comment_id)
         * onBeforeEdit($comment_id)

* JoCo is NOT compatible with Internet Explorer YET - Module works in IE7 - but problems still exit and i need your help to fix it!
--------------------------------------
2008/11/16 : 0.8, German language file added.
2008/11/17 : 0.8.1, Some PHP errors solved; date() function replaced with strftime().
2008/11/21 : 0.8.5, Some styles added to module and a bug fixed.
2009/01/01 : 0.9, Rewrote, fix bugs and add new features + snippet.
2009/01/15 : 0.9.1, Fix PHP4 compatibility and add new event.
2009/01/21 : 0.9.1.3, Fix this error, add possibility to search by webusers, use FURL in snippet (need testing) and... .
2009/03/30 :
  • Module: 0.9.2, <BR> problem and URL hacking solved. Jot Call feature added.
  • Snippet: 0.9.1.4, <BR> problem and URL hacking solved.


Goodluck  Wink

* JoCo_module_0.9.2.zip (235.41 KB - downloaded 412 times.)
* JoCo_snippet_0.9.1.4.zip (226.82 KB - downloaded 306 times.)
« Last Edit: 30-Mar-2009, 08:00 AM by AHHP »

#2: 16-Nov-2008, 03:13 AM


bunk58
Posts: 1,969

David Bunker

WWW
Really good work.
Seems to work perfectly.
At last, a full manager option for Jot.  Grin

#3: 16-Nov-2008, 04:11 AM


Mithrandir
Posts: 86

WWW
Very nice!

You can find a german language file in the attachment.

* JoCo_german.zip (0.94 KB - downloaded 216 times.)
Bye,
Mithrandir

#4: 16-Nov-2008, 08:52 PM

tkfm
Posts: 915

WWW
Great addition to our MODx resource !  Smiley

But I've got warning message like this.
I'm not a coder of PHP so I don't understand the meaning of this message... Embarrassed
I found this in the eventlog of MODx system.

Quote
date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead

#5: 17-Nov-2008, 01:15 AM


mrhaw
Posts: 2,237

modx == freedom

WWW
Christmas is early this year!  Kiss
My playground: http://4up2date.info | Twitter: mrhaw
---> Check out: ReadSpeaker webReader Plugin | Support/Comments Thread

--=[ MR. HAW ]=--

#6: 17-Nov-2008, 02:28 AM

Administrator

zi
MODx Special Forces /
Posts: 3,688

May Peace Be On You

WWW
Thats great AHHP! It was one of much needed addon IMO.

#7: 17-Nov-2008, 04:50 AM

Testers

dev_cw
Posts: 4,218

WWW
This should be in the Resource Repository! Thanks  Grin
Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

Something is happening here, but you don't know what it is.
Do you, Mr. Jones?  -  [bob dylan]

#8: 17-Nov-2008, 07:45 AM

Moderators

MediaGuy
Posts: 726

Mediaguy.eu

WWW
Cool, will test this one soon Smiley
with regards,

Ronald Lokers
'Front-end developer' @ h2o Media

#9: 17-Nov-2008, 08:21 AM

Moderators

AHHP
Posts: 435

!یک امیرحسین ویژه

WWW
Thank you all for testing and reporting errors  Wink

PHP errors in MODx event log solved and date() function replace with strftime(). I tried to solve date_default_timezone_set() error, i have no error now and i hope you have not too.

#10: 17-Nov-2008, 09:41 AM

tkfm
Posts: 915

WWW
PHP errors in MODx event log solved and date() function replace with strftime(). I tried to solve date_default_timezone_set() error, i have no error now and i hope you have not too.
I replaced my JoCo module to version 0.8.1 and errors in the eventlog disappeared !!
Thank you for your updating this module.  Cheesy

#11: 17-Nov-2008, 10:51 AM


bunk58
Posts: 1,969

David Bunker

WWW
I can confirm that tkfm is correct, no more errors.
Thanks a lot for this major contribution to Modx.

#12: 17-Nov-2008, 11:11 AM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,076

The best way to predict the future is to invent it

WWW
Great addition indeed, will test it ASAP and report back with at least a french translation Smiley
.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net

#13: 17-Nov-2008, 11:16 AM


alchime
Posts: 240

WWW
That's just what i was looking for - i was going to use phpmyadmin to do that and. wow cool.
will try and report as soon as possible.  Grin

#14: 17-Nov-2008, 02:09 PM

Moderators

MotSmart
MODx RTL Guru.
Posts: 927

WWW
Good idea Hossein  Kiss am very pleased you'v publicized it.
[Search] [Add-ons] | [MODx Lovers Don't miss this link!]
[Documentation] [Wiki]
[Persian support forum]
[RoadMap] [SVN] [RTL SVN Branch] [Development] [Trac] [FishEye+Crucible] [Confluence] | [My Google Code]
[برای دسترسی به راهنمای فارسی به  » وبگاه مادایکس فارسی « و یا به » انجمنهای پشتیبانی فارسی مادایکس « مراجعه کنید]
A Person is Either your Brother in Faith or Your Equal in Humanity. - Imam Ali.  # Discover Islam. | # Discover Middle East @ PressTV.Creation of Earth and Sky and the birth of Adam
BBC, CNN, FOX, MSNBC: Israeli officials: We don't want to kill (AKA Genocide) innocent people of Gaza. ~ Stupid Me, Myself: So why don't you stop doing so?!

#15: 18-Nov-2008, 08:52 AM

Foundation

rthrash
Posts: 11,575

WWW
Love the module and much appreciated. I mocked up a quick tweak to the UI to make moderating busy sites a bit quicker and straightforward. Here's how a row might look:



The left two checkbox columns represent the bulk publish/delete actions. The icons on the title row would work now as your links do for each post. (FamFamFam.com Icons)
« Last Edit: 18-Nov-2008, 09:01 AM by rthrash »
MODx is a content management framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#16: 18-Nov-2008, 09:09 AM

Administrator

zi
MODx Special Forces /
Posts: 3,688

May Peace Be On You

WWW
I was just testing this (with Ryan) and this is a fabulous module.

@Ryan: I think IP address could be moved to somewhere less visible, since its not a part of critical info needed at first sight.

#17: 18-Nov-2008, 10:14 AM

Moderators

AHHP
Posts: 435

!یک امیرحسین ویژه

WWW
Love the module and much appreciated. I mocked up a quick tweak to the UI to make moderating busy sites a bit quicker and straightforward. Here's how a row might look:



The left two checkbox columns represent the bulk publish/delete actions. The icons on the title row would work now as your links do for each post. (FamFamFam.com Icons)

WOOOW very very nice view! I'm enjoying  Roll Eyes

Your great UI tells that JoCo needs working more. I'll work on it by your idea   Smiley

#18: 18-Nov-2008, 10:18 AM

Moderators

MotSmart
MODx RTL Guru.
Posts: 927

WWW
Seems that Ryan have done something to the UI? am i correct?
[Search] [Add-ons] | [MODx Lovers Don't miss this link!]
[Documentation] [Wiki]
[Persian support forum]
[RoadMap] [SVN] [RTL SVN Branch] [Development] [Trac] [FishEye+Crucible] [Confluence] | [My Google Code]
[برای دسترسی به راهنمای فارسی به  » وبگاه مادایکس فارسی « و یا به » انجمنهای پشتیبانی فارسی مادایکس « مراجعه کنید]
A Person is Either your Brother in Faith or Your Equal in Humanity. - Imam Ali.  # Discover Islam. | # Discover Middle East @ PressTV.Creation of Earth and Sky and the birth of Adam
BBC, CNN, FOX, MSNBC: Israeli officials: We don't want to kill (AKA Genocide) innocent people of Gaza. ~ Stupid Me, Myself: So why don't you stop doing so?!

#19: 18-Nov-2008, 12:28 PM

Foundation

rthrash
Posts: 11,575

WWW
Hello AHHP and MotSmart,

It's just a mockup of how the UI could be to take up less space for sites with lots of comments. In the example post above, the original took up almost double the vertical space. This would really just be a tweak to the outside controls and the individual posts. I didn't have time to tweak the images/css and template.
MODx is a content management framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#20: 18-Nov-2008, 01:34 PM


paulp
Posts: 485

www.Campsites-in-wales Proudly powered by Modx

WWW
Works great and very easy to install,

Thakyou, you've just made my life easier  Wink
Its here at last:

www.campsites-in-wales.co.uk Campsite directory for campsites in Wales UK. Proudly powered my Modx
Pages: [1] 2 3 ... 5   Go Up
0 Members and 1 Guest are viewing this topic.