2007-12-18, 01:22 PM
OK, I am attempting to make a "No Links in Post until certain number of posts" plugin.
Well, I edited class_parser.php, and added a few things. Using $mybb->user['postnum'] I stopped users from viewing links unless they have a certain number of posts. But I want them able to view links, just not post them.
So, is there an easy way to change it?
Or else, what file do I edit for a new post, so I can run a function when the "submit" button is pressed?
And how do you make Javascript alerts in PHP? I tried echo" <script...etc"
Thanks a heap,
BP
Well, I edited class_parser.php, and added a few things. Using $mybb->user['postnum'] I stopped users from viewing links unless they have a certain number of posts. But I want them able to view links, just not post them.
So, is there an easy way to change it?
Or else, what file do I edit for a new post, so I can run a function when the "submit" button is pressed?
And how do you make Javascript alerts in PHP? I tried echo" <script...etc"
Thanks a heap,
BP