admin access help please

Events happening in the community are now at Drupal community events on www.drupal.org.
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.

nodes not sequential?

NewCreation's picture

Is there a way when making new pages we can assign a node number instead of it automatically assigning node/1, node/2, node/3...? I have a site with around 1500 nodes and am going to use most of those pages in a new D7.22 install. I'm sure many people have bookmarked many pages so would like to use the same node/#. Alias would not help because so many pages and Drupal assigns a number anyway. Thanks in advance.

I have never heard of a way

daniel-san's picture

I have never heard of a way to to override the node id. Matter of fact, it seems like something that you shouldn't have access to so that you don't have conflicting nod ids.

nodes not sequential?

NewCreation's picture

Thanks, Daniel. Any suggestions?

one thought is to think in

daniel-san's picture

one thought is to think in terms of the path that people bookmarked rather than the node id. If the other site is already using Pathauto and using urls like www.example.com/about-us rather than www.example.com/node/5, then I don't think it would matter. You would then still have the same url alias for each page and it wouldn't matter about the node id of the page.

I may be not understanding your question, but I wouldn't be worried about the node id, but rather the path alias staying the same.

With around 1500 pages, most

NewCreation's picture

With around 1500 pages, most of them do not have an alias. So they would be bookmarked like www.example.com/node/1400. Just trying to head off the complaints from all points around the country saying the page is not found or is different. No matter how much I put out a notice that page numbers may be different, there may be some that don't see it.

Fresno

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: