Hey Andi,
Great work on the wiki. You can see the website I am working on here; www.paddlingabc.com
So here is my problem. In the old release lemming, I modified inc/template.php and a lang/en/lang.php file to create a new action called 'register'. So here is the code I used in the 'lemming' release:
case 'register':
if($conf['useacl'] && $auth){
if($_SERVER['REMOTE_USER']){
}else{
$out .= tpl_link(wl($ID,'do=register&sectok='.getSecurityToken()),
$pre.(($inner)?$inner:$lang['btn_register']).$suf," ",
'class="action login" rel="nofollow"',1);
}
}
break;
This code in the new release works somewhat. What I want to happen is for the register button to appear when a user is not logged in. Then once a user logs into the wiki I want the register button to disappear because obviously they are already registered. Here is the modified code I have tried in Anteater and it is not working perfectly, I cant get the 'register' link to disappear after a user logs into the wiki:
case 'register':
if(!$conf['useacl'] || !$auth){
if(isset($_SERVER['REMOTE_USER'])){
return false;
}else{
$out .= tpl_link(wl($ID,'do=register&sectok='.getSecurityToken()),
$pre.(($inner)?$inner:$lang['btn_register']).$suf," ",
'class="action login" rel="nofollow"',1);
}
}
break;
Could you help me out? I know this must be fairly simple to do but I can't figure out the new way you have structured the actions in template.php with this new anteater release.