I am trying to launch a site this week and need help with a few sticky situations:

1) When submitting content as "unpublished" I get the following error: Fatal error: Unsupported operand types in /var/www/includes/common.inc on line 1275

2) The search box in my template does not pass the keyword to the search form, therefore the user is taken to the search form which is empty and shows no results. I have read many threads on this topic and everything in the search-theme-form.tpl.php appears to be correct, but when the file is removed, the search works fine. But it's ugly and doesn't line up correctly- I need to be able to theme it AND have it pass the search term through correctly.

3) I am using the Header Image module. It doesn't always return an image, even though "default image when no criteria are met" is selected and there are properly weighted images to default.

4) I need help with php snippets on my custom home page. I can get full nodes, but what I want is titles and teasers from one content type in one block, and linked titles from other specific content types in another block.

5) Views help- I have a view sorted by 2 taxonomy terms- one should always appear first on the page. The way it's sorting now, the term with the first alphabetical node appears first. I've tried sticky-ing all the nodes for the preferred first term, sorting by alpha taxonomy term (the preferred term is Databases the secondary term is Websites) and nothing works.

6) A little CSS help- the lists in my menus wrap all the way back to the bullet- I'd like the second line indented to where the first line begins. It's a little hard to read.

7) More CSS help- I'm using DHTML menus. I'd like to display a right-facing arrow next to collapsed items and a down-facing arrow next to expanded headings.

I am running Drupal 6.6 and all modules are running the most recent releases.

I can set you up with administrator privileges for the site, but database and ftp changes have to be sent through me due to our firewall issues. Preferred communication via MSN Live Messenger or GTalk, daytime hours EST although my hours are fairly flexible if needed.

Thanks!

Comments

phillamb168’s picture

Hi there,

I had the same problem you're having with the search box. Try getting rid of $search_box in your page.tpl.php completely, and replace it with something like this (obviously add in various theme elements as you have them in your theme):

<form action="/search/"  accept-charset="UTF-8" method="post" id="search-form" class="search-form">
<input type="text" maxlength="128" name="keys" onClick="if (this.value == '...') { this.value = ''; } " id="edit-keys" value="..." title="Enter the terms you wish to search for." class="form-text" />
<input type="image" src="<?=base_path();?><?=path_to_theme();?>/imgs/form_submit_go_signup.jpg" name="op" value="go"  class="form-submit" />
<input type="hidden" name="form_build_id" id="form-3551ff463130f15eb1e514c55e1a86d9" value="form-3551ff463130f15eb1e514c55e1a86d9"  />
<input type="hidden" name="form_token" id="edit-search-form-form-token" value="<?=drupal_get_token('search_form');?>"  />
<input type="hidden" name="form_id" id="edit-search-form" value="search_form"  />
</form>

Form_build_id can be pretty much anything I believe, however, in this example I used the MD5 hash from my $search_box result.