Facebook login – read only access

There is no two ways about the fact that FB login is critical for me. No body wants more creds to remember on the internet. But I also want to take steps not to make it too easy for people to post when they might not really need to. and that will also help keep spammers away.

A FB user is an authenticated user by default. So what I have done is create a Role callled Content Creator (or whatever you want) that has more access. I have changed permissions on the four main content types that can be created by users on the site to reflect this.

  • Forums
  • Blogs
  • Research (a custom type)
  • Member Galleries (another custom type)

with the new Role, users can add to these types. But they have to apply for this additional status. There are many ways to do this and using Rules, I believe that it can be automated. I may do that eventually, but for now I am just allowing folks to send me a system message via Drupal asking for access. But this was a really easy way to grant a graduated level of access.

Multilingual Forums

I’m polishing up my site, getting it ready for Production. This site is completely bilingual. The user account is tied to a field that defines their prefered language. English or Spanish. I am using the following multilingual/multilanguage modules. All of these mods are used in one fashion or another. Here are some of the highlights:

Image

  • User defined language in user settings
  • Language drop down to switch back and forth between two enabled languages on the fly for either language.
  • Panel integration of the Bing translator widget (see the blog earlier for more info) to cover externally generated content translation
  • Taxonomy translation and multilingual forum integration with the choice shown below in SS.

what I have for forums allows me to have containers that are common (language neutral, so to speak) and forums that are in either language and can be under any container. So Spanish speakers can see the English forums (and vice versa) and they can translate any content they want via the MS Translator widget. I manually translate as much of the interface as I can and use the localization update to help, but there is simply no way for me to translate the volume of stuff that comes in every day. So, I use the widget. 

Image

Breadcrumbs – Path Breadcrumbs, Disable Breadcrumbs and more

You wouldn’t think that BCs would be such a sore subject, but in Drupal, apparently they are.

I have pretty simple needs for my BCs; I really only need them on the Forums pages. and the ones that come with the core are pretty limited. I think that I have come up with a pretty good workaround.

I am using the Path Breadcrumbs and the Disable Breadcrumbs modules. I use the DB module’s Disable All feature to completely get rid of the core crumbs and the Path mod to set the ones that I do need.

I also looked at Custom Breadcrumbs as well and it certainly has a great install base, but the documentation seems to be really light.

There is a nice CodeKarate video for Path that helped me quite a bit. Frankly, I’m getting a bit tired of slogging my way through modules that are powerful but difficult to implement and poorly documented as well. Drupal is already tough enough.

 

Tokens in a menu – edit the current node without the edit tab

This is a really handy module for me. https://drupal.org/project/menu_token

what this allows me to do is use tokens in menu URLs. What this means is that I can create a simple URL that references content dynamically. and since it is a menu, I can easily place it with panels.

so, I have a URL whose relative path is

node/[node:nid]/edit

I place this on the node view variant page for my specific content type and I now have a movable link that will edit whatever node I am looking at. one link will allow me to edit any node.

the tabs from drupal will allow you to do this of course, but I hate the tabs because they always interfere with my CSS and I use Tab Tamer to hide them. But, I still need the functionality. and with this solution, i can style it pretty easily with css.

Image

Snippets

https://drupal.org/documentation/customization/php-snippets – this is a great part of the drupal site that deals with the concept of inserting snippets of code into your site to do specific things.

https://drupal.org/node/23223 – This is a great article that deals with the mechanics of how to insert the code into your site.

The Best Drupal Hosting Company in the World

I have been running around in circles lately with all sorts of issues. This module actually broke my site:

https://drupal.org/project/save_edit

It will allow you to save changes to a node that you are editing without leaving the node edit screen. but it does this in part by overriding the Panel Page node add/edit screen. and what happened with my site is that I was unable to get rid of its override. This is a big deal for me because I have several variants that use the node add/edit screen from Panels. So I was in a position where I could not remove the override. Even when I disabled the module, uninstalled it and removed it from the code base. Very bad.

I ended up having my hosting company (the WONDERFUL Blackmesh.com) restore the server completely. And I will say that Blackmesh was able to do this in about 30 minutes from the time of request with no issues at all. From 1 AM that morning. Very good. 

So, I am back to the work at hand, and quickly at that.

Panels Ajax Tabs

This module is so cool. Ajax is an awesome way to display/update/refresh content without actual page refreshes. And this module gives you a very easy way to integrate Panels and Ajax

Panel Ajax Tabs – https://drupal.org/node/1796032

I’m really surprised that there aren’t more installs of this awesome module. Anyway, using this, I am able to integrate tabbed Panel Panes (which for me are different Views) using minipanels into an Ajax enabled Pane, of sorts.

This allows me to display several different Views on one screen without having to do page refreshes.