When using a prosilver based custom theme, and thus editing the phpbbforum.theme.custom-sample.inc you will then get an error such as:

Fatal error: Call to undefined function _phpbbforum_set_head_script() in D:\www\example.com\modules\phpbbforum\phpbbforum.theme.custom.inc on line 37

This is caused by the function name not being set correctly...

  // uncomment if your theme from prosilver
  $endpos = _phpbbforum_set_head_script(0, $output);
  $endpos = _phpbbforum_set_head_links_prosilver($endpos, $output);

should be

  // uncomment if your theme from prosilver
  $endpos = _phpbbforum_set_head_script_prosilver(0, $output);
  $endpos = _phpbbforum_set_head_links_prosilver($endpos, $output);

( the _prosilver part is missing from the end of the function name _phpbbforum_set_head_script_prosilver )

Thanks! :)

Comments

phreadom’s picture

Version: 6.x-2.0-beta8 » 6.x-2.0-beta9
Status: Active » Fixed

This is fixed in beta9 and can be closed as such I believe. :)

dan.crouthamel’s picture

Never mind - I managed to find the info I need and got it to work :)

......

Is there a tutorial somewhere that tells you how to use a different phpBB theme? I would like to use Bl@ck which is based on the prosilver theme.

http://www.phpbb.com/styles/db/index.php?i=misc&mode=display&contrib_id=...

thanks!

Status: Fixed » Closed (fixed)

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