Drupal is up and running but how do I ...?

Contextual Secondary Nav

I am trying to execute a pretty standard nav scheme that employs a static primary navigation bar. Secondary nav would be determined by which primary nav caegory was selected. What is the most elegant method for executing this type of scheme? So far I am having difficulty in getting the section specific secondary nav menu-block that I created to appear on all entries that relate to that section. Any Ideas?

creating user type

I need to have 3 types of users on a site:

Anonymous -- can only view certain nodes
Member -- can view all nodes as well as post comments on them
Admin -- basically a site admin, can do anything

How can i implement this? How can i get finer grade permmissions for users?

Block feed

I have no need for an outgoing feed yet the URL's getting hit very very often. Is there any convenient way to turn off node/feed within Drupal? Or do I need to modify .htaccess?

Making users able to enable/disable comments on their own post

I would like users to be able to modify whether or not people can comment on the posts they make. By default I want comments for all nodes to be Disabled, then the owner is able to set them to Read Only or Read/Write. This is for an online writing community where I would like the poster to be able to accept criticism, or not. I don't want to give authenticated users "moderate comments" to reach this end, because then (as I understand it) they can moderate/edit/delete othe people's posts/comments. That is not desirable.

Re-order links at bottom of stories?

I would like to re-order the links that appear at the bottom of the content nodes, the "read more" and "email this page" and "unsubscribe" stuff.

Currently, there are a couple of links in the way of the "read more" link, which on our site is more important than the others.

I would also like to shorten the vocabulary on some of the links, so "email this page" becomes "email" or some such nonsense.

View my page so you can see what I mean: http://www.cctvcambridge.org

Does anyone have any tips? Thanks!

Overriding the user list pages using phptemplate based themes

Thought it best to start a discussion re: overriding the USER LIST page layouts here, rather than in the handbook.

In response to a question by Steve:

-----------------------------------------------
I used your snippet to display profile. It works fine when I display it in http://www.mysite.com/user/John_Smith. All the profile fields have their label and looks exactly what I wanted. I will look like:

Name: John Smith
City: New York
About me: I am a web designer.

But when I display it as http://www.mysite.com/profile or http://www.mysite.com/profile/city/new_york to list all the profiles, then it does not show the 'profile field labels' and only profile fields are listed . It looks like:

John Smith
New York
I am a web designer
----------------------------------------------

Hi Steve,

I haven't created an override for the user_list pages yet, so I don't have a quick answer to your query.

I think you need to override the theme_user_list function. the example above overrides the theme_user_profile function.

I don't have time to try this at the moment, but, if you try this:

  1. copy the override snippet for the user_profile and add it to your template.php file
  2. before saving the new template.php file, change "user_profile" to be "user_list" eg. instead of phptemplate_user_profile it should read phptemplate_user_list. (do the same for the phptemplate callback)

Pages

Subscribe with RSS Subscribe to RSS - Post installation