PDA

View Full Version : Minimum posts to view Forum [English/German]


Sinclair
02-19-2003, 10:00 PM
English:
A few users requestet a hack to limit the access on a forum by userposts. This hack will will give an error to the user if he didn?t had enough posts to view the forum. You can specify the number of minimum posts to view the forum by each forum in the admin-cp.

If you have any further questions please put it into this thread or contact me via PM on vB.org or my Forums(http://www.sf-forum.net)

In the next Version, i build it into the search-enginge.

Sorry for my bad english.... ;) - Talk german! :D

If you want to expect Mod/SMods/Admins from the limit, use these Version: https://vborg.vbsupport.ru/showthread.php?postid=356666#post356666


Greetings from Berlin/Germany,

Christopher

---------------------------
German/Deutsch:
Es wurde schon ?fter auf vB.org nach einem Hack gefragt, der den Zugang zu einem Forum auf Grund der bereits abgelegten Posts zu begrenzen. Ihr k?nnt diese Einstellung varibale f?r jedes Forum im Admin-CP einstellen.

In der n?chsten Version werde ich diese Funktion auch auf die Suche ausweiten....

Solltet ihr weitere Fragen haben, schreibt dies bitte in diesen Thread oder kontaktiert mich per PM auf vB.org oder in meinem Forum(http://www.sf-forum.net).

Wenn ihr Mods/SMods/Admins von der Sperre ausnehmen wollt, benutzt diese Version: https://vborg.vbsupport.ru/showthread.php?postid=356666#post356666


Gr??e aus Berlin,

Christopher

Intex
02-20-2003, 12:17 PM
Sounds interesting will take a look at this later :).

Sinclair
02-20-2003, 01:08 PM
A screenshoot of the Message:

Dean C
02-20-2003, 02:11 PM
Good idea. Lesane released a hack like this but it was only in english so good job pal :P

- miSt

TranceMaster
02-21-2003, 11:41 AM
amazing man! i run a music production website, and we have a sample forum so all the samples that we have are based in this forum, and its hard to keep track of who takes what, and i hate leechers, i put in alot of work and i hate it when people come along and dont contribute, even a small thank you is all that is needed. this could be just what i needed.
thank you :)

PSI|Dr-X
02-21-2003, 03:46 PM
Cool hack :knockedout: will install {needed}

Can you please arrange that mod / admins / supermods

can view that forum without having $minposts

Sinclair
02-21-2003, 05:40 PM
Originally posted by PSI|Dr-X
Cool hack :knockedout: will install {needed}

Can you please arrange that mod / admins / supermods

can view that forum without having $minposts

I attached a new install instruction for that.
Ich habe eine neue Anleitung diesem Post angeh?ngt mit den entsprechenden Instruktionen....

Otherwise here the changes:
Alternativ hier die Ver?nderungen:

file: /forumdisplay.php

replace/ersetze:
$foruminfo=getforuminfo($thread['forumid']);

// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### BEGIN ###

if($bbuserinfo[posts]<$foruminfo[minposts]) {
eval("standarderror(\"".gettemplate("error_forum_minposts")."\");");
}

// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### END ###

with this/durch dieses:
$foruminfo=getforuminfo($thread['forumid']);

// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### BEGIN ###

if($bbuserinfo[posts]<$foruminfo[minposts] && $bbuserinfo[usergroupid]!=5 && $bbuserinfo[usergroupid]!=6 && $bbuserinfo[usergroupid]!=7) {
eval("standarderror(\"".gettemplate("error_forum_minposts")."\");");
}

// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### END ###

PSI|Dr-X
02-21-2003, 06:39 PM
Thnx Sinclair

Sinclair
02-22-2003, 11:07 AM
No Problem ;)

I already work at the version which includes the search-engine...

kevinnguyen
04-21-2003, 12:34 AM
thanx a bunch
a really need this hack
somehow Lesane's hack doesnt work for me
yours works great
ur really my my savior :D

kevinnguyen
04-22-2003, 02:28 AM
btw, i think there's a minor bug
if a guest click on a thread title in a private forum, he will get the message "You didnt have enough post to view this forum" which i think is not approriate
this is how i fixed it

add:
if($bbuserinfo[posts]<$foruminfo['minposts'] and $bbuserinfo['userid']!=0) {
instead of
if($bbuserinfo[posts]<$foruminfo['minposts']) {
good hack thoe

N9ne
04-22-2003, 02:42 AM
newreply.php, newthread.php, search.php still need modifying.

Search.php: You can make it so forumjump doesn't display the forum if you can't get in // When searching, you can't search in that forum // Posts in that forum won't be shown in search results // getnew doesn't show posts from that forum // finding all posts by a user, leaves out posts from that forum

newreply.php: through a url, a user can still reply to threads in the forum and use topic review to see other replies in the thread.

newthread.php: users through a url can bypass the system like above, and create new threads in the forum.

Xyphen
05-03-2003, 03:22 PM
OMG, thank you, i have been dying for this!! Looked everywhere.. thnx man

FWF
07-27-2003, 08:06 PM
can someone update this hack ?

Mickie D
07-29-2003, 07:15 PM
this hack should not be full release

its very buggy !!!!

and members can post using back routes as said in post above !!! (post 12)

Fatherdoom
08-02-2003, 02:11 AM
Was mache ich falsch ?

Ich bekomme als Admin immer noch die Fehlermeldung ?

FWF
09-02-2003, 09:42 PM
can someone PLEASE post a working version of this hack for 2.3.0 ?

i really need it