This forum is for assistance with theme development.

Title field in Hook_form?

Hello everyone,

I am working with the quotes.module and am having some difficulty with hook_form. I am trying to remove the Title: field from the submission form, as a quote really does not need a title. It's minor, but I can not for the life of me figure it out and was hoping someone might be able to help. The hook_form code is pasted below. Thanks in advance!

/**
* Implementation of hook_form().
*/
function quotes_form(&$io_node) {
$the_output = '';

if (function_exists('taxonomy_node_form')) {
$the_output .= implode('', taxonomy_node_form('quotes', $io_node));
}

if (user_access('promote quotes to block')) {
$the_output .= form_checkbox(t('Display in quote blocks'), 'quotes_promote', 1, (isset($io_node->quotes_promote) ?

$io_node->quotes_promote : 1));
}

switch (arg(3)) {
case 'import':
$the_output .= form_radios(t('Format'), 'quotes_format', ($io_node->quotes_format ? $io_node->quotes_format : 'text'),

array('text' => t('Tab-separated text'), 'fortune' => t('Fortune file')), NULL, TRUE);
$the_output .= form_textarea(t('Quotes'), 'body', $io_node->body, 60, 20, NULL, NULL, TRUE);
break;

case 'upgrade':
if (!$io_node->body) {
$io_node->body = '';
$the_result = db_query_range('SELECT q.quote, q.author FROM {quotes_quotes} q ORDER BY q.qid',

variable_get('quotes_upgrade_start', 0), 1000);

simple css question?

i can't seem to figure this out - too many hours staring at the screen i guess (and hope?).

I have just put otgether a new theme and launched it for beta testing, though i cannot get the sidebar to extend the full length of the page... I have it set at height: 100%

http://veganarky.net

Can anyone advise how to do this, what i have done wrong, missing code, etc?

How to add a javascript in Drupal 4.7 ?

Hi !

In Drupal 4.7, I don't understand how to add a javascript file in my page.tpl.php and how to write an onload attribute ?

I hope you can help me ;)
Thanks

Matt

"Description" missing tags | div description width

Hi!
On the "settings" page, there are for example <div class="description">The slogan of this website. Some themes display a slogan when available.</div>

But there are no <p> </p> tags. I'd like to know where I can add them, so I'll can control the width of this text under the textfields and fully validate the code...

Could you please help me ?

Thanks a lot ;)
Matt

theme problem

i am using taxonomy theme plug in to give each section of the site a different theme.
i have a main them which is chameleon
when selecting a section for instance schoonmaak bedrijven, i only get half of the layout, it takes the header and the footer of the main layout

i've looked at the system and it seems that drupal always uses a main template. for instance i got main theme selected in my admin panel.
i am guessing that the problem lies here .

Help with theme development

I based my theme off of the friendselectric theme.

On Firefox 1.5 (mac), it looks how it's supposed to (well, as close as I could get it), here's a link to that image: http://www.portlandjisp.org/firefox.png

On IE (mac), it doesn't look right, also, I don't have a PC with me right now, but on a Windows IE it also looks similar. Here's a link to that image: http://www.portlandjisp.org/ie.png

Any help would be much appreciated. Thanks!

CSS file for the theme is here: http://www.portlandjisp.org/themes/jisp/style.css

And this is the page.tpl.php file:

Pages

Subscribe with RSS Subscribe to RSS - Theme development