4

I would like to add a Facebook style or StackExchange style top navbar to my site. It should show the username, mini profile pix, userpoints, search box and a few other links.

Is there a module for that?

closed as off-topic by kiamlaluno Mar 29 '16 at 19:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking to recommend or find a book, tool, module, theme, distribution, tutorial, or other off-site resource are off-topic for Drupal Answers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

2

I don't find any module does that specific purpose of making top bar. It is usually done by custom themeing. Basically, you add a new region to your theme. For example, You define a new region called "topnav" in .info; code the markup in template.php and .css files. Then go to block administration page, assign stuffs to the topnav region.

1

I have also wanted to do this, I have edited the "mix and match" theme but this should work on any theme in theory.

edit the page.tpl.php

add the following code at top of page

<head>
<style type="text/css">
#userbar {text-align:right; margin-right:auto; margin-left:auto;}
</style>
<?php global $user;
$uid = $user->uid;
$points = userpoints_get_current_points($uid);
?>
</head>

this makes your links right aligned and declares $points for the user logged in.

to add the content you also add the following (position this on the page where you want your bar to appear, ie in the header).

<?php if ($user->uid): ?>
<div id="userbar"><a href="user"><?php print $user->name; ?></a> Points: <?php print $points; ?></div>
<?php endif; ?>

you can also add other things to your bar as required :)

0

There is a great Nav Bar module called Mobile Friendly Navigation Toolbar:

A very simple mobile friendly navigation toolbar introduced as part of the Spark project to solve mobile editing problems with the Drupal 7 shipped toolbar, that is not very friendly to small screen sizes.

This module is only for Drupal 7, though.

Not the answer you're looking for? Browse other questions tagged or ask your own question.