Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Discussion View Counter
Discussion View Counter
0
Comments
Looks like this extension isn't found by the Vanilla updater.
Removed unnecessary instructions from readme (obsolete since the release of Vanilla 1.1).
No ideas why the counter stopped working?
Also, before you activate it again, if it needs it, I would suggest making a copy of the vanilla database first.
Affected Elements ViewDiscussions.DiscussionGridView_Add(); The error occurred on or near: Table 'skubeco_vanilla.LUM_discussionviews' doesn't exist
Is there something I need to do to re-create the table?
Related:
Version 1.2.1 has a bad installation routine that can cause the settings file to be corrupted.
This should fix the issue
How can this be fixed?
if( in_array($Context->SelfUrl, array('settings.php', 'extension.php')) && $Context->Session->User->RoleID == $managerRoleId)
by this:
if( in_array($Context->SelfUrl, array('settings.php')) && $Context->Session->User->RoleID == $managerRoleId)
Dunno if it's good to create an array with only one element since I'm not really a coder, but it seems to work so far.
By the way, if someone knows a way to make it work with Discussion Overview like GMonkey asked earlier, I'd be interested too
I use this extension but, my site is now developing so I found that when I (as Admin) view any discussion, the counter is updating. I don't know if anyone finds that necessary but I did, so I add;
function CreateMemberList() { global $Context; $sql = $Context->ObjectFactory->NewContextObject($Context, 'SqlBuilder'); $sql->SetMainTable('User','u'); $sql->AddSelect(array('UserID', 'RoleID', 'FirstName', 'LastName', 'Name', 'Email', 'UtilizeEmail', 'CountDiscussions', 'CountComments', 'DateFirstVisit', 'ShowName', 'Icon', 'CountVisit'), 'u'); $result = $Context->Database->Select($sql, 'MembersList', 'MembersListTable', 'An error occurred while listing the member information.'); //return $Context->Session->RoleID; return $Context->Session->User->UserID; }
right after
include(VIEW_DISCUSSION_EXTENSION_PATH . 'conf/settings.php');
then,
find that line,
if($check)
change it,
if($check && CreateMemberList()!=1)
so if you are an admin (creator of the forum), it will not count your visits...
if I'm mistaken or suggesting something wrong please inform me..
thanks in advance
selflearner./
Edit: Forget it; I played around and found that you just change the first one.