PDA

View Full Version : need some suggestions


dpakman91
03-11-2004, 01:42 PM
alright, here's my dilemma. i posted over on vb.com forums, and they said i'm more likely to get an answer here. is there a way to EITHER:

1.) make it so a certian number of posts is required to view one specific THREAD (not subforum), OR

2.) make it so a certain post count is required to download one specific ATTACHMENT within a thread?

Xenon
03-11-2004, 04:45 PM
very easy to do:

open showthread.php

find:
// ************************************************** *******************************
// get thread info
$thread = verify_id('thread', $threadid, 1, 1);
$threadinfo = &$thread;

and below add:
if ($threadinfo['threadid'] == xx AND $bbuserinfo['posts'] < yy)
{
print_no_permission();
}

dpakman91
03-11-2004, 05:10 PM
very easy to do:

open showthread.php

find:
// ************************************************** *******************************
// get thread info
$thread = verify_id('thread', $threadid, 1, 1);
$threadinfo = &$thread;

and below add:
if ($threadinfo['threadid'] == xx AND $bbuserinfo['posts'] < yy)
{
print_no_permission();
}
excellent....now my only question....only the items in RED are what i replace with the thread id number and the number of posts required, but only in the code that i ADD...i don't have to change anything in the original code in showthread?

just want to confirm this.

Xenon
03-11-2004, 05:29 PM
you have to replace the xx and yy in the additional code, nothing else to change in showthread.php :)