Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

New Applicants Notifier

BenBen
edited May 2006 in Vanilla 1.0 Help
I'd like to create my own notifer, exactly the same as the "Why don't you try some add-ons?" message, to make it blindingly obvious to anyone who has the relevant privaledges that there are new Applicants to be sorted. Something like "There are 3 new applicants Click here"

I've read the wiki, watched most of it fly over my head, and would be very grateful if someone could kindly explain, step-by-step how I'd do this.

Comments

  • MarkMark Vanilla Staff
    Your best bet is to take a look at the control that adds that message to the page. I believe I used the filler control, and the template file for it is in the root themes directory with a name like addon_reminder or something like that. You'd need to do something similar in your extension. The one thing I'd guide you towards is this: that extension will require that you query the database for applicants. I would NOT query the database UNLESS the user has the require permission. So, check the permissions first and then run the query if necessary. Otherwise it will be queried on every page load by everyone. Oh heck. If you wait a few hours, I'll write this extension tonight. It won't take me long... I'm just at work right now.
  • MarkMark Vanilla Staff
    ** Bookmarks thread
  • Sounds like a handy little extension to me!
  • MarkMark Vanilla Staff
    It's all done: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=45
  • Thanks for the extension Mark!
  • Fantastic. Thankyou Mark
This discussion has been closed.