admin access help please

NewCreation's picture

I did something stupid. On one of my clients' sites the scholarship application process reached a deadline so I was unpublishing some pages. I also attempted to make the log in block on a Sidebar first not visible to anonymous since it is not needed at this time and would only confuse. Stupidly, I logged out to test it, and now I can't find my way back into the admin area. I told you it was stupid. Please help.

Comments

Did you try

yes

NewCreation's picture

Yes, I tried /user and every other I could think of like /q=user, /admin. I can't remember the right way back in. It shows HTTP 404 not found.

I Got In!

NewCreation's picture

I got in! It was /?q=user/1

Configure block

NewCreation's picture

Another question while I'm at it, please. I'm looking for a setting that is set one way on some of my sites and another on the others. While in admin and on a page there is a way to get into configuring a block that looks like a cogwheel with a drop down of: configure block and whatever is appropriate for that block. I can't see where to turn that on for the sites that it is not set that way. Thanks in advance.

Check block.tpl.php

justgable's picture

Check the block.tpl.php file in your theme and make sure you have the $classes variable in the parent div. This is what mine looks like:

<div id="<?php print $block_html_id;?>" class="<?php print $classes;?>"<?php print $attributes;?>>
  <!-- block code -->
</div>

If it's still not showing up make sure you're not overriding the CSS that is meant to style it.

Again block.tpl.php

justgable's picture

Also I just realized that including the code in your div with $title_prefix and $title_suffix is required as well.

<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php print render($title_prefix); ?>
  <?php if ($block->subject): ?>
    <h4<?php print $title_attributes; ?>><?php print $block->subject ?></h4>
  <?php endif;?>
  <?php print render($title_suffix); ?>
  <?php print $content;?>
</div>

The cogwheel that shows on

daniel-san's picture

The cogwheel that shows on blocks and nodes is there by default in sites that are built in Drupal 7, but not in Drupal 6. Could it be that the site that does not have this feature is built in Drupal 6?
I haven't looked around to see where you would turn that on or off in Drupal 7 since I appreciate it being there so much.

Dan

All the sites are in Drupal

NewCreation's picture

All the sites are in Drupal 7.12, all originally in Drupal 7, never 6. Come to think of it, the main huge site that is the one I'm wanting to change might have started in D6 before my time. Thought there must be some setting somewhere for how the admin looks. Checked around in appearance and themes but found nothing yet. I'd appreciate if someone could find it. Thanks.