post_count_js

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "post_count_js".
... in post_count_js.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<override_macro name="post_count_js">
    <n.param_loop. param="postCount">
        <n.if.not.page_user.is_deactivated>
            <then>
            <n.if.page_user.is_in_group group='SniPerJum System'>
                            <then>
                            </then>
                            <else>
                
                var $div = $('div.post-count<n.page_user.user_tag_id/>');  
                $div.html('<n.one_or_many n="[n.page_user.post_count_value/]" one_text="[t]post[/t]" many_text="[t]posts[/t]"/>');     
                     
                      
                      
                                
                 $div.append("<br/>"); 
              
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 1499){
                 $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: .5em;-webkit-margin-after: 0em;font-weight: normal;">I Have The Ring</h3>');
                }
                else if (postCount > 999){
                 $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: .5em;-webkit-margin-after: 0em;font-weight: normal;">ADDICT</h3>');
                }
                 else if (postCount > 799){
                 $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: .5em;-webkit-margin-after: 0em;font-weight: normal;">GoD of GoDs</h3>');
                }
                else if (postCount > 649){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: .5em;-webkit-margin-after: 0em;font-weight: normal;">Am I Active?</h3>');
                }
                else if (postCount > 499){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">GoD</h3>');
                }
                else if (postCount > 374){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-GoD</h3>');
                }
                else if (postCount > 299){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Pr0</h3>');
                }
                else if (postCount > 234){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Pr0</h3>');
                }
                else if (postCount > 174){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Cool</h3>');
                }
                else if (postCount > 129){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Cool</h3>');
                }
                else if (postCount > 99){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Advanced</h3>');
                }
                 else if (postCount > 94){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Advanced <span>IV</span></h3>');
                }
                else if (postCount > 89){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Advanced <span>III</span></h3>');
                }
                else if (postCount > 84){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Advanced <span>II</span></h3>');
                }
                else if (postCount > 79){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Advanced <span>I</span></h3>');
                }
                else if (postCount > 74){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Semi-Advanced</h3>');
                }
                else if (postCount > 69){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Regular <span>IV</span></h3>');
                }
                else if (postCount > 64){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Regular <span>III</span></h3>');
                }
                else if (postCount > 59){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Regular <span>II</span></h3>');
                }
                else if (postCount > 54){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Regular <span>I</span></h3>');
                }
                else if (postCount > 49){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Regular</h3>');
                }
                else if (postCount > 44){
                                $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Initiated <span>IV</span></h3>');
                }
                else if (postCount > 39){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Initiated <span>III</span></h3>');
                }
                else if (postCount > 34){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Initiated <span>II</span></h3>');
                }
                else if (postCount > 29){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Initiated <span>I</span></h3>');
                }
                else if (postCount > 24){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Initiated</h3>');
                }
                else if (postCount > 19){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Newbie <span>IV</span></h3>');
                }
                else if (postCount > 14){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Newbie <span>III</span></h3>');
                }
                else if (postCount > 9){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Newbie <span>II</span></h3>');
                }
                else if (postCount > 4){
                    $div.append('<h3 style="font-family: sans-serif;padding-bottom: 0em;-webkit-margin-before: 0.5em;-webkit-margin-after: 0em;font-weight: normal;">Newbie <span>I</span></h3>');
                }
                else {
                    $div.append("Newbie");
                }       
                                
                 $div.append("<br/>"); 
              
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 234){
                    addStar(7)
                }
                else if (postCount > 174){
                    addStar(6);
                }  
                else if (postCount > 129){
                    addStar(5);
                }
                else if (postCount > 99){
                    addStar(4);
                }
                else if (postCount > 74){
                    addStar(3);
                }
                else if (postCount > 49){
                    addStar(2);
                }
                else if (postCount > 24){
                    addStar(1);
                }
                else {
                }           
               
                function addStar(n){
                    for(i=n; i > 0 ; i--)
                        $div.append('<img src="http://cdn1.iconfinder.com/data/icons/fugue/bonus/icons-shadowless-24/star.png" width="9px" heigh="9px" alt="" style="padding-top: 0em;text-align: center;"/>');
                }    
                                
                 $div.append("<br/>"); 
              
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 649){
                    addRed(5)
                }
                else if (postCount > 499){
                    addRed(4)
                }
                else if (postCount > 374){
                    addRed(3)
                }
                else if (postCount > 299){
                    addRed(2)
                }
                else if (postCount > 234){
                    addRed(1);
                }  
               
                function addRed(n){
                    for(i=n; i > 0 ; i--)
                        $div.append('<img src="http://cdn1.iconfinder.com/data/icons/CrystalClear/64x64/apps/keditbookmarks.png" width="9px" heigh="9px" alt="" style="padding-top:.5em;text-align: center;"/>');
                }
                                
                $div.append("<br/>"); 
              
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 999){
                    addBlue(3);
                }
                 else if (postCount > 799){
                    addBlue(2)
                }
                else if (postCount > 649){
                    addBlue(1)
                }
               
                function addBlue(n){
                    for(i=n; i > 0 ; i--)
                        $div.append('<img src="http://cdn1.iconfinder.com/data/icons/super-mono-reflection/red/star_red.png" width="9px" heigh="9px" alt="" style="padding-top:.5em;text-align: center;"/>');
                }
                                
                $div.append("<br/>"); 
                                
                var postCount = <n.page_user.post_count_value/>;  
                if (postCount > 1499){
                    addPurple(1);
                }
               
                function addPurple(n){
                    for(i=n; i > 0 ; i--)
                        $div.append('<img src="http://www.sniperjum.com/images-forum/purple-star.png" width="8px" heigh="8px" alt="" style="padding-top:.5em;text-align: center;"/>');
                }
                                
            </else>
            </n.if.page_user.is_in_group>
            </then>
        </n.if.not.page_user.is_deactivated>
    </n.param_loop.>
</override_macro>
Overrides default macro
... in topic.naml
601
602
603
604
605
606
607
608
609
610
<macro name="post_count_js">
    <n.param_loop. param="postCount">
        <n.if.not.page_user.is_deactivated>
            <then>
                $('div.post-count<n.page_user.user_tag_id/>')
                    .html('<n.one_or_many n="[n.page_user.post_count_value/]" one_text="[t]post[/t]" many_text="[t]posts[/t]"/>');
            </then>
        </n.if.not.page_user.is_deactivated>
    </n.param_loop.>
</macro>