Hide feedback for Non members
April 29th, 2013Version 4.1.7 and 5.0.5
Done on V5 elf only
In single.main.php
@version $Id: single.main.php,v 1.7 2007/11/24 21:31:22 fplanque Exp $
added if(isset($current_User) and ($current_User->level)>1){ and final } to hide the comment form from public view. In this case, not this blog, the user has to belong to a group level of 2 or higher, i.e.they will have to register and be allocated privaledges.
Code
if(isset($current_User) and ($current_User->level)>1){ | |
skin_include( '_item_feedback.inc.php', array( | |
'before_section_title' => '<h3>', | |
'after_section_title' => '</h3>', | |
) );} |
Clear Sessions of Anon
April 26th, 2013Button to clear anonymous viewers, manly search engines as the database can get too large.
I'm thinking of adding a script button which will delete anonymous sessions and leave only recognised users.
Probably put the button on the Users > Sessions page in the backoffice
[codespan]DELETE FROM `evo_sessions` WHERE `sess_user_ID`IS NULL
[/codespan]







