Everyone in our nonprofit group admires and likes using your Theme. I do need help with a few glitches. I previously reported the problem with the WYSIWYG Text Editor and uploading images. Now, I've found a complication in Views when using the "More" link.

I created the Block using Views; added the More link; set it to go to a Page View. The "More" link is not being displayed.

I did clear the Cache using Views >Tools >Clear Cache and Performance >Clear Cached Data.

---Ashford

Site: http://heartwoodtmn.org

Block Title: This Month
More link: Yes
Distinct: No
Access: Unrestricted
Caching: None
Link display: Scheduled Activities

CommentFileSizeAuthor
#7 New Bitmap Image.jpg161.86 KBpokadan
#5 printscreen.jpg27.31 KBrais38

Comments

Ashford’s picture

I tried it on every Block. It finally worked when I reduced the maximum number of nodes to display to a low number.

agileware’s picture

Hi,

Try this, in the template.php file change the theme_button function as follows.

From:

  // Skip admin pages due to some issues with ajax looking for <input> not <button>.
  if (arg(0) == 'admin') {
    return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'id="'. $element['#id'] .'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";
  }
 
  return '<button type="submit" ' . (empty($element['#name']) ? '' : 'name="' . $element['#name']
         . '" ')  . 'id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . '" ' . drupal_attributes($element['#attributes']) . '>'
         . '<span class="btn">'
         . '<span class="l"></span>'
         . '<span class="r"></span>'
         . '<span class="t">' . check_plain($element['#value']) . '</span>'
         . '</span></button>';

Change to:

    return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'id="'. $element['#id'] .'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";

This should remove the theming for all buttons on the website. Which is the cause of the problem.

Ashford’s picture

Priority: Normal » Critical

Thanks, Justin, for sharing your expertise. I'll be glad when I catch up to you guys. I can see the logic of the PHP code after it's written; but I cannot write it myself.

You saved me from having to switch to another Theme. All our volunteers in our group and the web site visitors really like Wilderness.

agileware’s picture

Status: Active » Closed (fixed)

Happy to help. And thanks for using our theme.

Happy Drupal'ing!

rais38’s picture

Status: Closed (fixed) » Active
StatusFileSize
new27.31 KB

I'm having the same problem with the module IMCE (File Browser).

No buttons appear: Uploads, Delete, Thumbnails, Resize... (My account -> File Browser).

Any ideas?

Thanks

Rafael

bayousoft’s picture

Better solution at least for me:

In template.php (Wilderness Theme) at approx line 59 change:

if (arg(0) == 'admin')

to

if (arg(0) == 'admin' || arg(0) == 'imce')

pokadan’s picture

StatusFileSize
new161.86 KB

The code at #2 has already made it into template.php code. The issue at #5 I cannot reproduce. I installed imce 6.x-2.3.
Everything shows as one can see in the picture below.

pokadan’s picture

Should the issue at #5 reemerge please open another/different issue.

agileware’s picture

Assigned: Unassigned » pokadan
Status: Active » Closed (fixed)

Thanks @poka_dan :)

pokadan’s picture

Was about time I gave back to the wonderful Drupal community..
Thank you