vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   minimum post to view threads (https://vborg.vbsupport.ru/showthread.php?t=58347)

Rampag33 11-04-2003 04:32 PM

ok I put the code in showthread php

- ABC
--- aaa
--- bbb
--- ccc

for aaa = website.com/forumdisplay.php?s=&forumid=8

so I use 8

Code:

if ($bbuserinfo['posts'] < 9999 AND $thread['forumid'] == 8)
{
  eval("standarderror(\"".gettemplate("error_notenouoghposts")."\");");
}

Still was able to view the threads & posts

Sylvus 11-04-2003 05:14 PM

Well I tired to go to your web site to see it for myself but alas, you don't have your url entered.

Maybe you're running v3 or an older version than the one I'm running (2.3.0) but it works like a charm on my forum.

Good luck with it.

Syl...

Rampag33 11-04-2003 05:20 PM

OMFG I can't belive I did that. Yeah it works just fine, infact perfectly.
It was a common user mistake

Code:

find:
PHP:
if ($noshutdownfunc) {

above:

for some reason I read that as below.

Thanks for helping me and us out. It works

DiscussAnything 02-16-2004 11:29 PM

As quick and easy as this may be, someone oughta post this in the vb2 full release forum. I'm sure a lot of people (like me) are looking for something that works well, and they may not check this forum too often :)

One quick additional thing though, I would like my guests to be able to view the forums they have access to, but registered users need to post at least once.

Would that be something like:

PHP Code:

if ($bbuserinfo['usergroupid']==AND $bbuserinfo['posts'] < AND $thread['forumid'] == 4)
{
  eval(
"standarderror(\"".gettemplate("error_notenouoghposts")."\");");


where usergroup 2 is my registered group?

--Nevermind, tried this and it works great :)


All times are GMT. The time now is 12:49 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.01828 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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