Tuning the dipolar second-order nonlinear optical properties of 5-π-delocalized-donor-1,3-di(2-pyridyl)benzenes, related cyclometallated platinum(ii) complexes and methylated salts.