Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Exclude myself in Forum Views

Asked Modified Viewed 3,035 times
M
mrijkhals
M
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hi people......

I want to know if there is an option to exclude myself (and some other mods) from forum and thread counting.
I am admin but the thread and forum counter goes +1 when i edited it or viewed it. So it gives you the wrong counts.

Is it possible to exclude some people by their forum group or rights ?

Thank you very much.
Edited by mrijkhals on 15-09-2014 16:43,
0 replies

4 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hello,

Emm, forum counters do not lie or get it wrong it increments per view so every time you refresh yup it's another count +. It's normal.

Groupaccess can be set for each individual forum board just edit your forums you will see the option there.

Regards
0 replies
M
mrijkhals
M
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Hi Craig.

Yeah i know about the group access but that way you choose if a group member can view, edit or (whatever) function more.
I'm looking for an option to bypass the counter for admins and mods.

If you did mean that, then i don't see an option in the edit forum board.

Merged on Sep 19 2014 at 09:50:51:
Craig,

I have customized viewthreat.php to exclude mods, admins en supermods from threat counts +1.
Here is the thing i have modified.

Originally;
dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");


After modification;
if (!iMOD OR !iADMIN OR !iSADMIN)
{
  dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
}


Now, i have added some feature to. We have a category in our forum that is only for mods, admins and s.admins. In my modification, the counter stay's at zero in the admin category because i have excluded them out. So i have made the next modification to it;

if($fdata['forum_cat'] == 22)
   {/* do count if it is the admin and mods category with cat-id 22   */
      dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
   }else
   {/* all else   */
      if (!iMOD OR !iADMIN OR !iSADMIN)
      {
         dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
      }
   }
Edited by mrijkhals on 19-09-2014 09:50,
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Maybe change to:

if ($can_post) 


to check if admin had access instead of check if categorie is fixed number
0 replies
M
mrijkhals
M
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Maybe change to:
if ($can_post) 

to check if admin had access instead of check if categorie is fixed number
- by douwe_yntema


Dank je wel Douwe ;)

But what does "$can_post" do exactly..
I need to know if the visitor of the threat is a visitor or member. So i can exclude the mod and admin. But remember that a mod is also a member with extra rights
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
M
M
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet