AgeLock v3.1A
Fixed Cannot use a scalar value
Fixed homepage notification bug (shows even when agelock is globally disabled)
For those with v3.0 already installed, the changes can be made without having to uninstall v3.0B and then install v3.1A,
Edit Plugin "global_start"
FIND
Code:
if($vbulletin->options['agelock_global'] and $vbulletin->options['agelock_hidemain']){
foreach ($vbulletin->forumcache as $key => $value){
if (agelock_check($vbulletin->forumcache[$key]['forumid'],1)){
$vbulletin->forumcache[$key] =0;
}
}
}
REPLACE WITH
Code:
if($vbulletin->options['agelock_global'] and $vbulletin->options['agelock_hidemain']){
foreach ($vbulletin->forumcache as $key => $value){
if (agelock_check($vbulletin->forumcache[$key]['forumid'],1)){
unset($vbulletin->forumcache[$key]);
}
}
}
Template Edit
"forumhome_forumbit_level1_post And forumhome_forumbit_level2_post"
FIND
Code:
<vb:if condition="$vboptions['agelock_frmnt'] AND $forum['agelock']">{vb:raw $vboptions['agelock_frmntm']}</vb:if>
REPLACE WITH
Code:
<vb:if condition="$vboptions['agelock_frmnt'] AND $forum['agelock'] AND $vboptions['agelock_global']">{vb:raw $vboptions['agelock_frmntm']}</vb:if>
However the new version of AgeLock now allows you to specify Usergroup are exempt from the Agelock check, this requires a full update!
Stuie