This forum is for assistance with theme development.

Need help for coding perfectly in page.tpl.php file for hiding sidebar

Hi mates,

I need some help for coding page.tpl.php file for hiding sidebar on specific content types.
I made it happen by myself but because of my little knowledge I need your help for proper coding.

My code is like this:

if (empty($page['sidebar_first'])&&empty($page['sidebar_second'])):

Bartik logo size and align, help please

Hi,
I'm developing a site using Bartik theme.
My logo's size is 1290x550 px so it should cover all the header area and stay behind the main menu.
By simply uploading a new logo it looks like this:
http://img703.imageshack.us/img703/9841/bartik1.png

Is there a way to make it look a little bit like this via CSS?
http://imageshack.us/a/img687/8485/bartik2.jpg

Thank you in advance.

WSOD on a block configuration page

Like in a topic. Sometimes shows also internal server error.
Increasing memory limit in setting.php and htaccess doesnt work. I dont have access to php.ini... Im on shared server, my hosting answered that I should optimize my scripts...

Anybody can help me?

Drupal Blog post add approval before publishing

Hi to all, I'm having a hard time figuring out how to add approval function for the blog posts submitted by my clients/members of the site.
What i want to happen is that every time they add a post on blog it should be under pending state needs approval then it will notify me via email or something that someone has submitted a blog posts so that i can review it and approve.
anyone tried doing it ? please help i need this on my site badly.

Thanks in advance guys.

Blocks appearing in the wrong area, regardless of theme.

I've been working on a couple websites for a while now, and I've run into a strange issue that I can't seem to resolve. It's probably something simple I'm missing, but I can't figure out what's gone wrong. I have two websites running the same theme (web110), and within those websites I'm posting embedded videos from YouTube, and making a navigation to jump from video to video via a block. I'm aware there's a better method of doing all of this, however that's how this website build was requested to be.

Anyway, on one website when I tell the navigation block to appear in "Content" it appears under the embedded video. However on the other website, when I specify the block to appear in the "Content" field, it positions itself above the embedded video. After messing around with different ideas to fix this issue, I finally gave up and just did a clean install of Drupal (I figured since I wasn't too far into that project it wouldn't hurt, and it would just fix the issue). However, even after a clean install, it is still giving me this issue.

Pictures for examples:

Here the block is behaving as expected and doing exactly what I want them to be doing:
http://i.imgur.com/DALmzfY.png

And here you see the block defaults to above the content, rather then under it.
http://i.imgur.com/gahP3Cz.png

assigning variable value via a preprocess function to a custom menu entry template file

Hi
I need some help with a template preprocess function that I can't figure out.

I have a template file I use for a page (mydomain.com/tools). The name of the template file is tools.tpl.php and I defined it like so:

function mymodule_theme() {
return array(
'tools_template' => array(
'template' => 'tools',
),
);
}

function tools(){
return theme('tools_template',$node);
}

Pages

Subscribe with RSS Subscribe to RSS - Theme development