This forum is for assistance with theme development.

Template.php - Including a template file

Hi,

In my template.php I am creating a user menu that calls a custom login menu when logged out, in the form of a .tpl.php file.

but this doesn't work

if (!$user->uid) {
return _phptemplate_callback('user_login', array('form' => $form));

this either

if (!$user->uid) {
include(base_path().path_to_theme().'/user-login.tpl.php');

if (!$user->uid) {
echo("This does")

How would I go about including a file?

Tempelate.php

/* Custom top-left login form */
function companion_user_bar() {
global $user;
$output = '';

if (!$user->uid) {
include(base_path().path_to_theme().'/user-login.tpl.php');

}
else {
$output .= t('!user', array('!user' => theme('username', $user)));

$output .= l(t('edit'), 'user/'.$user->uid.'/edit', array('title' => t('edit')));

$output .= theme('item_list', array(

adding link to homepage to header image.

Hi,

The one thing I do not like about most Drupal themes is how they have text-based active links in the header. I would like to do this as most css-based sites do, and add a link to the homepage over a header image.

What is the best way to do this? Also, since my header images stretches across the width of the page, is there a way to map the active link area so that it only is active over the actual logo? Or, would I need to crate a separate logo section in my css?

Here is a sample of the site:

how can i to transformation from an english theme to an left to right theme?

hi
how can i to transformation from an english theme to an right to left theme?

thanks,

Macro Question: Is Anything Possible?

Hi

I have a macro question as far as theme development/the look of a site is concerned. Is anything possible in terms of how a Drupal site can look like?

Can it look like this

http://www.marthastewart.com/bodyandsoulmag/

Any insight is greatly appreciated.

Thanks in advance.

Recent Activity Posting on FrontPage? Modules?

Hi All,

I've been assigned to build a site for a student gov't that will allow each member to have an account and post content to the site, which will act as the central network of communication.

Here is an image of the site design, which will be useful when I begin to explain what I would like to go about doing..

http://www.freewebs.com/jrgirard/studentgovtfrontpage.png

Snippet to show buddylist by pictures and names

Hello,

I need your help, dear people.
I'm looking for Snippet to show buddylist by pictures and names in profile.tpl

like this:

image --- image --- image
name --- name --- name

please help. thanks a lot.
misiek

Pages

Subscribe with RSS Subscribe to RSS - Theme development