Curved Light Solutions
|
Just installed the lastest Trial version, Doing Drupal Exports.
Seems for EVERY Theme , once I install and select theme , I Try the following:
1. login as admin
2. edit and existing page
3. Press the SUBMIT button at the bottom of the page
4. Instead of submitting the changes - I come back to the edit page and the changes never make it to the database- I only see this with Artisteer generated themes
Note: See this on Firefox and IE7
I REALLY like the product and will purchase as soon as I know it will work for me. So far this is the only show stopper.
Thanks in advance
Ken
Curved Light Solutions LLC
|
|
Curved Light Solutions
|
Did some debugging and found the offending function that causes the form buttons not to opperate correctly.
File: template.php
Function: YourTemplateName_button
It was the last function in the file.
My theme was called ArtisteerTest .... and here is the function
/**
* Theme a form button.
*
* @ingroup themeable
*/
function ArtisteerTest_button($element) {
// Make sure not to overwrite classes.
if (isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = 'form-'. $element['#button_type'] .' '. $element['#attributes']['class'];
}
else {
$element['#attributes']['class'] = 'form-'. $element['#button_type'];
}
return
'<button type="submit" class="Button" '. (empty($element['#name']) ? '' : 'name="'. $element['#name']
.'" ') .'id="'. $element['#id'].'">'
.'<span class="btn">'
.'<span class="l"></span>'
.'<span class="r"></span>'
.'<span class="t">'.check_plain($element['#value']).'</span>'
.'</span></button>';
}
IF you comment out the funtion the buttons work correctly- but they do not get styled :) - hopefully the developers can fix this ASAP.
Now I can go to sleep :)
Ken
|
|
CurvedLightSolutions
|
I traded emails with the developers- they sent me a new version of the program that fixes the problem. Here is the code that was generated by the new program
function ArtisteerTest_button($element) {
// Make sure not to overwrite classes.
if (isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = 'form-'. $element['#button_type'] .' '. $element['#attributes']['class'];
}
else {
$element['#attributes']['class'] = 'form-'. $element['#button_type'];
}
return
'<button type="submit" class="Button" '. (empty($element['#name']) ? '' : 'name="'. $element['#name']
.'" ') .'id="'. $element['#id'].'">'
.'<span class="btn">'
.'<span class="l"></span>'
.'<span class="r"></span>'
.'<span class="t">'.check_plain($element['#value']).'</span>'
.'</span></button>';
}
Needless to say I am VERY pleased with the quick responce and maked me more confident to purchase the program.
Ken
|
|