This forum is for assistance with theme development.

can i do this by using bluemarine theme?

Hi,

I'm Developing a new site based on Drupal. I checked most of the themes but for the compatibilty with different browsers i selected bluemarine because i already struggled with spreadfirefox,Everything is went fine ,but i'm not getting how to display --welome username-- message and a breadcrumb on the header section ,
Like This .How can i do the same with xtemaplate.xtmpl file in Bluemarine .Please Help me..

Will PHPTemplate Change Core Forms in 4.7

I am trying to theme the search_box() function in the system.module of 4.7 and I need to add a different CSS #ID property other than the default. I can easily see the theme_search_box() function and it's easy to pass that into template.php, but I need to change some fo the form items. How do I do this with PHPTemplate?

BTW, I just read the Forms API and the Quickstart guide, but still this was not obvious. For instance, I tried just creating a copy of both and adding 'my' infront of it and slapped this into template.php, but to no avail. Help?

Design possisble with CSS

Hi all. I'm trying to determine if a layout is possible in CSS (or tables for that matter).
The layout is kind of a 3 column layout, of which there are many examples online. I'm trying to achieve something that looks like http://willwyatt.com/wanted.png.
The overall width is 100%. The logo and nav are around 170px. The Ads section is 160 or pixels wide.

Is something like this even possible?

Developing with PHPTemplate

I decided to migrate my site using the PHPTemplate engine. However, I am a PHP novice and have a
few general questions before I proceed.
As always with a new document I tried to deconstruct the box_grey theme and learn how it works. Here is what is not quite clear to me:

Do all the $xxx variables refer to stuff that is entered in the admin section such as the links content etc?

$head for instance seems to be set by using the set_html_head and get_html_head -I´m not sure how to do that. Can you call and set metatags that way?

image in node heading... a simpler way than nested divs?

Can anyone wthink of a simpler way to put an image in a node heading (the height of both lines - title and submitted) than using nested divs and floats?

thanks
c.

Input Format not working with node_teaser (input filters)

I'm trying to use the Filtered HTML input format to prevent layout tags from getting in my custom front_page display and messing up the layout. However, it seems that somehow input formats are not working to prevent tags like

from being posted into or displayed from a given node. Here is an example of code I'm using:

node_teaser($nodeloaded->flexinode_6, "Filtered HTML")

$teaser = substr(node_teaser($nodeloaded->flexinode_6, "Filtered HTML"),0,140);

Filtered HTML is the default input format, by the way. I've tried specifying or not specifying the format.

Because for whatever reason node_teaser is not applying the input format when creating the teaser. So I've resorted to using this:

$search = array ('@<div[^>]*?>@i', '@<p[^>]*?>@i', '@<table[^>]*?>@i', '@<td[^>]*?>@i', '@<tr[^>]*?>@i', '@</div[^>]*?>@i', '@</p[^>]*?>@i', '@</table[^>]*?>@i', '@</td[^>]*?>@i', '@</tr[^>]*?>@i');
$replace = array ('','','','','','','','','','');
$teaser = substr(preg_replace($search, $replace, node_teaser($nodeloaded->flexinode_6, "Filtered HTML")),0,140);

But this solution is not ideal because it is piecemeal blocking bad stuff, rather than blocking all and then allowing only acceptable stuff.

The reason I'm not just pulling the teaser text out of the database ($node->teaser) is because I don't want to use the flexinode default display of information (field description followed by field content).

Pages

Subscribe with RSS Subscribe to RSS - Theme development