[META] Work in progress logs

56 posts / 0 new
Last post
[META] Work in progress logs
  • I added the same WYSIWYG bar as in Drupal 8 (ckeditor) - ckeditor module
  • Comments:
    • Deactivated comment titles for all content types (has to be done for each of them, there is no way to do it for all in one shot) admin/structure/types/manage/{content-type} comment settings
    • Added comments notifications - notifications_forum module which itself requires notifications module, itself requiring messaging module. I also edited admin/config/messaging/subscriptions/content to effectively allow notifications
    • (issue) Impossible to delete some spammy comments, like this one by rositagalvezcdvmn (as well as https://xmrmonero.com/node/91, https://xmrmonero.com/node/92 and https://xmrmonero.com/node/93.

      Recoverable fatal error: Object of class Message could not be converted to string in DatabaseStatementBase->execute() (line 2171 of/home/xmrmoner/public_html/includes/database/database.inc).

      Notice: Undefined property: stdClass::$comment_count in comment_node_page_additions() (line 728 of /home/xmrmoner/public_html/modules/comment/comment.module).
      Notice: Undefined property: stdClass::$comment_count in comment_node_page_additions() (line 728 of /home/xmrmoner/public_html/modules/comment/comment.module).
      Notice: Undefined property: stdClass::$comment_count in comment_node_page_additions() (line 728 of /home/xmrmoner/public_html/modules/comment/comment.module).
      Notice: Undefined property: stdClass::$comment_count in comment_node_page_additions() (line 728 of /home/xmrmoner/public_html/modules/comment/comment.module).

  • I added in-place editing (which will be default in Drupal 8), but this is far less transparent than the Drupal 8 version (the issues seem to come from

    Warning: file_get_contents(/ckeditor.js): failed to open stream: No such file or directory in quickedit_requirements() (line 60 of /home/xmrmoner/public_html/sites/all/modules/quickedit/quickedit.install).

    Cleanly done, it could be very nice for tablet editing (Drupal 8) - Quick Edit module, which require Entity API module, Libraries module and Chaos tools suite module.

  • Randomised the carousel (admin/appearance/settings/XMRMonero)
  • Added a contact page (admin/modules) (tutorial)
  • Wiki (I followed these video instructions):
    • freelinking works. Hint: use double square braket for internal link, ckeditor button for external links. Available for Filtered HTML and Full HTML. (freelinking module)
    • (issue) Separate talk page doesn't work yet (talk module)
    • wiki is the only content with revisions. MediaWiki-like diff works, test the results (diff module)
    • (issue) Table of contents generates issues, so it is disable, at least for now (tableofcontents module)
    • Originally, everyone could edit, like in Wikipedia. It got vandalised, so now you must have an account to edit.
    • (issue) Wiki doesn't visually discriminate between a link to a non-existing page (red in MediaWiki) and a link to an existing page (blue in MediaWiki). I do not know yet how to emulate this very useful feature
    • I installed the admin menu, much better than the default toolbar (same video as for the wiki)
    • Added move protection (only administrators can rename a page), automatic redirect (old name redirects to new name), treat underscore as space when looking for a title, link to subpages with URL
  • Blog:
    • Each authenticated MEW member has a blog (adding the MEW role is manual). To blog, click on "Blogs" then Create new blog entry. You can see it later as a unique post, a post in you blog, or a post among all blogs.
    • "Blog entry" is now "blog post".
  • Localisation:
    • Spanish, Dutch, German, Portuguese, French, Finnish and Swedish. More languages added as they are requested. You may have to reselect your language (if your language was not available when you registered.
    • Content is language-sensitive (and this is reflected in the URL) and basic language for a new content (admin/structure/types/manage/) it the one of the current session ((issue) so if you have your session in Russian, the default language will be Russian, even if you intend to write in English, careful!), I still have to check if a user can change his default language. Language-neutral sterns from the idea that "no semantics is better than bad semantics" (i.e. English as default when a post is not in English) but since I add language in URL, language-neutral would probably confuse more than anything else.
    • Language updates are now checked weekly (previously: never).
    • Language is checked according to user settings. If none, according to browser. If still none, default is English.
    • There is a admin_language module for D7 which is rendered obsolete by D8. Since separating frontend language and backend language is not a high priority, I just mention it in passing. See Drupal 8 multilingual tidbits 4.
  • URL handling:
    • Clean URL.
    • improvement processing of slashes in the URL.
    • (issue) Direct linking to a commen is still problematic (comment/54#comment-54 instead of http://xmrmonero.com/forum/en/meta-work-progress-logs#comment-54).
    • xmrmonero.com is now class B according to no-www (site i down for the moment, so we could not register it).
    • Issues with translation: original english text has the right URL (page/en/moneroblock) but the translated page, accessible from a link in the original page, doesn't (node/165, even though pathauto has page/pt/moneroblock).
    • There is also the not-so-URL-related issue of link in the UI. We surely don't want all the translation to appear together like in https://xmrmonero.com/faq-page where English, Portuguese and Dutch are mixed together. Similarly, what about links in main menu? For now, the English link for Moneroblock was added manually. Should a second, Portuguese menu created too?
    • Installed translitteration module to avoid accents in URL. In synergy with pathauto (Transliterate prior to creating alias). Exmple with É preciso executar um nó completo para ter uma carteira pessoal/offline?
    • Changed the URL scheme. It is not more (content type)/(language)/(title). Now it is (content type)/(title of the first version)/(language of the present version). To do this, the code in replacement patterns is faq/[node:source:title]/[node:language] (for faq) Then English version won't have /en at the end. For language-neutral, [node:language] is replaced by und (because it usually is an oversight, not deliberate like an animal sound).
      Two probiems arises with non-English original content:

      • Original content not in English will have language appended whilst it is the original content. I would prefer to have a fix now, but finding the solution when the problem arises is good enough™.
      • node:source:title] only works for translation, original content must have [node:title]. The only fix I can think of is to always start with English and only after you traaslate - even it if means creating a dummy English entry and unpublish it (the translation can be published whilst the original is unpublished)
  • Users:
  • Spam:
    • Mollom installed, but doesn't seem to deliver
    • Spam registration (hopefully taken care of with In riddler module (thank you OStraining), which has two major advantages over regular CAPTCHA:
      • more semantic or even human-readable (don't invoke Cthulhu anymore)
      • more bot-resistant, since it requires actual intelligence (question that requires googling + you create your own)
    • In the past, spam registration had to be taken care of manually (and reported as "spam, unsolicited adversising" with Mollom when cancelling the account (beware, reporting can only be done in the general users window, not be editing a singular user).
    • (issue) For reasons apparently tied to the inability to delete their content (see above about rositagalvezcdvnn), users lydaheronrvtlxoj, sofiaflintkgrbrn, terrancexbzbjhzileld and rositagalvezcdvnn cannot be deleted ("An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=171&op=do StatusText: Service unavailable (with message) ResponseText: Recoverable fatal error: Object of class Message could not be converted to string in DatabaseStatementBase->execute() (line 2171 of /home/xmrmoner/public_html/includes/database/database.inc).").
    • Lot of spam, had to be taken care of manually. Sad.
  • Text formats:
  • Forum:
  • Added scheduler module to schedule publication of new contents. Helps smoothening publication, instead of three the same days and none later (merely using a date in the future would not achieve this). At least for the moment , it is only available for news (article content types), that is for official stuff.
  • There should not be more than seven elements on a menu and the main menu is getting bigger than this. If you are not connected, you have. Home, Wiki, Blog, Wiki, News, FAQ, About us, Contact, Login, Register. Ten items! I decided to regroup some elements (I had to install the menu_firstchild module to have empty container). Now, there are only Home, Community, News, FAQ, About us, Contact, Access. I plan to remove Home and to add Services (a new opportunity was proposed to me today on IRC for services; stay tuned).
  • Cleaning unused modules. Also installation of module filter module for easier access to modules in the administration panel (and a nicer interface too).
  • I removed the home tab (one will just click on the logo to go to front page). One less tab on the menu.
  • Book: first experiments with this content type. Changed "book page" to "book chapter". Rationale: each content type has a uniquely name unit. Basic page's page, Blog's post, FAQ's entry, Forum's topic and now Book's chapter.
  • Drupal 8 testing is on the way. Drupal 8 seems to differ more (and for the better) from Drupal 7 than Drupal 7 for Drupal 6 or Drupal 6 from Drupal 5. Drupal 8 is way better but considering the amount of changes and the heavy inertia peculiar to Drupal, upgrade will take time, probably months.

This is a comment. Not sure if I will receive a notification, since I am the owner. This comment is on another thread as the one I asked to be subscribed to but still on the General discussion forum.

If I recevied a notification for this coment, it means that:

  1. I receive notifications for my own comments (doesn't make sense)
  2. I receive notification for all the general discussion section, not only for the thread I asked for (doesn't make sense either, but at least would be consistent with the instructions on the subscription button). Maybe there is something to do with containers vs forum.

I also edited admin/config/messaging/subscriptions/content to effectively allow notifications

Try to add a wiki, but the result is not that great. Check the OP for more explanations.

I installed the admin menu, much better than the default toolbar (same video as for the wiki)

Replaced https://xmrmonero.com/?q=forum"  by "forum".  Note: This is separate from clean URLs. It just enables a relative link.

Thanks, it makes sense now.

Three new additions:

  • Each user has a blog. To blog, Connect, click on "Hello name" on the right-top corner. This will lead you to your home page, where you can click on "Add content", then "Blog entry". You can see it later as a unique post, a post in you blog, or a post among all blogs.
  • Articles and Blogs are now language-sensitive. Default is "language neutral", I still have to check if a user can change his default language. Language-neutral sterns from the idea that "no semantics is better than bad semantics" (i.e. English as default when a post is not in English). For wiki pages, this is a bit more difficult if I we cannot enforce one particular language per namespace. If it is possible, then wiki.en.xmrmonero.com could have English as default, but if it is not possible, then I prefer not to have wiki.xmrmonero.com as English - I prefer language-neutral.
  • I added Spanish and Dutch localisation. You may have to reselect your language.

Added tableofcontents module to the Wiki content type

Installed geshi filter.

Installed .htaccess file to enable clean URLs and enabled clean URLs. Clean URLs are currently working.

Note: Clean URL test is providing a false negative.

Monero.biz and www.Monero.biz are pointing correctly for A record to 208.99.113.224  from external DNS for both https and http. No MX (mail) records pointed. Note: We do not anticipate recieving email so this is not strictly required. Outgoing email will still use xmrmonero.com

No other subdomains of Monero.biz are pointed to 208.99.113.224

Status report is still generating errors including http: request status that I am currently investigating.

Do you have this fixed? I admit I did not check.

Error corrections etc.

The http_request_fails error has not appeared after I completed all the software upgrades at the server level on January 10. The server is also much more responsive. I will keep monitoring this.

CKEditor is installed. Quick editor I disabled since it requires a custom build of CK editor. It just requires some time for me  to figure out the install file and info file etc to install a custom module in Drupal.  I am postponing this until after the Legal / TOS / privacy is done.

I recompiled Apache to enable Mbstring for proper Unicode support.

Added PECL upload progress.

The status report is pretty clean now.

Also installed Internationalization https://www.drupal.org/project/i18n

 

I managed to reproduce the error and traced the error to the Message Notify Example module which I disabled. After which I am able to post this message.

The following error is generated when I delete a post. The post is deleted 

Recoverable fatal error: Object of class Message could not be converted to string in DatabaseStatementBase->execute()

So I got Forum and comments back up but this is not entirely fixed I am trying to understand Entity collector as Message depends on it and no relations are set up, as a possible source of this problem

Installed Drush

Look at this page

http://xmrmonero.com/faq/en/do-i-have-run-full-node-keep-personaloffline...

dEBRUYNE translated it and there is a Nederlands button. But if you click on it, you only get http://xmrmonero.com/node/83, instead of http://xmrmonero.com/faq/nl/moet-ik-een-full-node-laten-lopen-op-mijn-co.... The latest link it the one that is autogenerated (see the properties of the page, if you have access), but I can't get it to work :/

I changed the behaviour in http://xmrmonero.com/admin/config/search/path/settings so that slash in a title becomes a separator. Before that, it was just removed with effects such as this

How can I help/donate/contribute? becoming http://xmrmonero.com/faq/en/how-can-i-helpdonatecontribute. Now it is the much nicer (both for the eyes and SEO) http://xmrmonero.com/faq/en/how-can-i-help-donate-contribute

Anonymous users can now see profiles

Profiles have more data, like first and last name, bio and Monero address and payment ID.

Example: https://xmrmonero.com/users/david-latapie

Wiki. Originally, everyone could edit, like in Wikipedia. It got vandalised, so now you must have an account to edit.

Enabled permissions:

Node > FAQ entry: Edit any content (Presents the 'Edit Answer' link at the bottom of the answer)

Node > FAQ entry: Edit any content (Presents a link in the status column in the translate tab. This link opens the edit content form with the language combobox disable and with the intended language selected)

I don't understand, can you elaborate?

Added freelinking to the Full HTML text format, because I am constantly frustrated with Filtered HTML text format's limitations - I'm even considering making Full HTML default.

Added <s> to the list of allowed tags in Filtered HTML. Without this, the strike button in ckeditor was unusable in Filtered HTML (you had to move to Full HTML). I consider it as a bug and reported it.

Because of a stupid copy-and-paste (thus, human error by yours truly), any new wiki page had forum in its URL, instead of wiki. Now fixed (including retroactively).

You can now have a signature.

Deactivated comment titles for all content types (has to be done for each of them, there is no way to do it for all in one shot) admin/structure/types/manage/{content-type} comment settings

 

Added move protection (only administrators can rename a page), automatic redirect (old name redirects to new name), treat underscore as space when looking for a title, link to subpages with URL.

Reverted to admin approval because of spam registration, some even preventing deletion of spam.

Can someone look for a way to move https://xmrmonero.com/faq-page to https://xmrmonero.com/faq? This announcement on the community FAQ is a hard reminder of this URL issue.

Thanks.

Spam registration (hopefully taken care of with In riddler module (thank you OStraining), which has two major advantages over regular CAPTCHA:

  • more semantic or even human-readable (don't invoke Cthulhu anymore)
  • more bot-resistant, since it requires actual intelligence (question that requires googling + you create your own)

(issue) I can't find how to add a profile picture after registration.

Added video_embed_field module, presently only for the blog content type. Example use: transfer cryptos by  sound.

Added scheduler module to schedule publication of new contents. Helps smoothening publication, instead of three the same days and none later (merely using a date in the future would not achieve this). At least for the moment , it is only available for news (article content types), that is for official stuff.

"Blog entry" is now "blog post".

Should we drop the carousel? Arguments make sense

shouldiuseacarousel.com

There should not be more than seven elements on a menu and the main menu is getting bigger than this. If you are not connected, you have. Home, Wiki, Blog, Wiki, News, FAQ, About us, Contact, Login, Register. Ten items! I decided to regroup some elements (I had to install the menu_firstchild module to have empty container). Now, there are only Home, Community, News, FAQ, About us, Contact, Access. I plan to remove Home and to add Services (a new opportunity was proposed to me today on IRC for services; stay tuned).

I gave the Basic page: Edit own content permission to authenticated user without giving them the Basic page: Create new content permission. What does it mean? That users cannot create a page but if an admin created it for them and change the author accordingly, they can edit the created page. Use for projects that have one page for them, without having to go through the nighmare of create one role per person.

First use case: Bobbax with cryptocoin-dice (with both a French and an English page, although there is an issue with the French URL).

Uninstalled:

Backbone
Rules
OAuth
Organic Groups
Entitiy Refrence Prepopulate
CTools Ajax Example
CTools Plugin Example
Variable Example
OG Example
Entity Reference Example
Message OG Example
Migrate Example - Oracle
Migrate Example
Migrate_Example_Baseball
Rules Translation

Note: Files may still need to be deleted manually so they still show in the modules page

 

 

Deleted files to complete removal of above modules

Installed Module Filter

I removed the home tab (one will just click on the logo to go to front page). One less tab on the menu.

Upgraded RedHen to latest version

Book: first experiments with this content type. Changed "book page" to "book chapter". Rationale: each content type has a uniquely name unit. Basic page's page, Blog's post, FAQ's entry, Forum's topic and now Book's chapter.

  • Issues with translation: original english text has the right URL (page/en/moneroblock) but the translated page, accessible from a link in the original page, doesn't (node/165, even though pathauto has page/pt/moneroblock).
  • There is also the not-so-URL-related issue of link in the UI. We surely don't want all the translation to appear together like in https://xmrmonero.com/faq-page where English, Portuguese and Dutch are mixed together. Similarly, what about links in main menu? For now, the English link for Moneroblock was added manually. Should a second, Portuguese menu created too?

Added Finnish and Swedish translations, since we now have a translator.

From now on, I will move my interface in French, for better debugging. I encourage other non-English contributors to do the same and report issues here. I this is a missing translation, you can fix it yourself and upload it transparently to the drupal translation server, thanks to the llocalisation client module I just installed.

I managed to change the language for mails and for CKeditor, but the interface is still in English.

Language updates are now checked weekly (previously: never).

Pages