|
Author | Topic: Post Count Requirement for Board Access (Read 717 times) |
Pebble Code Helper IOD Supporter member is offline
![[avatar] [avatar]](http://i1136.photobucket.com/albums/n494/pebbleleague/FootballGif.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2011 Gender: Male  Posts: 1,179 Location: Here & There Karma: 155 |  | Re: Post Count Requirement for Board Access « Reply #15 on May 10, 2012, 1:23pm » | |
Hi LunyRed, I've tried to access that sub-board lots of different ways as a guest and there's no way I can get in! The only way I can think of for members with less than 20 posts to get in is if they have javascript disabled. The senior members must have cookies enabled. If they clear their cookies(or have signed in on a computer/phone they don't usually use) and go straight to this page (or from the home page) then it wont let them in, they need to have been to a page that contains their post count. If you are still having trouble with this then let me know and I'll take another look.
|
|
|
wormopolis New Member member is offline
![[avatar] [avatar]](http://i197.photobucket.com/albums/aa250/WORMOPOLIS/worm_unblink.jpg)
![[yim] [yim]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-yim_off.png)
Joined: Jun 2010 Gender: Male  Posts: 27 Karma: 8 |  | Re: Post Count Requirement for Board Access « Reply #16 on May 19, 2012, 12:34am » | |
what pebble says is true. The code has no way of knowing post count unless it has seen it on the page somewhere, and it stores it in a cookie for global access.
if they are clearing their cookies, it has to store the post count again. there just isnt another way that isnt against TOS to do this.
| |
|
LunyRed Senior Member member is offline
![[avatar] [avatar]](http://i208.photobucket.com/albums/bb261/Sid_Jr0602/Avatars_II/Upset_Kuro_Usagi_100x100.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Sept 2009 Gender: Male  Posts: 542 Location: An archipelago in SE Asia Karma: 14 |  | Re: Post Count Requirement for Board Access « Reply #17 on May 22, 2012, 3:06am » | |
I see then. Now I understand why. I think the senior members won't find it inconvenient to have a look at their post count first (either in a thread or their profile) before they can enter the sub-board. I'll help them understand by explaining why this happens.
So as long as new members can disable javascript to enter, is there no other way to circumvent that process? It can be quite annoying that the impatient newcomers would be sneaky enough to cheat their way through.
|
![[image] [image]](http://i741.photobucket.com/albums/xx54/44udonge/Mine/GOTS-ProudMember-LunyRed.png) [ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o' |
|
Speed Moderator v5 Theme Support member is offline
![[avatar] [avatar]](http://i.imgur.com/XTapr2O.png)
The Vortex
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Apr 2011 Gender: Male  Posts: 5,571 Location: In The Vortex Of IOD Karma: 215 |  | Re: Post Count Requirement for Board Access « Reply #18 on May 22, 2012, 9:39am » | |
May 22, 2012, 3:06am, LunyRed wrote:
So as long as new members can disable javascript to enter, is there no other way to circumvent that process? It can be quite annoying that the impatient newcomers would be sneaky enough to cheat their way through.  |
|
Check this code out
Click
|
![[image] [image]](http://i.imgur.com/hruYb.gif)
![[image] [image]](http://i1195.photobucket.com/albums/aa385/demonspeed33/Speeds%20Avatars/4Bmyv.png) WARNING FOR [ME]! DO NOT CLICK HERE! |
|
LunyRed Senior Member member is offline
![[avatar] [avatar]](http://i208.photobucket.com/albums/bb261/Sid_Jr0602/Avatars_II/Upset_Kuro_Usagi_100x100.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Sept 2009 Gender: Male  Posts: 542 Location: An archipelago in SE Asia Karma: 14 |  | Re: Post Count Requirement for Board Access « Reply #19 on May 28, 2012, 3:06am » | |
May 22, 2012, 9:39am, Speed wrote: Hey! I....noticed I have the same code right here that blocks the forum if Javascript is disabled. Actually, it was Sub who taught me about it. But....I have no idea if this really worked for my forum...
<script type="text/javascript"><!-- // Important Do not Touch document.getElementById('catdiv').style.display="block"; // --></script>
<noscript><center><font style="font-size: 42px; font-weight: bold; color: #F26C23">To view <b>Lunatic Red™</b><br />and all of its<br />Great Content...<br />Please Enable JavaScript.<br /><br /></font></center></noscript>
If anyone can pinpoint any mistakes with the text I used, then I'd greatly appreciate it..
|
![[image] [image]](http://i741.photobucket.com/albums/xx54/44udonge/Mine/GOTS-ProudMember-LunyRed.png) [ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o' |
|
Speed Moderator v5 Theme Support member is offline
![[avatar] [avatar]](http://i.imgur.com/XTapr2O.png)
The Vortex
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Apr 2011 Gender: Male  Posts: 5,571 Location: In The Vortex Of IOD Karma: 215 |  | Re: Post Count Requirement for Board Access « Reply #20 on May 28, 2012, 9:07am » | |
Best thing to do is to create a regular member account on your forum, turn off java and see if you can access the board you are protecting.
|
![[image] [image]](http://i.imgur.com/hruYb.gif)
![[image] [image]](http://i1195.photobucket.com/albums/aa385/demonspeed33/Speeds%20Avatars/4Bmyv.png) WARNING FOR [ME]! DO NOT CLICK HERE! |
|
Pebble Code Helper IOD Supporter member is offline
![[avatar] [avatar]](http://i1136.photobucket.com/albums/n494/pebbleleague/FootballGif.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2011 Gender: Male  Posts: 1,179 Location: Here & There Karma: 155 |  | Re: Post Count Requirement for Board Access « Reply #21 on May 29, 2012, 2:30am » | |
May 28, 2012, 3:06am, LunyRed wrote: May 22, 2012, 9:39am, Speed wrote: Hey! I....noticed I have the same code right here that blocks the forum if Javascript is disabled. Actually, it was Sub who taught me about it. But....I have no idea if this really worked for my forum...
<script type="text/javascript"><!-- // Important Do not Touch document.getElementById('catdiv').style.display="block"; // --></script>
<noscript><center><font style="font-size: 42px; font-weight: bold; color: #F26C23">To view <b>Lunatic Red™</b><br />and all of its<br />Great Content...<br />Please Enable JavaScript.<br /><br /></font></center></noscript>
If anyone can pinpoint any mistakes with the text I used, then I'd greatly appreciate it..  |
|
Hi LunyRed, The code you have should work fine but you are missing the <div> tags. They should look something like <div id="catdiv" style="display:none"> in your global header, and a closing div tag </div> top of your global footer.
If you can remember where you found the code it'd be helpfull.
(sorry it's brief but I'm on vacation at the moment - back friday )
|
|
|
Pebble Code Helper IOD Supporter member is offline
![[avatar] [avatar]](http://i1136.photobucket.com/albums/n494/pebbleleague/FootballGif.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2011 Gender: Male  Posts: 1,179 Location: Here & There Karma: 155 |  | Re: Post Count Requirement for Board Access « Reply #22 on Jun 1, 2012, 6:26am » | |
I'm back!
I've just tested this and it works. 
I didn't find the code but if you put this at the bottom of your GLOBAL HEADER :
Code:<div id="catdiv" style="display:none">
|
|
And this at the top of your GLOBAL FOOTER :
Code:</div> <script type="text/javascript"><!-- // Important Do not Touch document.getElementById('catdiv').style.display="block"; // --></script>
<noscript><center><font style="font-size: 42px; font-weight: bold; color: #F26C23">To view <b>Lunatic Red™</b><br />and all of its<br />Great Content...<br />Please Enable JavaScript.<br /><br /></font></center></noscript>
|
|
It's the same code you already have with the div tags added.
|
|
|
LunyRed Senior Member member is offline
![[avatar] [avatar]](http://i208.photobucket.com/albums/bb261/Sid_Jr0602/Avatars_II/Upset_Kuro_Usagi_100x100.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Sept 2009 Gender: Male  Posts: 542 Location: An archipelago in SE Asia Karma: 14 |  | Re: Post Count Requirement for Board Access « Reply #23 on Jun 1, 2012, 10:15pm » | |
Jun 1, 2012, 6:26am, Pebble wrote:I've just tested this and it works. 
I didn't find the code but if you put this at the bottom of your GLOBAL HEADER :
Code:<div id="catdiv" style="display:none">
|
|
|
|
Yay! 
Strange... I don't know why but... ^^;; This was what I found at the bottom of my forum's GLOBAL HEADER:
<center> <div id="catdiv"> Does that mean, I should just replace those lines with the code you provided? The <center> tags are there to keep the forum's placement in the center. Removing the <center> tags aligned the forum to the left. @_@
Jun 1, 2012, 6:26am, Pebble wrote:And this at the top of your GLOBAL FOOTER :
Code:</div> <script type="text/javascript"><!-- // Important Do not Touch document.getElementById('catdiv').style.display="block"; // --></script>
<noscript><center><font style="font-size: 42px; font-weight: bold; color: #F26C23">To view <b>Lunatic Red™</b><br />and all of its<br />Great Content...<br />Please Enable JavaScript.<br /><br /></font></center></noscript>
|
|
It's the same code you already have with the div tags added. |
|
Added. But I think(?) the only difference is the addition of the style element added in <div>? I had to keep the forum's alignment at the center.
Anyway, I've never actually disabled Javascript in my PC before ever since I installed it.. >_<;
|
![[image] [image]](http://i741.photobucket.com/albums/xx54/44udonge/Mine/GOTS-ProudMember-LunyRed.png) [ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o' |
|
Pebble Code Helper IOD Supporter member is offline
![[avatar] [avatar]](http://i1136.photobucket.com/albums/n494/pebbleleague/FootballGif.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2011 Gender: Male  Posts: 1,179 Location: Here & There Karma: 155 |  | Re: Post Count Requirement for Board Access « Reply #24 on Jun 2, 2012, 3:15am » | |
It's working!  I just went to your site and disabled javascript. Previously , the message was showing but the site was still visible. Now the site is hidden as well.
|
|
|
LunyRed Senior Member member is offline
![[avatar] [avatar]](http://i208.photobucket.com/albums/bb261/Sid_Jr0602/Avatars_II/Upset_Kuro_Usagi_100x100.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Sept 2009 Gender: Male  Posts: 542 Location: An archipelago in SE Asia Karma: 14 |  | Re: Post Count Requirement for Board Access « Reply #25 on Jun 2, 2012, 7:36pm » | |
Jun 2, 2012, 3:15am, Pebble wrote: Previously , the message was showing but the site was still visible. |
|
Really? For my site, that sounds embarrassing.. x_x;
Jun 2, 2012, 3:15am, Pebble wrote:| Now the site is hidden as well. |
|
YES!
Hey Pebble. I've got another question regarding this topic.
Let's say....a newly signed up member with no posts is already at the home page of my forum. He/She decides to click my restricted sub-board (because of post count restriction) but the restriction blocks him/her from entering. What if he/she disables Javascript while on the home page before clicking the link to that sub-board? What would happen? Will he/she get the error message "To view Lunatic Red™ and all of its Great Content... Please Enable JavaScript." instead for disabling Javascript??
|
![[image] [image]](http://i741.photobucket.com/albums/xx54/44udonge/Mine/GOTS-ProudMember-LunyRed.png) [ME] and I are best buddies~ Unlike me, [ME] is obsessed with Justin Bieber.. o_o' |
|
Pebble Code Helper IOD Supporter member is offline
![[avatar] [avatar]](http://i1136.photobucket.com/albums/n494/pebbleleague/FootballGif.gif)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2011 Gender: Male  Posts: 1,179 Location: Here & There Karma: 155 |  | Re: Post Count Requirement for Board Access « Reply #26 on Jun 3, 2012, 3:48am » | |
Yep, he/she wil get the message and the board will be hidden
|
|
|
|