January 27, 2008

XHTML Valid Nested-List

Filed under: XHTML — Soleer @ 9:39 pm

So, I began testing all of my sites for XHTML compliance. I noticed that some of my nested lists were not validating. They all displayed properly, but (*gasp*) they weren’t valid XHTML. Here’s what I found the problem was, and the resulting solution: (more…)

January 7, 2008

Control Drupal Forum Access by Role

Filed under: Drupal, PHP — Soleer @ 9:56 pm

We are developing an online community with forums which need to be private (only accessed by the members of the community).  Unfortunately, the forum.module for drupal allows anyone with ‘access content’ privileges to access the forums.  Obviously, we want visitors to be able to view the pages and almost all other content, but we want the forums to be private. 

There is a module called Forum Access, which enables great control over forum access, but if used to disable access for visitors and other roles, these users will still see a Forum menu item, and if they click on it they will see a “No Forums Defined” message.  This will undoubtedly give some people the wrong picture.

With 2 simple edits to the forum.module file, we enabled the exact functionality we were looking for: Control Forum Display using Access Roles, and Hide the Forums for those not authorized.

On line 41 of the forum.module file:
‘access’ => user_access(’access forums’), //changed from ‘access content’ to ‘access forums’ <- Our own defined permission

On line 131 of the forum.module file:
return array(’create forum topics’, ‘edit own forum topics’, ‘administer forums’, ‘access forums’); //added ‘access forums’ permission

Now all we have to do is go to: Administer >> User management >> Access control, and select the checkbox next to ‘access forums’ (under forum module) for each of the roles that we want to give forum access to.

Who we are

Explore our history and character.

If you've ever been on a blind-date, odds are great that you know how disastrous "jumping before looking" can be. Feel free to do some online stalking here before you contact Soleer.

What We Do

"Girls only want boyfriends who have great skills." -Napoleon Dynamite

While we aren't looking to be your boyfriend and might not have "nunchuku skills," we do offer a number of other services and solutions to assist your organization.

What We’ve Done

As we say in Texas, "This ain't our first rodeo." Take a look at a sampling of some of our masterpieces, from logo design and brochure creation to webpage design and online community development.