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 Dashboard Widget for Mac OS X
dan39
New
New Applicants Dashboard Widget for Mac OS X
0
Comments
Not Signed In
[sign in]
Magic.
Posted: Saturday, 2 June 2007 at 7:54AM
You could try this converter and see what happens: Convert web widgets into vista gadgets
No matter what platform you develop a New Applicants Count Widget/Gadget for, you'll need the New Applicants Count XHR 1.0 add-on in order to broadcast the count in a readable format.
In fact, you don't even need a widget to see the count. You can just install the XHR add-on and bookmark the output URL in your browser. Whenever you check the bookmark, you'll see the number of new applicants. It's not as convenient as a widget, but it works.
Also, it would be great if it could show you the amount of new posts since your last visit.
And you'd need to tweak the New Applicants XHR add-on since that is what is actually broadcasting your number of new applicants on your website anyway.
And I'd be against making it so that you needed to be signed in to your vanilla forum via your web browser to access the New Applicants XHR, because it would create all sorts of usability issues for the widget. (What if you're signed into your site on Firefox, but not with Safari? Not a good user experience at all.)
Since widgets use a layer of WebKit, you might be able to do a modification to the XHR add-on by adding something like this around the New Applicants XHR add-on code:
if ($Context->Session->User->RoleID == 4 ) { // New Applicants XHR add on code goes here }
But, it's really not worth the hassle, in my opinion. And there's no guarantee it will continue to work once you quit Safari (my guess is that it won't). So, imagine a widget that only worked when you have Safari open and logged into a specific site. It would be a really annoying widget.
And personally, I think you'd have to be pretty paranoid to want to do that. But, whatever... you're welcome to give it a try.
I'm also against adding more functionality into the widget (such as number of new posts, as you are suggesting). According to Apple's Developer Resources on Designing Widgets (and I'll easily defer to Apple on this subject on any day) each widget should only focus on one task. If you really want to find out the number of new posts since your last visit (and I'm pretty sure that's what RSS is for), you should really build an entirely new widget and call it "Number of New Posts Widget".
This is just a very simple New Applicants Widget....nothing more.
This is what I see when I insert my URL
You need New Applicants XHR 1.0 for this to work. Make sure that you can access the outputted URL from the New Applicants XHR add on before you try the widget. The very fact that your widget is displaying the "sign in" link leads me to believe that your New Applicants XHR isn't set up properly... or that you aren't pointing your widget to the URL of your vanilla install.
Basically, all the Widget does is append the remainder of the New Applicants XHR outputted URL to the URL that you put into the widget.
So, if your New Applicants XHR URL is: ... then you just type in "http://yoursite.com" and the Widget will add the "/extension.php?PostBackAction=NewApplicantsCountXHR" to the end of the URL. That's why you're not supposed to add a trailing slash when you type your site into the widget.
Obviously, if you can't get to work, then you have other problems that aren't related to the Widget.
Settings > Extensions > Check the "New Applicants Count XHR 1.0" Box