The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
v3Arcade mod
I'm looking for a (simple?) mod that restricts access to the Arcade based on number of posts in the last x days. I know Arcade access can be regulated with promotions, but when the member is promoted unlimited access is granted, and I'm looking for an incentive to continous posting. I'm also aware of the Arcade Pass hack in combination with a points system, but frankly that seems like overkill for what I want to achieve. I was hoping for something simple like a template mod.
|
#2
|
|||
|
|||
I did this the cheap and nasty way... in arcade.php find the first instance of:
Code:
$DB_site->free_result($result_gamesettings); Code:
$jointime = (TIMENOW - $bbuserinfo['joindate']) / 86400; // Days Joined $postsperday = $bbuserinfo['posts'] / $jointime; if ($postsperday <= 3) { print_no_permission(); } |
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
Number format is BAAAD if you're not done with the numbers, especially when you're never displaying the output.
Change that line to: Code:
$postsperday = $bbuserinfo['posts'] / $jointime; |
#5
|
|||
|
|||
ahhh yes, should have remembered to change that, I`m doing more with this on my own site.. but don`t want to give away all my secrets
|
#6
|
||||
|
||||
Quote:
|
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
Perhaps you can just answer one question? Hopefully it's not one of your secrets, but how would I make it so the error message is a custom message that I can set? I don't know how to make error messages in VB3 yet.. Thanks!
~006 |
#9
|
|||
|
|||
Sadly 006.. nor do I
Hopefully one of the vb3 expert hackers might be able to answer this question. |
#10
|
||||
|
||||
Good news Giveit2u43, I found this a few days ago. Found it very helpful with making custom error messages: https://vborg.vbsupport.ru/showthread.php?t=64479
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|