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

Script needed to determine if on own user page

I'm throwing together a custom block, and need to determine whether I'm on my own user page or someone else's. Any help would be appreciated.

Yet another thumbnail problem

I just installed a brand new install of drupal and the image module -- latest version verything. I moved the imagemagick.inc (I know that's not what it's called, but the right file) to the includes folder. I manually created all the directories and chmod'd them to 777.
I STILL cannot get it to create thumbnails.

Also, it can't be a problem with my host, I have two sites with this host, the other I created in July -- that one worked....

Any ideas?

(I have searched EVERYTHING and I haven't found a solution...)

help adding if/then php logic to displaying a flexinode image?

I have a flexinode template that pulls an image with the following code:

simple_access install error

I did a search on this error but came up with nothing.

I am using Drupal 4.7 and am getting an error when trying to setup the database for simple_access.
When I go to http://www.mysite.com/?q=admin/access/simple_access/setup the error displayed is:

Fatal error: Call to undefined function: drupal_get_form() in /home/.ocitar/xxx/xxx.xxx.com/modules/simple_access/simple_access.module on line 426

Wanted: Quick PHP help: Small path argument

Hi everybody,

can someone help me with a quick PHP argument?

I've looked at Customizing themes for node types, terms, sections, paths, and front page but I can't really make head or tail of it.

In short, I need this translated to PHP:

If path is 'apples', 'pears' or 'bananas',
then don't print  <h1 class="main-title"><?php print $title; ?></h1>,
else  <h1 class="main-title"><?php print $title; ?></h1>

or if that isn't doable, something like this:

If path is 'apples', 'pears' or 'bananas',
then <h1 class="hide"><?php print $title; ?></h1>,
else  <h1 class="main-title"><?php print $title; ?></h1>

and I can use CSS to hide the h1 title on the fruity paths.

A note: I'm using paths like "www.example.com/bananas or the unclean version if I can't get the clean to work, which I will try right now. I don't think that matters for the php though.

A second note: I've twiddled with that title before and need this incorporated into the page.tpl.php, so that the snippets can work after another or if you can put them together.

		<?php if ($page == 0) :
			if ( arg(0) == 'blog' ) { ?>
				  <h1 class="blog-title"><?php print $title; ?></h1>
			 <?php } 
				else { ?>
				      <h1 class="main-title"><?php print $title; ?></h1>
					<?php } ?>
				<?php endif; ?>

Hope somebody can take a few minutes to look at this!

employee directory pulled directly from all new authenticated users

Hello, all!

I'm hoping I can find a simple solution to my dilemma...I've been searching around here and cannot seem to find a clear cut answer to my problem. I want to create a page called "employees" which is simply a link to all authenticated users' profile pages. I want this list to automatically add new employees each time a new user is added. I've read enough to know I need flexinode and taxonomy_dhtml and views enabled. Now that I have them, what do I need to do to get this working?

Thank you for any advice you can give!

Amy

Pages

Subscribe with RSS Subscribe to RSS - Post installation