inherit
sarahashleycrispo@hotmail.com
196732
0
Jan 15, 2017 20:41:04 GMT -8
femaleuser
107
July 2013
femaleuser
|
Post by femaleuser on Dec 16, 2015 11:06:25 GMT -8
In my forum, we have a 'dead' member group. We do not delete them so that members can retrieve their information. However, the total member count includes the dead group, making our site appear as if we have over 200 members that we do not have. Is there a way to code it so that it will not count the dead group? I feel as if it's more honest.
Here is the coding I am using with our current template:
<div class="ictotalmembers"><div style="border-bottom:5px solid #333;line-height:32px;font-size:16px;font-family:'Goudy Bookletter 1911';">Total Residents</div><div style="margin-top:20px;font-size:20px;">$[total_members]</div></div>
Thank you in advance.
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Dec 17, 2015 15:23:28 GMT -8
In my forum, we have a 'dead' member group. We do not delete them so that members can retrieve their information. However, the total member count includes the dead group, making our site appear as if we have over 200 members that we do not have. Is there a way to code it so that it will not count the dead group? I feel as if it's more honest. Here is the coding I am using with our current template: <div class="ictotalmembers"><div style="border-bottom:5px solid #333;line-height:32px;font-size:16px;font-family:'Goudy Bookletter 1911';">Total Residents</div><div style="margin-top:20px;font-size:20px;">$[total_members]</div></div>
Thank you in advance. Hi, i couldn't find a way to automatically calculate it, but if you're ok with manually updating it, you can set the number of "dead" members in a variable, just place this somewhere in the forum wrapper, preferably inside the <head></head> tags: <script type="text/javascript"> <!-- var dead_group=" 3"; // total number of members in the "Dead Group" --> </script> then replace your code for the total members with this: <script type="text/javascript"> <!-- var ntm=($[total_members]-dead_group); // this will calculate the new member total by subtracting "dead members" from "total members", DO NOT EDIT.
document.write('<div class="ictotalmembers"><div style="border-bottom:5px solid #333;line-height:32px;font-size:16px;font-family:\'Goudy Bookletter 1911\';">Total Residents</div><div style="margin-top:20px;font-size:20px;">{if $[current_user.is_member]}<a href="/members/">{/if}'+ntm+'{if $[current_user.is_member]}</a>{/if}</div></div>'); --> </script>
|
|
inherit
sarahashleycrispo@hotmail.com
196732
0
Jan 15, 2017 20:41:04 GMT -8
femaleuser
107
July 2013
femaleuser
|
Post by femaleuser on Dec 17, 2015 17:01:37 GMT -8
Hmm, I attempted this, but it ended up just messing up the page and the section vanished, and when I tried to modify it, I got everything back in its rightful spot, but the number of total members disappeared. I'm guessing it has to do with the coding of the skin. Unfortunately I am can only do basic coding and could fix only part of the problem. An old member did the basic layout of the site, but I am no longer in contact with them. Anyhow, thank you for trying.
|
|