Can not log back in after taking the site offline.

I am learning to use Drupal 7 on a local installation.

After taking the site offline to change a variable in the php (5.3) configuration file, and then clicking on the Go Online link of the admin page, I have been locked out (keep getting the site under maintenance page).

I tried adding the following text to the settings.php, but the I get HTTP 500 internal error message:

In D7, how does one create terms on hook_install if hook_taxonomy_default_vocabularies is used in the same module?

I'm attempting to create taxonomy terms in a module that provides the vocabulary needed to create these terms.

The issue I'm having is the vocabulary is not available upon install.

My module implements hook_taxonomy_default_vocabularies. I would like to create these terms in hook_install.

What is the best way to create these terms? ( no code needed, only direction )

~~~

Solution:

Move taxonomy vocab creation to hook_install.
Remove feature export.

Customizing book navigation block

Hi,

This may be a simple question. I need to create a custom block that shows a simple book navigation widget, showing only "previous book page", "next book page" and "root page". I considered two approaches, but none of them worked so far.

  1. Create a custom block from the block admin page and use the PHP filter.

    Question : What are the available variables and how to retrieve them ? Do I need some special processing to set the ones I need ?

Path auto & user name tokens

I am setting up patterns for a content type. I would like to use the username and the node title for this. I get an error mentioning that i am using the username in the pattern. Is there a way for this to work?

Site name=www.mysite.com
Username=Myname
Node title=page1

desired pattern-www.mysite.com?q=/myname/page1

Major Security Exploit

I am a developer with 3 drupal sites currently in development and 2 up and running. It appears that 3 of my development sites have been hacked by the same group and my two ones that I am not working on haven't. Of these 3 development sites, 1 is on its own dedicated server, 2 are with dreamhost (but with separate accounts). Each has its own set of usernames and passwords both for the admin and ftp.

page layout

Hi, I have a number of videos posted on a page, but what i really want to do is to have one video player with a list of videos at the side so the reader clicks on anyone and it plays. www.icreate.vc

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x