I modded the template.php as it said in the documentation page (I am using the MyDrupal Impact theme)

Since making the mod, when any content is submitted (sitewide: forums, comment, page, etc) or an admin function is performed (anything where a "submit" button is pressed) the screen site loads a blank white screen with the previous URL address. Hitting enter after receiving the white screen causes the previous screen to reappear. In the case of a forum submission or edit, it returns you to the create or edit page as though you never clicked submit.

The site is http://www.tapbjj.com and I have set up a temporary test account un: Test pw: test with permission to submit forum content.

Please help! :)

CommentFileSizeAuthor
template.php_.txt885 bytesbstrange
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bstrange’s picture

Unfortunately I had to temporarily revert to the unmodded template.php file as I got a call from a couple members trying to use the site (it's new so they are all excited and it's hard to keep them off lol).

Therefor, logging in with test will not reproduce the behavior. I will put the modded php back up as soon as I see everybody is off this evening.

Also, there is no menu link to drupal's forum, so use http://www.tapbjj.com/forum

I am still trying to play with the php code myself atm.

bstrange’s picture

changed template.php to the following based off a response from main drupal forums and it works now:

<?php
// $Id: template.php,v 1.4.2.1 2007/04/18 03:38:59 drumm Exp $

  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  }

// ***** This is a custom function to reduce the size of the month block in order to fit in IE   ****

function MyDrupal_Impact_event_calendar_month($op, $header, $rows, $attributes = array(), $caption = NULL) {
  if ($op == 'block') {
    foreach($header as $key => $values) { $header[$key]['data'] = substr($values['data'],0,1); }
    $output = theme("table", $header, $rows, $attributes, $caption);
    return '<div class="event-calendar"><div class="month-view">'. $output ."</div></div>\n";
  }
  else
  {
  $output = theme("table", $header, $rows, $attributes, $caption);
    return '<div class="event-calendar"><div class="month-view">'. $output ."</div></div>\n";
  }
}
Michelle’s picture

Status: Active » Postponed (maintainer needs more info)

I don't see how that's working... You're supposed to put the code into _phptemplate_variables()

Michelle

bstrange’s picture

Could you show me how it should look in my template.php? As far as I know, I have no section for _phptemplate_variables()

Please post the code how it should look in respect to my template.php if you have time

Thanks! :)

bstrange’s picture

BTW, I just realized, the template.php does not work with FF. It does in IE. In IE I get forum, tables and all. In FF all I get is a mark all forums as read button.

You can check it in both browsers at http://www.tapbjj.com/forum

Max_Headroom’s picture

I see it on both. It's right at the bottom.
If you don't see the _phptemplate_variables() function in template.php, you have to create it.
http://drupal.org/node/207841

Michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks, Zandroc

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.