Drupal is up and running but how do I ...?

php center adsense

I have the adsense module installed and working, but could someone tell me how to make this centered?
print adsense_display("468x60");
I know it's simple for someone but I searched and tried all kinds of stuff and generated nothing but errors. Thanx

Can't override profile page!

I was referring to this snippet here (http://drupal.org/node/26478) and even looked on the thread for help and didn't find my problem.

I have phptemplate installed and I put this in my active theme folder:

/**
* Catch the theme_profile_profile function, and redirect through the template api
*/
global $user;
if($user->uid) // check to see if the user is logged in
{
function phptemplate_user_profile($user, $fields = array()) {
  // Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
  // will be assigned within your template.
  /* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
  }
}

I also created a user_profile.tpl.php with this:

if($user->picture):

Only local images are allowed. print $user->picture ">

endif;

Name: print $user->profile_name
Age: print $user->profile_age
Bio: print $user->profile_bio

When I upload these files to my active theme folder, I get this error:

warning: Cannot modify header information - headers already sent by (output started at /home/tintmag/public_html/community/themes/madness/template.php:11) in /home/tintmag/public_html/community/includes/common.inc on line 192.

Some RewriteRules help pls?

Hi all

I have enabled Clean URLs so my setup currently gives me URLs like http://localhost/drupal/node/13

What i would like to do for some pages is to make them look like plain html pages with meaningfull names

e.g. http://localhost/drupal/node/13
to look like http://localhost/drupal/about-us-page.htm

where to add css class to node content only?

I tried to modify style.css #content, but it not only changed the node content, but also the left column stuff as well.

Could someone show me where to add a new class/id to the node content only?
in other words, I would like to know where

and
gets inserted in the node content is inserted.
i would like to create a new class for node content only. appreciated

tks

How do I limit access to a page node?

How do I limit access to a page node? I'd like only registered users to be able to visit the page. Also, is there a way to get the user's id and name from within a page? Sorry for the Drupal 101 questions - I'm new.

Renamed images folder and now can't delete it (4.6)

Greetings, I tried renaming the images folder and now I can't change it back or delete it. I've gone so far as to delete the whole drupal installation and try reinstalling but now I can't delete the files folder which contains the images folder. It says I don't have permission to do this action.

Do I have any options at this point? Other than deleting my addon domain and re adding it?

Many thanks.
lsabug

Pages

Subscribe with RSS Subscribe to RSS - Post installation