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

PHP and forms within nodes...

Hello all,

I'm using Drupal as an aplication framwork to become the new front
end to a database. It works really well for what I have wanted to do so far
but I'm having problems passing variables to the php scripts in the nodes.
eg: I have a bit of php in the body of a node (set to php):

Can I just empty the 'sessions' table?

The sessions table for my blog has 1143 rows right now. I am not sure but I think the number is a bit too high. My blog receives around 220 hits per day and is a very low-traffic site.

Why are there so many rows?

I am thinking of emptying the table. That will cause all logged in users to log out. Is there any other side effect I am not aware of?

Thank you.

How can I protect attachments (node privacy byrole + attachment + filemanager)?

Hello,

I'm using node privacy byrole.module to make a couple of nodes only available for authenticated users. Anonymous user shouldn't have access to this nodes.
Furthermore I've enabled attachment.module and filemanager.module instead of upload.module.

admin/settings (only important settings):

  • Clean Urls: enabled
  • Cache support: disabled
  • File system path: files
  • Temporary directory: /tmp
  • Download method: Private

admin/settings/filemanager (only important settings):

All directories are created (chmod: 755).
I'm testing at a fresh installation of Drupal (4.6.3.).

If I attach a file to a node which is only available for authenticated users, the links has the schema (# = node id):
http://domain.com/files_public/active/#/file.ext

The problem: Though anonymous users can't look at the protected node, they have access to the attached files, if the users know the direct link.

Does anybody knows how to protect attachments in protected nodes??

With the help of upload.module this is possible:
The link looks likes http://domain.com/system/files?file=file.ext and by restricting the access to the physical directory "files" (chmod: 700), the file is only available for certain users.

i8n and primary links

Hello All,

I am wondering how to traslate the primry links in a multilingual site (eu, fr, de)...
Is it possible to do this using the i8n module or my implementing some menues, etc...?

What do you think?

thanks
Diman

Submenu and dropdown menu in Leaf theme

Hi,
Does anyone have a solution for a dropdown menu for the tabs in the leaf theme? In the dropdown menu I would like to place links to static pages. The tabs categorize these links.

If you look at this: http://www.alistapart.com/d/hybrid/hybrid-4.html this would be the perfect solution, but I can accept a regular dropdown.

I've searched on the forum but couldn't found anything useful. Any useful thread?

Taxonomy and different styles

I've not so far delved into the murky waters of taxonomy etc, but I fear that I might have to now.

I'm building a site that is all books, but for one book ('Projects') I'd like to be able to style different parts differently. The Projects page will have 4-5 drugs programmes, 2-3 youth initiatives and so on. I'd like all the youth projects to be styled slightly differently to everything else and so on.

Is there an easy/quick way to this? I'd like not to have to get to grips with the whole thing if I don't have to.

Pages

Subscribe with RSS Subscribe to RSS - Post installation