Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9989

Skip PM popup in overall_header.html, if there are no new PMs.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.9-RC1
    • 3.0.8
    • Styles
    • None
    • n/a

      overall_header.html in prosilver has the following code:

      <!-- IF S_USER_PM_POPUP -->
      	if ({S_NEW_PM})
      	{
      		var url = '{UA_POPUP_PM}';
      		window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
      	}
      <!-- ENDIF -->

      should be changed to:

      <!-- IF S_USER_PM_POPUP and S_NEW_PM-->
      	var url = '{UA_POPUP_PM}';
      	window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
      	}
      <!-- ENDIF -->

      this will a save a few (precious) bytes on every page request.

            nickvergessen Joas Schilling
            nlopes nlopes [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: