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


All times are GMT. The time now is 03:01 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.02071 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete