adminblock and FriendsElectric

altano - May 16, 2005 - 22:03
Project:FriendsElectric
Version:4.7.x-1.x-dev
Component:Browser bugs
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

FriendsElectric does not play well with adminblock. I tried looking through the source but I don't know CSS well enough to fix this one.

Screenshot attached.

AttachmentSize
adminblock.gif2.39 KB

#1

Steven - May 20, 2005 - 21:10

I don't use that module. Someone else will have to come up with CSS to make it compatible.

#2

lennart - May 21, 2005 - 17:10

It seems to me FriendsElectric will only show one list per line in the block, after having spent some hours with modifying the style.css I have not come up with anything.

Any ideas anybody?

#3

doubledoh - April 19, 2006 - 04:22
Version:4.6.x-1.x-dev» 4.7.x-1.x-dev

Here's what I did:
bottom of style.css:

#block-adminblock-0 ul li a {
  list-style-type: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
  display: inline;
}
#block-adminblock-0 ul li a:hover {
border:0;
}

Basically, since this is placed at the bottom of the style.css page, it over rides the default line-item class.

Alterations to admin-block module:
about line 52 (comments), this is what mine looks like now:

$items[] = '<div><strong>' . check_plain($comment->subject) .'</strong></div><div style=\'margin:0 0 0 10px;\'>'. format_date($comment->timestamp, 'medium') .'</div><div style=\'margin:0 0 0 10px;\'>'. l(t('node'), 'node/'. $comment->nid, array('title' => $comment->title)) .' | '. l(t('edit'), 'comment/edit/'. $comment->cid) .' | '. l(t('delete'), 'admin/comment/delete/'. $comment->cid) .'</div>';

about line 66 (nodes), this is what mine looks like:
        $items2[] = '<div><strong>'. check_plain($node->title) .'</strong></div><div style=\'margin:0 0 0 10px;\'>'. format_date($node->changed, 'medium') .'</div><div style=\'margin:0 0 0 10px;\'>'. l(t('By %user', array('%user' => $node->name)), 'user/'. $node->uid) .' | '. l(t('edit'), 'node/'. $node->nid .'/edit') .' | '. l(t('delete'), 'node/'. $node->nid .'/delete') .'</div>';

Basically, I've used tags to create line breaks and inserted a little left margin just to make it neat how I like it.

 
 

Drupal is a registered trademark of Dries Buytaert.