vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Minimum posts to view Forum [English/German] (https://vborg.vbsupport.ru/showthread.php?t=49148)

Sinclair 02-19-2003 10:00 PM

Minimum posts to view Forum [English/German]
 
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/showthrea...666#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/showthrea...666#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

Quote:

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:
PHP Code:

    $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:
PHP Code:

    $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]!=&& $bbuserinfo[usergroupid]!=&& $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-20-2003 11:34 PM

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 01: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:
Code:

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

if($bbuserinfo[posts]<$foruminfo['minposts']) {
good hack thoe

N9ne 04-22-2003 01: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 02:22 PM

OMG, thank you, i have been dying for this!! Looked everywhere.. thnx man

FWF 07-27-2003 07:06 PM

can someone update this hack ?

Mickie D 07-29-2003 06: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 01:11 AM

Was mache ich falsch ?

Ich bekomme als Admin immer noch die Fehlermeldung ?

FWF 09-02-2003 08:42 PM

can someone PLEASE post a working version of this hack for 2.3.0 ?

i really need it


All times are GMT. The time now is 07:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02009 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete