No one has any idea how I can get this option to save when a user selects it? I feel like I'm at that point where I'm so close but still so far away.
--------------- Added [DATE]1263269702[/DATE] at [TIME]1263269702[/TIME] ---------------
Well I figured that maybe this in the hook albumdata_presave, which I thought would work....
PHP Code:
// if changing an album to a webcomic album, be sure we actually have perm to change it
if ($vbulletin->GPC['albumtype'] == 'webcomic' AND $albuminfo['state'] != 'webcomic')
{
$creator = fetch_userinfo($albumdata->fetch_field('userid'));
cache_permissions($creator);
{
$vbulletin->GPC['albumtype'] = 'webcomic';
}
}
But it didn't. I got this error...
Quote:
Parse error: syntax error, unexpected $end, expecting ')' in /home/righscom/public_html/addons/projectfanboy/vb/album.php on line 1770
|
Which I'm looking into but haven't figured out where this missing
) is supposed to be. (They all seem to match up so I'm kind of confused on that one.)
Then I figured that maybe the code wasn't getting inserted before the code:
PHP Code:
$albumdata->set('state', $vbulletin->GPC['albumtype']);
$albumdata->pre_save();
Since the hook appears after it in album.php so I manually edited the file just to see if it would work then. That didn't work either.