Problem with Blix themes in 4.7

thierry_gd - January 1, 2006 - 21:58
Project:Blix
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:thierry_gd
Status:closed
Description

After upgrading to 4.7 the search button don't work anymore when you use the Blix theme.
(sorry to fill this bug here but the category blix don't have been created in the bug tracking system).

#1

thierry_gd - January 2, 2006 - 00:47

I found from where come the problem : it come from the modification in PHPtemplate in 4.7.

To make the button "search" work with blix theme in version 4.7, you have to modify the file page.tpl.php.

#2

thierry_gd - January 2, 2006 - 00:53

 

I found from where come the problem : it come from the modification in PHPtemplate in 4.7.

To make the button "search" work with blix theme in version 4.7, you have to modify the file page.tpl.php.

Replace :

<form action="<?php print $search_url ?>" method="post" id="searchform">

<fieldset>

<input type="text" value="" name="keys" id="s" />

<input type="submit" value="Go!" id="searchbutton" />

</fieldset>

</form>

by :

<?php print $search_box ?>

I don't have any CVS access, so I hope someone will patch the 4.7 version.

Don't apply to the 4.6 version.

#3

thierry_gd - January 2, 2006 - 01:09
Status:active» patch (code needs review)

Had forgotten to change the status !!!

#4

Dries - January 4, 2006 - 09:37
Status:patch (code needs review)» active

Not a patch.

#5

Steve Dondley - January 11, 2006 - 14:40

blix theme? Is this an official theme release with 4.7? If not, this shouldn't be applied.

#6

greggles - January 11, 2006 - 16:47
Version:4.7.0-beta2» 4.6.5
Priority:critical» normal

Blix theme is not in the Project drop down - so we can't reassign this to that theme.

I contacted adrian (blix maintainer http://drupal.org/project/blix ) via his "user contact" function yesterday asking to add it to the issues - no response yet.

Either way, this isn't "critical".

#7

greggles - January 11, 2006 - 16:48
Version:4.6.5» 4.7.0-beta2

Sorry - didn't mean to move the "version".

#8

Steve Dondley - January 11, 2006 - 19:54

Why should Drupal developers be responsible for whether or not someone's theme works with the core?

#9

Steve Dondley - January 11, 2006 - 19:55

Nevermind last comment. I thought you were asking a question like "This isn't critical?"

#10

greggles - January 11, 2006 - 21:42
Project:Drupal» Drupal.org webmasters
Component:theme system» web site

This needs to be assigned to Blix theme, but that theme does not have an entry.

Assigning to Drupal.org maintenance - can you please create the issues entries for the "Blix" theme?

#11

thierry_gd - January 22, 2006 - 22:33
Status:active» patch (reviewed & tested by the community)

Created and tested the patch

AttachmentSize
page.tpl.patch3.65 KB

#12

greggles - May 23, 2006 - 20:22
Project:Drupal.org webmasters» Blix
Version:4.7.0-beta2» HEAD
Component:web site» Code

Woohoo - blix theme is listed in dropdown so this can be reassigned.

I did not test the patch, but at least there is one now.

#13

labinformatique - May 31, 2006 - 09:15
Assigned to:Anonymous» labinformatique
Status:patch (reviewed & tested by the community)» fixed

Bullshit ! Bullshit ! Bullshit !!!

Replacing the Blix search form by

<?php
print $search_box
?>
puts an ugly search form in the template !

The issue is to replace

<form action="<?php print $search_url ?>" method="post" id="searchform">
    <fieldset>
        <input type="text" value="" name="keys" id="s" />
        <input type="submit" value="Go!" id="searchbutton" />
    </fieldset>
</form>

by

<form action="?q=search/node" method="post" id="searchform">
    <fieldset>
       <input type="text" value="" name="edit[search_theme_form_keys]" id="s" />
       <input type="submit" value="Go!" name="op" id="searchbutton" />
       <input type="hidden" name="edit[form_id]" id="edit-form_id" value="search_theme_form"  />
    </fieldset>
</form>

in page.tpl.php

Here was the different problems...

- action missing (<? print $serch_url; ?> doesn't work anymore)
- the field name for keywords has changed (edit[search_theme_form_keys] instead of edit[keys])
- input type="hidden" name="edit[form_id]" id="edit-form_id" value="search_theme_form" /> missing

Here is the new file page.tpl.php

AttachmentSize
page.tpl.php_2.txt2.39 KB

#14

thierry_gd - May 31, 2006 - 22:36
Assigned to:labinformatique» thierry_gd

There 's no need to be rude, we are just human and sometimes make mistakes. Open-source need collaborative effort not agression

"Replacing the Blix search form by ... puts an ugly search form in the template !" ==> I agree with that, but the text I highlited is only a part of the correction I have planned. The css file has also to be updated for having a good rendition. I am still working on it as there is many improvment to be done on the css file as there is many problem with modules wich don't work correctly with blix themes as it is now.
I should upload a final version soon (as soon I get a little free time to validate it).

#15

Anonymous - June 14, 2006 - 22:45
Status:fixed» closed

#16

thierry_gd - June 17, 2006 - 10:41
Status:closed» patch (reviewed & tested by the community)

Someone (anonymous) closed it by mistake

#17

thierry_gd - July 13, 2006 - 08:49

Update : modified a few extra stuff (style applied to all buttons not only the serach form ones, fixed some placement problem, ...)

AttachmentSize
blix TG.patch42.62 KB

#18

thierry_gd - May 3, 2007 - 21:13
Status:patch (reviewed & tested by the community)» closed

Closed ==> update to drupal 5

 
 

Drupal is a registered trademark of Dries Buytaert.