hide the node header

Asked by Ddorda

Hello.
I want to hide the node header (http://img218.imageshack.us/my.php?image=headere.png) from any guest.
how do i do it?
thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
UD Theme Edit question
Assignee:
Michael Lustfield Edit question
Last query:
Last reply:
Whiteboard:
Looking into this
Revision history for this message
Michael Lustfield (michaellustfield) said :
#1

Here you go -

michael@kabbalah:~/ubuntu-drupal-dev/ubuntu-drupal$ cat question-69144.patch
=== modified file 'template.php'
--- template.php 2009-04-17 02:07:43 +0000
+++ template.php 2009-04-29 14:25:11 +0000
@@ -555,6 +555,10 @@

 function center($vars) {
   $tabs2 = menu_secondary_local_tasks();
+ if (!$vars[user]->uid) {
+ $vars[tabs] = "";
+ $vars[title] = "";
+ }
   if ($vars[title]) {
     $center .= '<div id="node-title" style="margin-top: 3px;"><div class="inner"><span class="corners-top"><span></span></span>';
   }

Revision history for this message
Ddorda (ddorda) said :
#2

how do i use this? where do i put it?
i need to replace it with the center function in the code?

Revision history for this message
Michael Lustfield (michaellustfield) said :
#3

This is a diff file. You can use the diff command to apply this code.

You can alternatively just open the template.php file and add the four lines that start with a +.

Can you help with this problem?

Provide an answer of your own, or ask Ddorda for more information if necessary.

To post a message you must log in.