hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 17, 2009 19:00:53 GMT -8
Het, wormopolis, you supplied me with this code, but it's not restricting members in the areas i want them to work.
Here's the code exactly as it looks in my Global Footer.
I'm trying to limit my ad board to 20 posts until they can post or make a topic; but want them to view.
I'm trying to limit my Smash-Mania to 50 posts until they can post ; but want them to view.
and spamfest is the forum games section.
Thanx, bud!
|
|
|
Post by Wormopolis on Jun 17, 2009 23:32:25 GMT -8
if you want create and post to happen at the same number, just use create. post includes create.
create = restrict from creating new threads post = restrict from posting at all
What URL do you have this code on and I will take a look. Are members still able to view the boards? Are they restricted at all?
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 1:10:01 GMT -8
Hey, sorry for posting in the wrong section. I though this was help for codes not from here. Thanx for the prompt response. my url is www.brawldomain.comYes, members can view the board; but i got one member, who can still post. I'll remove the posts; as you said, and just leave it as create. I have it set to this board, bdppv is the board id. www.brawldomain.com/index.cgi?board=bdppv&action=display&thread=2762but, this guy, actionmario keeps getting in. And i want members to sign-up, in a different board, but not have access to these events until they have reched 50 posts total. I'm gonna make those changes you suggested. here's what i modified and that should still allow everyone to view ... just not post anything, correct?
|
|
|
Post by Wormopolis on Jun 18, 2009 1:21:12 GMT -8
no it will allow them to REPLY to threads, but not create NEW ones until they have a postcount of 50.
Keep in mind, this is javascript, so he MIGHT be circumventing the code by disabling javascript in his browser or using NOHEADERS in the URL. You could create a test account for yourself and see if the code works on the test account.
And normally, yes, this area is for codes from other sources. Typically if you have a question or problem with one of my codes, you can just reply to the thread the code is posted in itself.
The area you posted in was for people who dont have accounts and want to give feedback or ask questions as guests. You didnt do anything wrong, I just wanted to keep that area for guests.
I will have a look at the site, but if you create a new account test the code on it and let me know what you find.
|
|
|
Post by Wormopolis on Jun 18, 2009 1:25:14 GMT -8
also.. remove the comma after the last array element...
var dataArray=[ ["advertising",20,"create"], ["bdppv",50,"create"], ["spamfest",25,"create"] ];
but if you want them to not be able to post at all, change all those creates to post
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 1:40:56 GMT -8
Gotcha. And, i have a test account. But has over 50 posts, can i modify the post count total under the profile to less than 50 to test it. or does it already recognize the post count for that account?
EDIT ::::
Nevermind, it only had 25 post on the account. but, i changed it to "post" and removed that comma on the last one, in the code.
but i still get the quick reply , and reply option, and used them. But, the "New Thread" button wasn't there.
|
|
|
Post by Wormopolis on Jun 18, 2009 1:48:18 GMT -8
yah you can modify the post count. the code will update the cookie as soon as you save.
if you happen to switch back to your admin acct however, the cookie will update with THAt post count. so be sure to stay on the test acct until you are done testing.
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 1:52:53 GMT -8
I got it, i think. This HUGE message appeared at the bottom You do not have enough posts to post in this board. I had a separate window open, that still had my admin account up, so after what you said; i closed it, refreshed then tried again. I'm gonna go test out the other boards real quick. If you don't mind; I'd like to start coming here for code support. I like PB Support, but you go into much detail when explaing I'll be back to let you know soon, if everything else turned out right Thanx a bunch, bud!
|
|
|
Post by Wormopolis on Jun 18, 2009 2:06:24 GMT -8
I never took into account that people might have multiple accounts on the same board when I wrote that code, so I might have to update it to include usernames in the cookie.
Based on the fact that you saw that message (which you can edit a little in the document.write lines) means the code is working ok now. if he continues to post in the boards he shouldnt be allowed, that means he is indeed circumventing the code using the methods I put above.
I appreciate your forum contributions! And if you have a question about any other codes, you can just reply to those code threads themselves. that way ppl can troll through the discussion and see if they are having similar problems and if a solution was found.
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 2:23:26 GMT -8
Trust me, already bookmarked, and been visiting each day. I'm not those who just get help, then leave I always show my appreciation; especially when you do walk me through the process step by step. I'm still having trouble on the advertisng board restriction. But i'll tweak around with that. if i want a 20 post count limit, for creating, AND posting; it's "create" right? I do try, through trial and error, to figure out codes, until i have to come for support. Cross Fury hack was a PAIN to figure out cause i wanted words to tuen into images; but was proud when i finally got it
|
|
|
Post by Wormopolis on Jun 18, 2009 2:26:27 GMT -8
if you put it to "post" it should stop both replies and new threads. if you put it to "create" it will just stop new threads.
yah.. crossfury has given a LOT of people headache over the years... and they have written a LOT of patches for it.
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 2:38:43 GMT -8
I'm probably gonna give you a headache after too long And, i think i got it, now. i misread, where i thought you said create prevents both. i understand now But, i have the code at the bottom of my footers, under my affilaites. If i place the code ABOVE my affiliates, does that message appear above them as well. Telling them they don't have they can't post?
|
|
|
Post by Wormopolis on Jun 18, 2009 7:13:50 GMT -8
if your affiliates code uses a document.write or it plain HTML yes.
If you want to make your own error messages, and have those displayed instead of the default, We can make that happen as well.
|
|
hcfwesker
Not New Member
Posts: 37
hcfwesker said 0 great things
|
Post by hcfwesker on Jun 18, 2009 13:27:43 GMT -8
Is there any way to add restricting Private Messaging by post count? Or is there a code for that.
I seen the one where I have to insert names manually; but iI need one mainly for members with 0-10 posts, who join just to PM advertise their site to members.
|
|
|
Post by Wormopolis on Jun 19, 2009 1:47:16 GMT -8
It can be added.
Keep an eye on the thread the code is posted in.
|
|