PDA

View Full Version : minimum post to view threads


Rampag33
11-02-2003, 03:07 PM
I know there 2 or 3 haccs for this but can someone make one that works with vbulletin 2.3.2

Sylvus
11-03-2003, 01:22 AM
How do you plan to make this work for new users? How can someone make a post if they start out with 0 posts and cannot see active threads to reply to and join in on?

Syl...

Rampag33
11-03-2003, 01:36 AM
Make it to where they can only post in ceratin sections first.
Alot of stuff on my site is adult material so don't really need the people who aren't actively on the forums to just look at the pics/movies and spank off.

Zachery
11-03-2003, 12:05 PM
Make it to where they can only post in ceratin sections first.
Alot of stuff on my site is adult material so don't really need the people who aren't actively on the forums to just look at the pics/movies and spank off.
time for multiple usergroups and access masks ^^

Rampag33
11-03-2003, 03:09 PM
That would be alot of user groups and some serious changing for about 700 members. That's why it was easy with the minimum post to view threads.

Zachery
11-03-2003, 03:55 PM
That would be alot of user groups and some serious changing for about 700 members. That's why it was easy with the minimum post to view threads.
very ez with vb3 ^^ where vbulletin manages promotions for you

Rampag33
11-03-2003, 04:11 PM
Yeah I would have upgraded to vb3 but way too haccs installed.

assassingod
11-03-2003, 04:17 PM
Have you tried all the Minimum Posts to Views Threads hacks? There are 2 be Lesane which work very well. If they dont, i'll make one for you:)

Rampag33
11-03-2003, 05:28 PM
Yeah I've tried them all. They work on all vb's under 230
none of them work on anything thats 230 and higher and I'm running v232.

assassingod
11-03-2003, 05:46 PM
Ok, open newthread.php and find:

updateuserforum($foruminfo['forumid']);


Above add:

if ($bbuserinfo[posts] < 20)
{
eval("standarderror(\"".gettemplate("error_notenoughposts'")."\");");
}

(You can change 20 to whatever number you want)

Creat a new template called 'error_notenoughposts'
with the contents:

You do not have enough posts to create a new thread.

Rampag33
11-03-2003, 06:05 PM
Thx but I need a minimum post to view a thread
that will make it to where you need a certain amount of post to make a new thread.

Ii'm looking for one to view a thread.

assassingod
11-03-2003, 06:09 PM
Whops, I edited the wrong file. Let me fix:)

assassingod
11-03-2003, 06:14 PM
Open showthread.php and find:

if ($noshutdownfunc) {


Above add:

if ($bbuserinfo[posts] < 20)
{
eval("standarderror(\"".gettemplate("error_notenoughposts")."\");");
}

(You can change 20 to whatever you want)

Create a new template called 'error_notenoughposts' with the contents:

You do not have enough posts to view this thread


Keep in mind that the only way users will be able to post is via threads

Rampag33
11-03-2003, 06:38 PM
from this code it looks like it would do all threads, and I need to to specific forums for this

ex. general chat - minum would be 0
for movies minimum would be 20

assassingod
11-03-2003, 06:47 PM
Alright, will work in it

Rampag33
11-03-2003, 09:27 PM
thank you

assassingod
11-04-2003, 06:24 AM
Do something like this:
find:
if ($noshutdownfunc) {

above:

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


and create the template that i mentioned above

and for every forum you want to add, place after 4

OR $bbuserinfo['posts'] == XX AND $thread['forumid'] == XX

Rampag33
11-04-2003, 01:33 PM
unfortunately it didn't work. I made the forum count 9999 just to make damn sure I couldn't get in it and double checc the forumid it didn't work.

Lesane
11-04-2003, 02:13 PM
The code of 'assassingod' is good and therefor it must work. Are you sure that you mean no access to threads or do you mean that you want to limit the access to forums (so no view of threads listed in that forum, file: forumdisplay.php) ?

Sylvus
11-04-2003, 02:24 PM
This code worked for me.

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

My subforum #35 (the Announcement Forum) would not let me view any thread within that forum #35 since I had under 4000 posts. I could still go into the Announcement Forum and see all the threads that were posted, but attemping to read any of them barfed out the error template noted above (which you must create).

Only thing I can say is you have the wrong forumid for the forum you are attemping to view.

If your forums are like this:

The Bar
- General Chit Chat
- Spam stuff
- Hot women

And you want this code to only work for General Chit Chat, it's the General Chit Chat forumid # that you must use and not "The Bar" forumid.

v2.3.0 running here. Works like a charm! Thanks assassin!

Syl...

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


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


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:


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


where usergroup 2 is my registered group?

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