Drupal 6.2 - In Splash configuration page are missing the menus What and How.

CommentFileSizeAuthor
#7 splash-247892.patch1016 bytesalyawn
#1 splash.module.zip2.77 KBionuts71

Comments

ionuts71’s picture

StatusFileSize
new2.77 KB

I solved the problem:

Upload the attached file or modify yourself splash.module file as following:

You must add
'access arguments' => array('administer site configuration'),
in
$items['admin/settings/splash/what'] = array(
and
$items['admin/settings/splash/how'] = array(

So, change from:

  // Admin
  $items['admin/settings/splash'] = array(
		'title'								=> t('Splash'),
		'description'					=> t('Show a splash page before/over the actual frontpage.'),
		'page callback'				=> 'drupal_get_form',
		'page arguments'			=> array('splash_admin_when'),
		'access arguments'		=> array('administer site configuration'),
		'file'								=> 'splash.admin.inc',
	);
  $items['admin/settings/splash/when'] = array(
		'title'								=> t('When'),
		'description'					=> t('Set WHEN the splash page is displayed.'),
		'type'								=> MENU_DEFAULT_LOCAL_TASK,
		'weight'							=> -10,
	);
  $items['admin/settings/splash/what'] = array(
		'title'								=> t('What'),
		'description'					=> t('Set WHAT is displayed as the splash page.'),
		'page arguments'			=> array('splash_admin_what'),
		'type'								=> MENU_LOCAL_TASK,
	);
  $items['admin/settings/splash/how'] = array(
		'title'								=> t('How'),
		'description'					=> t('Set HOW the splash page is displayed.'),
		'page arguments'			=> array('splash_admin_how'),
		'type'								=> MENU_LOCAL_TASK,
	);

to:

  // Admin
  $items['admin/settings/splash'] = array(
		'title'								=> t('Splash'),
		'description'					=> t('Show a splash page before/over the actual frontpage.'),
		'page callback'				=> 'drupal_get_form',
		'page arguments'			=> array('splash_admin_when'),
		'access arguments'		=> array('administer site configuration'),
		'file'								=> 'splash.admin.inc',
	);
  $items['admin/settings/splash/when'] = array(
		'title'								=> t('When'),
		'description'					=> t('Set WHEN the splash page is displayed.'),
		'type'								=> MENU_DEFAULT_LOCAL_TASK,
		'weight'							=> -10,
	);
  $items['admin/settings/splash/what'] = array(
		'title'								=> t('What'),
		'description'					=> t('Set WHAT is displayed as the splash page.'),
		'page arguments'			=> array('splash_admin_what'),
		'access arguments'		=> array('administer site configuration'),
		'type'								=> MENU_LOCAL_TASK,
	);
  $items['admin/settings/splash/how'] = array(
		'title'								=> t('How'),
		'description'					=> t('Set HOW the splash page is displayed.'),
		'page arguments'			=> array('splash_admin_how'),
		'access arguments'		=> array('administer site configuration'),
		'type'								=> MENU_LOCAL_TASK,
	);

After that, go to Site configuration -> Performance and Clear cached data.

tnanek’s picture

These changes should be implemented in the release version, in all honestly the module is currently not operational at all without these menu items being accessible.

miseryshining’s picture

thanks a lot for this. as the previous poster said.. quite a shame it still isn't included.

jackhutton’s picture

can you add a flash .swf file as the html input? using the object embed tags or the reference to the .js active content?
It works w. your code additions of the 'how' and 'what' .. I'd like this to be the landing page.. then redirect to the main site.. and the landing page would be a flash page. Very useful with the conditions.. if I can make this work with a custom full page flash movie/swf..that'd be great. thanks

lmw94002’s picture

Thanks for the fix. Module seems simple and does exactly what I want. Glad I didn't have to bang my head too hard on the desk to figure out what is missing. However I'm still having issues trying to get a simple HTML page to display and understanding how it's supposed to work.

On the "How" Screen, I see 3 choices and the 1st one seems invalid. In the .module, it seems only choice 2 & 3 are valid. So the "thinkbox" seems to be the option, it works... but the "Content" I wrote in the What tab doesn't display. I think I'm missing something?

--edit--
I sorta found the issue... It will work if the input is "filtered HTML" but does not work when "full HTML" is selected.

not_Dries_Buytaert’s picture

@ionuts71: Thx for this fix. Now, it works flawlessly. Should be included in the next release.

alyawn’s picture

StatusFileSize
new1016 bytes

I have created a patch that does what ionuts71 mentioned. This should be a no-brainer.

seanr’s picture

Title: Configuration page in Drupal 6.2 » Menu items lack required access parameters in Drupal 6
Priority: Normal » Critical

Why has this still not been done. Does this module no longer have an active maintainer?

j0rd’s picture

Same issue. Someone needs to roll a new stable release...this is silly.

seanr’s picture

Status: Active » Fixed

Took over control of the module since it has been unmaintained, so this is now fixed. Release should be up shortly.

Status: Fixed » Closed (fixed)

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