PDA

View Full Version : For Sale Con Men


wastegate
09-11-2002, 04:29 AM
Hi sorry if this has been done or suggested before but I run http://www.performanceforums.com and we have a dedicated for sale section where ppl can sell thier old parts etc on the section free of charge, what I wanna do though is limit it so that only members of a certain number of day /and posts can make new threads in the for sale section.. Any way of doing this?

Logician
09-11-2002, 07:50 AM
First install Advanced Templates Hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325), then edit template newthread and add this code in the begining (before everything else!):


[[($bbuserinfo[posts]<X and $forumid==Y)]]
You dont have permission to write here because you have less than X posts (You can use all HTML codes you want to design the error page nicely here)
[[/($bbuserinfo[posts]<X and $forumid==Y)]][[(!($bbuserinfo[posts]<X and $forumid==Y))]]


Now go to the end of template and (after everything) add this

[[/(!($bbuserinfo[posts]<X and $forumid==Y))]]


Replace all Xs with min.post count to post in this forum and Y with your forumid. Please apply carefully and correctly and after you applied it, test your new template with different conditions (with a user less than X posts, user more than x posts, in forum Y, outside forum Y etc) to make sure you applied it correctly..

Enjoy..