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

Broken Links after Turning on Gallery 2 URL Rewrite

After turning URL Rewrite on from Gallery2 (non-embedded ), links were broken. I canoot login to Drupal now either. I tried to uninstall URLrewrite and that didn't help. I have looked in the forums on Gallery2, but it seems my problem may be beyond the scope of the issues listed there. I would appreciate any help!!

My site is setup like this:

www.domain.com/home/gallery2. drupal is in the "home" dir.

I am running Gallery 2.0.2 and Drupal 4.6.3

Is someone trying to hack my site?

I'm running Drupal 4.6.6, and in the past few days I have noticed the following php error showing up in the watchdog:

watchdog queries slowing down administer page - but table is empty

After talking to my hosting company this morning about why my administer page was so slow, they suggested that watchdog queries were the major cause. I've emptied the watchdog and accesslog tables, but using the devel.module I'm still seeing huge lag times for watchdog queries (these are on an empty watchdog table). Is there another table I should be clearing? Any ideas on why this is happening?

1082.05 0 _watchdog_get_message_types SELECT DISTINCT(type) FROM watchdog ORDER BY type

0.41 0 drupal_lookup_path SELECT dst FROM url_alias WHERE src = 'admin/logs'

Order of applying permissions in Taxonomy Access module

Hello! I absolutely love the Taxonomy Access module and the ways in which it can be used universally and easily to do access control across a site. I'm using it extensively for the membership management of my site. However, I am using it with other modules and add-ons (AMember for paid memberships, Userpoints to allow users who participate more to gain various levels of access to the site, etc.), and I am finding it very difficult to get all this working smoothly given that TA applies DENY after ALLOW.

An example: role1 is setup with limited access, role2 with increased access, then role3 with full (paid) access. A user registers and then works their way up to role2 through Userpoints. But now, Userpoints will have to remove them from role1 and add to role2, otherwise the DENY permissions in role1 would take presidence. Then, the role2 user decides to pay for access, and now AMember has to drop them from any other groups with DENY permissions before adding them to role3. You can see how this problem adds complexity and would require a lot of modifications to other modules.

I'm not sure why TA uses this order (or what deep logic would be affected by changing it around), but I really need to have the more permissive permissions have the highest priority so roles can be stacked. I am new to Drupal and my PHP skills are not very advanced, so I was rather lost while looking at the module code. I'm hoping someone can offer advice on changing the permission order around.

Newbie question: how to override a theme function

Being very new to Drupal, I'm trying to figure out how to realize a custom layout from another site in Drupal. This layout includes menu entries which are displayed as strings on an image background.
As of now, I have copied the bluemarine theme to a new folder called "sbc" and changed some entries in style.css. Now I will have to override the default menu rendering functions from menu.inc.
If I get this right, I will have to write functions called "sbc_menu_item", "sbc_menu_item_link" and so on to override the standard menu rendering.

Pages

Subscribe with RSS Subscribe to RSS - Post installation