This forum is for assistance with theme development.

Creating Drop Down Navigation Bar

I know there is information about this on the site, but I can't seem to find it. I'm wanting to create a drop-down navigation bar for a PHPTemplate Theme.

Where could I find that?

My work in progress is located at:
http://www.moimpact.org

phptpl - theme admin page like node? what do i reference?

I've been making the node entries have their own containers and i'd like to carry that theme to the admin areas and create content page. The problem is - when a div in node.tpl.php is defined via div and css the same div tag is not placed on the admin, calendar, or the create content stuff. There is only the background that has been placed for the overall container i've specified. I was thinking perhaps there is a *magic* if / else clause i could throw in my page.tpl.php that says, "if it's an admin page, then contain in this class element, elseif it is a node then use this element".

Multiple block regions: (left, right, top, bottom)... Possible or NOT?

I am working on several xhtml-strict themes using pure css layout and I have a major need for multiple block regions (not just left and right). Sound familiar? It should, it's been discussed many times before:

SpreadFirefox and Help text

I have recently re-installed my site http://amadain.net and am just trying to clear up a few issues.

The first on involves the Help text.

SpreadFirefox displays a nice little Help: before each and every help text that discribes a page. This works if there are no tags in the help text. The system.module - by default - surrounds the help text by tags...

Two changes need to be made
1. page.tpl.php, update

pretty bullets in democratica main menu

Hi and the democratica theme r0cks! :D

I'd like to help enhance it a bit, if someone could just point me in a direction.

When you're logged in w/ 4.6.0, there's that beautiful bulleted list for the user Navigation items.

When I add a new menu the bullets are the black squares with dots in them and the items w/ submenus have the sideways triangle.

Is there a way to have the new menu items use the pretty democratica navigation bullets?

The rollover effect is really superb, as well. If there's a way to make that happen, too, please advise.

Text to image addon almost implemented. Need some guidence on drupal conventions

Im making a small site for a friend, and we wanted to use a special font. I have implemented a function I have called txt2img. With this, one can get some text converted to a Only local images are allowed.-tag which points to a created img like this:

$text = "String from different places here";
txt2img($text, array(
  'font' => 'fontfile.ttf',
  'size' => '50',
  'color' => array(255,0,0) // makes a red colored text
  ...
); 

I was wondering if this is something I should contribute (I'll be happy to do so).

But I could use some guidence on integrating it with Drupal. It needs to locate font files, and be able to write to a directory which the user must have access to. Currently, I have made a "txt2img" with "cache" and "fonts" as subfolders. In "fonts" resides the .ttf fonts I want to use, the .png images are written to "cache". I suppose most users wouldn't want to bother to much with permissions, so a central location would be nice for the cache. Therefore I wanted to use the "files" directory in the site root. However, I wasn't able to read files from there. Is it possible to use it for this?

What naming should I use? I suppose most theme designers would want the function name to be small, that's why I called it txt2img() in the first place.

Where should I store the script-file(s)? I suppose a module wouldn't be very helpful for this. I solution may be to simply have the theme editors who want to use it bundle it up with their theme. That would ensure use of function names ++ corresponds.

Also, I need to get some information. What's the best way to get the following:
* Path to theme-directory (for "fonts" folder)
* Url path to the "cache"-folder (either in theme or files or...) for use in Only local images are allowed.-tag.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development