drupal.org - Theme development http://drupal.org/taxonomy/term/3/0 For assistance with theme development. en Removing Horizontal Border in Chameleon Theme http://drupal.org/node/515748 <p>First and foremost, 3 cheers for John Albin (<a href="http://john.albin.net" title="http://john.albin.net" rel="nofollow">http://john.albin.net</a>) for releasing such a clean design.</p> <p>However, I can't for the life of me figure out how to remove the only horizontal border in the Chameleon theme. </p> <p>I've checked the CSS and all border references are for the vertical borders on the left and right sidebars, as well as the navlinks. </p> <p>I figure it may have something to do with the "clear: both" operators in the #content, #header or #navlinks divs, but I've removed them with no effect. </p> <p>Does anyone know how to get rid of it?</p> <p><a href="http://ChicagoLongboardSociety.com" title="http://ChicagoLongboardSociety.com" rel="nofollow">http://ChicagoLongboardSociety.com</a></p> <p>Other, minor issues: </p> <p>Is there any way I can get the Primary Links (about, events, contact, etc) to act link the links in the Navigation bar insofar as they would appear linked in the subheader menu (for example: Home&gt;&gt;&gt;About or Home&gt;&gt;&gt;Events or Home&gt;&gt;&gt;Contact, etc)</p> <p>And how do I stop the Images module from automatically publishing new images on the main page?</p> <p>Thanks for the help and apologies for the novice level questions.</p> <p>Cheers,</p> <p>- Sal</p> http://drupal.org/node/515748#comments Theme development Drupal 6.x Fri, 10 Jul 2009 15:35:45 +0000 breakslides 515748 at http://drupal.org Calendar Date Images http://drupal.org/node/515740 <p>Hey all. I was wondering if anyone know of any tutorials to achieve calendar date images like on this page. Notice how each date is displayed as an image rather than text.</p> <p><a href="http://11heavens.com/drupal" title="http://11heavens.com/drupal" rel="nofollow">http://11heavens.com/drupal</a></p> <p>Thanks</p> <p>WR</p> http://drupal.org/node/515740#comments Theme development Drupal 6.x Fri, 10 Jul 2009 15:27:47 +0000 wrwipeout 515740 at http://drupal.org is there a limit Limit to external CSS files for IE7 http://drupal.org/node/515664 <p>Please refer to this discussion else where in the theming forum <a href="http://drupal.org/node/513212#comment-1795814" title="http://drupal.org/node/513212#comment-1795814" rel="nofollow">http://drupal.org/node/513212#comment-1795814</a></p> <p>I ran into an issue with background images not rendering in IE 7, whilst working fine in Firefox and Opera. After much diagnosis as to the cause it turned out that IE 7 was choking every time my external linked css files exceeded 32. The site I am building uses Ubercart, views, panels, thickbox and a few other modules. My panels page by default generated 33 links to external css files. This did not affect FF but IE 7 choked. Is this a known limit? The issue does not appear to be related to the content of the css files because any extenal link removed such that the link count was less than 33 IE 7 worked.</p> http://drupal.org/node/515664#comments Theme development Drupal 6.x Fri, 10 Jul 2009 14:29:14 +0000 manfromochie 515664 at http://drupal.org list nodes/ articles according author http://drupal.org/node/515616 <p>Hello! a newbie here. I'm modifying an excisting drupal 5 setup and need some help(explaination) to create a content type "node-article.tpl.php" and "node-author.tpl.php"... Create CCK fields for node-author.tpl.php (like ex: name, address, birth and etc.) to accept inputs. </p> <p>questions: </p> <p>1.) how do i reference content type "article" to "author".<br /> 2.) list nodes/ articles according author.</p> <p>any help are very much appreciated</p> http://drupal.org/node/515616#comments Theme development Drupal 5.x Fri, 10 Jul 2009 13:26:57 +0000 vasylum 515616 at http://drupal.org Way to quickly scan existing themes at ThemeGarden or similar? http://drupal.org/node/515610 <p>There are so many themes available on Themegarden, is there a way to quickly scan through screenshots? I see the option to select the next or previous, or from the list - but there are so many themes it would be helpful to see pics of many on a page for faster browsing.</p> <p>Like this <a href="http://www.freedrupaltheme.com/" title="http://www.freedrupaltheme.com/" rel="nofollow">http://www.freedrupaltheme.com/</a> but for Themegarden.</p> <p>Thanks for any info.</p> <p>Nathan</p> http://drupal.org/node/515610#comments Theme development Drupal 6.x Fri, 10 Jul 2009 13:24:02 +0000 NathanSF 515610 at http://drupal.org Navbar sinking to bottom in IE6 with Zen Subtheme. http://drupal.org/node/515576 <p>Hey guys, I'm still new to the Drupal theme building and have been using the Zen starterkit to get into the swing of things. I have finished designing the site and everything is looking fine except when the site is viewed in Internet Explorer 6. It seems that the Navbar (which is placed above the content and below the header) appears below the content. I am using a fixed layout and no sidebars. I have played around with it for days now and all though it seems to be fine on all other browsers Internet Explorer 6 is not interested in working. The problem was also appearing in Internet Explorer 8 but I did manage to fix that issue. Is there some way to code the CSS in a way that will be interpreted as the same across browsers?</p> <p>Any help on this issue would be of great value.</p> <p>the website is <a href="http://www.bridgedownhouse.com" title="www.bridgedownhouse.com" rel="nofollow">www.bridgedownhouse.com</a> for anyone who wishes to have a look at what it is im trying to do.</p> <p>Thanks in advance,</p> <p>Martin</p> http://drupal.org/node/515576#comments Theme development Drupal 6.x Fri, 10 Jul 2009 12:19:25 +0000 msm1003 515576 at http://drupal.org Fixed IE margin issue with background:transparent; http://drupal.org/node/515528 <p>I spent nearly an hour faffing about, sidebar-last negative margin was working fine in all browsers yet side-first wasn't. Looked for differences between the sidebars and narrowed it down to background:transparent; missing from sidebar-first. Forgive my ignorance but what the heck has background:transparent; got to do with margins or even layout for that matter. I don't have an issue now but am quite flabbergasted by this!</p> http://drupal.org/node/515528#comments Theme development Fri, 10 Jul 2009 10:53:18 +0000 John_09 515528 at http://drupal.org How to resize zen navbar http://drupal.org/node/515366 <p>Hi there,</p> <p>I've created a two-column site with zen, however, I'm having problems resizing the navbar. If I extend the height of it via the line height property it simply extends into the content area and overlaps it. I would have expected it to push the content down, after all, this worked when I resized the header area.</p> <p>Has anybody got any ideas as to what I may be doing wrong?</p> <p>Thanks, Rich</p> http://drupal.org/node/515366#comments Theme development Drupal 6.x Fri, 10 Jul 2009 05:55:35 +0000 RichieRich 515366 at http://drupal.org Want to make my own theme. http://drupal.org/node/515328 <p>Hi I m Pankaj Sharma , working as a Php programmer.</p> <p>I wanna make my own theme for drupal. have u any idea of developing the drupal theme. Actually my need is i wanna use my own design interface rather than using any drupal theme.Pls help me out. I develop sites using Smarty template but now i wanna use drupal but the main prob is i don't wanna use drupal themes. i wanna make my own user interface. If Any idea pls help me out.</p> http://drupal.org/node/515328#comments Theme development Drupal 6.x Fri, 10 Jul 2009 05:07:27 +0000 pankaj417 515328 at http://drupal.org What if I *do* want my backgrounds in FCKeditor? http://drupal.org/node/515112 <p>I'm surprised to find so many people asking how to prevent FCKeditor from showing their page background, but nobody with this problem:</p> <p>My site uses FCKeditor on blocks with many different styles, and those styles all available for the user to apply as they edit. Although the body of the page is white, some blocks have a dark background and white text.</p> <p>On the edit screen, the white font style is rendered, yet the block background is white too, because the dark background depends on the block id.</p> <p>Sure, I could just define special FCKeditor styles so people can read what they're typing, but since users are supposed to be playing with my predefined font styles, it'd be nice if they could see whether they're editing a dark or light block. Is there a way to make the editor inherit backgrounds not just from the body, but from its nearest ancestor?</p> http://drupal.org/node/515112#comments Theme development Drupal 6.x Thu, 09 Jul 2009 22:15:00 +0000 bethhauck 515112 at http://drupal.org link to the menulevel above the current site http://drupal.org/node/515086 <p>Hi,</p> <p>i use this code to print out a part of my menue:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$mid </span><span style="color: #007700">= </span><span style="color: #0000BB">menu_get_active_nontask_item</span><span style="color: #007700">();<br />print </span><span style="color: #0000BB">menu_item_link</span><span style="color: #007700">(</span><span style="color: #0000BB">$mid</span><span style="color: #007700">, </span><span style="color: #0000BB">$theme </span><span style="color: #007700">= </span><span style="color: #0000BB">TRUE</span><span style="color: #007700">);<br />print </span><span style="color: #0000BB">theme</span><span style="color: #007700">(</span><span style="color: #DD0000">'menu_tree'</span><span style="color: #007700">,</span><span style="color: #0000BB">$mid</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>it looks like this:</p> <p>- current site<br /> --- sub1<br /> --- sub2<br /> --- sub3</p> <p>Now i want a link to the menulevel above the current site. How can i do it?</p> <p>Thanks for Help</p> http://drupal.org/node/515086#comments Theme development Drupal 5.x Thu, 09 Jul 2009 21:43:03 +0000 joysone 515086 at http://drupal.org My Account and Profile mulitple pictures displayed http://drupal.org/node/515020 <p>I have a simple user profile under my account, in order to display their picture on forums, i need to have a picture for the user. when i display profile full content, the picture displays within the profile also so there are two of the same picture right next to each other.</p> <p>i would prefer to display the picture in the profile field rather then in the my account field... any suggestions?</p> <p>and also, is there a module or setting to take the user picture on reduce the size when it displays on forums?</p> http://drupal.org/node/515020#comments Theme development Drupal 6.x Thu, 09 Jul 2009 20:06:11 +0000 cherrycokes 515020 at http://drupal.org additional symbols at the bottom of site (not footer) http://drupal.org/node/514952 <p>Hi,<br /> I'm not sure if I got it after upgrading from 6.12 to 6.13 or if it came up after I changed my theme, but it definately is there now no matter what theme I choose.<br /> What I get is<br /> '); //--&gt;<br /> at the bottom of the site, just above Drupal's little banner in the footer.</p> <p>Any idea where it came from (apart from php code) and how to get rid of it?</p> <p>Thanks</p> http://drupal.org/node/514952#comments Theme development Drupal 6.x Thu, 09 Jul 2009 18:26:08 +0000 czoper 514952 at http://drupal.org theme api, functions, variables .. the lot http://drupal.org/node/514724 <p>Is there one big reference for all functions, variables et all available?</p> <p>For instance:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$header_top</span><span style="color: #007700">): <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div> is an easy function yet:</p> <p>Isn't found when searching for an explanation in the topics or browsing the fragmented manual pages.</p> <p>It would be a great advantage for a reference explaining this and all elements.</p> <p>Ragards,<br /> c</p> http://drupal.org/node/514724#comments Theme development Thu, 09 Jul 2009 14:32:36 +0000 IT100 514724 at http://drupal.org How to modify Multiflex theme http://drupal.org/node/514716 <p>I am a newbie in drupal. I am wondering how to modify Multiflex3 theme. </p> <p>my site looks like this now <a href="http://www.aspk.com.tw" title="www.aspk.com.tw" rel="nofollow">www.aspk.com.tw</a></p> <p>(1)I would like to change the header to a different color or replace it with a photo. How do I do it? Should I modify it on Style.css?</p> <p>(2)To be safe, I would like to do some testing before having it rendered. Is there a way I could see the changes I made before bringing it up on my site? How do I do it on dreamweaver, or is there other application I could use.</p> <p>(3)Is there any application I could use that would add theme modification. Non-scripting based. more visual based maybe?</p> <p>thanks so much for your help</p> http://drupal.org/node/514716#comments Theme development Drupal 6.x Thu, 09 Jul 2009 14:29:11 +0000 aspk 514716 at http://drupal.org Extracting values from a user's profile http://drupal.org/node/514712 <p>Hi</p> <p>I am attempting to customise the appearance of a user's profile, when viewed. To do this, I have started by copying user-profile.tpl.php into my theme's active folder. When I put the command <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$profile</span><span style="color: #007700">);&nbsp; <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div> into the template file, I get the output: </p> <p>Array ([user_picture] =&gt;<br /> [Personal] =&gt;</p> <p>Personal</p> <p>Education</p> <p> i am a great guy</p> <p>[content_profile] =&gt; [summary] =&gt;<br /> History</p> <p>Member for<br /> 23 hours 16 min</p> <p>)</p> <p>I understand that $profile is an array. What I am trying to do is work out how to print out individual values from the array, so that I can apply my own formatting to them. For example, in my test example, the value in the education field for this test profile is "i am a great guy". I've tried accessing this using commands like</p> <p>print $profile['user_picture']['Personal'];<br /> print $profile['user_picture']['Personal']['Education'];<br /> print $profile['Personal']['Education'];</p> <p>But none are outputting anything.</p> <p>Any assistance would be a great help</p> http://drupal.org/node/514712#comments Theme development Drupal 6.x Thu, 09 Jul 2009 14:24:02 +0000 apickin 514712 at http://drupal.org Adjusting Menu's With Zen http://drupal.org/node/514626 <p>Hi folks,</p> <p>I am getting started with the Zen theme and am currently stuck trying to figure out the menu styles. I must be missing something simple so hopefully someone can please point me towards an explanation without taking up too much of their time.</p> <p>I understand that the menu system is run through a list style. The list is defined in html-elements.css as ul.menu li, li.expanded, li.collapsed, li.leaf, all holding the same properties. Easy enough. </p> <p>However the menu starts with li.leaf, when clicked changes to li.expanded but then the first item in the expanded menu goes back to li.leaf. I can't figure out where or how to change the class name for the menu elements. That way I could possibly set the menu to begin with li.leaf which when clicked turns into li.expanded and the list underneath that holds the class of li.leafexpand. </p> <p>Why would I want to do this? I want to begin with a menu that has some background styles for each button which then expands down to links on a plain background color. So the starting button is one style but then the expanded buttons are another style.</p> <p>I have checked the template.php, page.tpl.php and the .info file for where classes are assigned but have had no success. If anyone can please point me in the right direction I would greatly appreciate it. Thanks.</p> <p>Jason</p> http://drupal.org/node/514626#comments Theme development Drupal 6.x Thu, 09 Jul 2009 12:54:27 +0000 jasont28 514626 at http://drupal.org Advanced block theme, views block. http://drupal.org/node/514566 <p>At the outset, in advance sorry for my english.</p> <p>I have problem with block themeing i views.</p> <p>I have a block creating in views with 4 different variables form content type.<br /> Standard and views block content code is <code><span style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">print </span><span style="color: #0000BB">$block</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">content ?&gt;</span></span></code><br /> I want to display each variable separately in my tpl file but I do not know how to insert code to display a specific variable genereted by views.</p> <p>For example:<br /> We have cck field called "field_my_name".<br /> I can display in node.tpl.php all content by <code><span style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">print </span><span style="color: #0000BB">$content ?&gt;</span></span></code> and I can display our specific variable (field_my_name) in node.tpl.php, by paste code <code>&lt;? $node-&gt;field_my_name[0][&#039;view&#039;] ?&gt;</code></p> <p>I want do the same thing but in views block, but what will replace me the code <code>&lt;? $node-&gt;field_my_name[0][&#039;view&#039;] ?&gt;</code> in block ?</p> http://drupal.org/node/514566#comments Theme development Drupal 6.x Thu, 09 Jul 2009 11:35:26 +0000 soneone 514566 at http://drupal.org Customised theme - links not working in added blocks http://drupal.org/node/514522 <p>Hi,</p> <p>Scratching my head on this one .... i'm not a php or coding expert so i'm hoping someone can point me in the right direction.</p> <p>I have been customising the excellent 'Blix' theme and wanted to add 2 new regions which sit outside the container div - one on the left and one on the right. I also want them to be 'sticky' ie so they don't scroll with the rest of the page. </p> <p>I have managed to add the regions to the page.tpl.php file and set the css so they sit in the correct positions. So i'm happy so far!</p> <p>I can add content and the regions appear on the block page BUT anything i try and attach a link to doesn't work. I know that the blocks created work in other regions including regions i have added within the container ie 2 x regions above the logo</p> <p>The site : <a href="http://www.blackpool4hotels.com/D6" title="www.blackpool4hotels.com/D6" rel="nofollow">www.blackpool4hotels.com/D6</a></p> <p>The page.tpl.php code is below. What am i doing wrong???</p> <p>Thanks in advance .....</p> <p><code></code></p> <p> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$head_title <br />?&gt;</span></span></code></div></p> <p> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$head <br />?&gt;</span></span></code></div><br /> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$styles <br />?&gt;</span></span></code></div><br /> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$scripts <br />?&gt;</span></span></code></div></p> <p> &lt;----ADDED----&gt;<br /> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">theme</span><span style="color: #007700">(</span><span style="color: #DD0000">"onload_attribute"</span><span style="color: #007700">); <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$adsleft <br />?&gt;</span></span></code></div> &lt;----REQUIRED LHS REGION----&gt;</p> <p> &lt;----ADDED REGIONS WHICH WORK FINE----&gt;</p> <p><a href="http://drupal.org/node/514522" target="_blank">read more</a></p> http://drupal.org/node/514522#comments Theme development Drupal 6.x Thu, 09 Jul 2009 10:48:12 +0000 cside 514522 at http://drupal.org Tags presentation http://drupal.org/node/514460 <p>Hi All,</p> <p>Can anyone please tell me how to display tags in this format:<br /> Tags : tag1 | tag2 | tag3</p> <p>Thanks in advance</p> http://drupal.org/node/514460#comments Theme development Drupal 6.x Thu, 09 Jul 2009 09:27:32 +0000 dvkd 514460 at http://drupal.org where does views get its styling for the "field-content" class? http://drupal.org/node/514176 <p>I just discovered firebug, wow what an education =)</p> <p>I'm trying my hand at some basic css styling to clean up this site's look, and I'm finding some strange styling around views' row style:fields output (a Taxonomy image field) . using firebug I can't really locate where the view is pulling it's styling from, but there's obviously some padding in there I'd like to get rid off. How does one go about doing this?</p> <p>here's what I'm seeing: <a href="http://www.porterworkstest.seanporterdp.com/images/view-styling.png" title="www.porterworkstest.seanporterdp.com/images/view-styling.png" rel="nofollow">www.porterworkstest.seanporterdp.com/images/view-styling.png</a></p> http://drupal.org/node/514176#comments Theme development Drupal 6.x Thu, 09 Jul 2009 00:37:39 +0000 sean porter 514176 at http://drupal.org Drupal and Flash http://drupal.org/node/514032 <p>I'm building a website for a friend and they really want an animated menu like this:</p> <p><a href="http://www.webdesign.org/web/flash-&amp;-swish/flash-tutorials/menu-that-swings-in.5976.html" title="http://www.webdesign.org/web/flash-&amp;-swish/flash-tutorials/menu-that-swings-in.5976.html" rel="nofollow">http://www.webdesign.org/web/flash-&amp;-swish/flash-tutorials/menu-that-swi...</a></p> <p>Is this possible to place in a drupal theme?</p> http://drupal.org/node/514032#comments Theme development Drupal 6.x Wed, 08 Jul 2009 20:53:51 +0000 bzsim 514032 at http://drupal.org adjusting one node's width and margins http://drupal.org/node/514028 <p>I want to adjust the width of the text in one node (and the margin has to be adjusted to accomodate it). How can I do that? in the style.css file? or in the code of that one node?</p> http://drupal.org/node/514028#comments Theme development Drupal 6.x Wed, 08 Jul 2009 20:50:15 +0000 mdowsett 514028 at http://drupal.org Horizontal blocks stack vertically only in IE7 http://drupal.org/node/513990 <p>Hey guys,</p> <p>Ive been struggling with this for a while. Only in IE7 my horizontal blocks seem to stack vertically to the left of the page. I assume its just my css but i just cant figure out why it only does this in IE7. It works fine in ie8 and firefox</p> <p>it should look like:</p> <p>block1 | block2 | block 3 |</p> <p>instead it looks like:</p> <p>block1<br /> block2<br /> block3<br /> (all over lapping each other)</p> <p>here is my css for the horizontal blocks:</p> <p>#bottombottom {<br /> margin-left: 15px;<br /> margin-top: -190px;<br /> width: 100%px;<br /> clear: left;<br /> float: left;<br /> padding-bottom: 0px;</p> <p>}<br /> #bottombottom .block {<br /> float: left;<br /> margin-right: 10px;<br /> border: solid 1px #c0c0c0;<br /> }</p> <p>=-=-=-=-=</p> <p>#block-block-14 {<br /> background: #fff;<br /> height: 235px;<br /> width: 205px;<br /> margin-right: 10px;<br /> margin-top:<br /> padding-top: -2px;<br /> padding-left: 10px;<br /> padding-right: 10px;<br /> padding-bottom: 10px;<br /> float: left;<br /> }</p> <p>#block-block-15 {<br /> background: #fff;<br /> height: 235px;<br /> width: 477px;<br /> margin-right: 10px;<br /> margin-top:<br /> padding-top: 3px;<br /> padding-left: 10px;<br /> padding-right: 10px;<br /> padding-bottom: 10px;<br /> float: left;<br /> }</p> <p>#block-block-16 {<br /> background: #fff;<br /> height: 235px;<br /> width: 205px;<br /> margin-right: 10px;<br /> margin-top:<br /> padding-top: -2px;<br /> padding-left: 10px;<br /> padding-right: 10px;<br /> padding-bottom: 10px;<br /> float: left;<br /> }</p> <p>What am i doing wrong?</p> http://drupal.org/node/513990#comments Theme development Drupal 6.x Wed, 08 Jul 2009 20:02:35 +0000 jigggaxp 513990 at http://drupal.org taxonomy dropdown/select box http://drupal.org/node/513976 <p>hi all - sorry if this seems like a stupid question but I've searched high and low but can't find the answer! I have a "gift options" vocabulary set up with these terms:</p> <p>Under $20<br /> $21 - $50<br /> $51 - $100<br /> Over $100<br /> Gifts For Him<br /> Gifts For Her</p> <p>I need to display this in a dropdown (select box) instead of all written out to the page. How do I do that? Do I need to tweak my theme or is it done thru Admin somewhere?</p> <p>thanks!</p> <p>Jason</p> http://drupal.org/node/513976#comments Theme development Drupal 6.x Wed, 08 Jul 2009 19:41:38 +0000 jasonabc 513976 at http://drupal.org