Can't login

I have a Drupal website (http://81.206.78.43/zcl/), wich does good work. I can login when i am using Internet Explorer 6.0 or FireFox 2.

To avoid the ugly URL i use a nice one: http://www.zwemclublosser.nl
(On this website i have a very simple frameset, one page is one pixel large, the other wil go to 81.2...)

drupal_set_title

Where is the best place to call drupal_set_title() ?

I was following the template of another module so I could construct a very basic alternative page title system. I figured I would need to call drupal_set_title() but found anything that I called from there just didn't work.

Having a look at some other modules, I found I could either do:

drupal_set_html_head('Some Title');

Or create a separate function and call that from the phptemplate_preprocess_page() function in template.php and set $vars['head_title'] appropriately.

Theme breaks when content updated

I'm having a bizarre problem.

I'm currently developing a website using Drupal 6.0. I've developed the theme and all was good. However, now, whenever I update content on the site - whether via the Drupal admin or directly on the database, the theme breaks.

The first thing to happen is I get an PHP Fatal error:

Fatal error: Call to undefined function menevit_get_mainnav() in /var/www/vhosts/menevit.com/httpdocs/sites/all/themes/menevit/page-front.tpl.php on line 13

This suggests that template.php is not being loaded as the function menevit_get_mainnav() is defined there.

What I do then is revert to the default theme (Garland) and the problem dissapears. This suggests that the issue is indeed with my theme. But where?

Now, I go back and reactivate my theme to see if the problem will just go away :) What happens now is that the stylesheet from my theme is being used, but not my template files.

This persists even if I disable all other themes (so my theme is the only one that is both enabled and default) and set my theme as the administrative theme.

The ONLY remedy to this problem (not a solution) is to restore the database from backup. When I do this, everything is back to normal - that is - until I update some content, at which point the issue starts all over again.

Has anyone experienced anything like this?

Default front page

Basically what this does is makes the URL to a story example.com/node/1 right?

And why can't I change this to anything else? Every time I try it says it's not valid.

Help on hook_menu and page arguments

How do I pass arguments like "www.example.com/example/example2.php" into my function?

when I tried :

Professional graphics/web designer needed

Independent consultant looking for professional graphics/web designer to complement my development skills with the creation and maintenance of client web sites, graphics, logos, etc. A long term working relationship is preferred.

Please include the following information:

  • Portfolio
  • Skills
  • Rates
  • Availability

james at oslx dot com

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x