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.
Extension Idea: LDAP Lookup
I use Vanilla as the Forum for my college at University. Within University there is a LDAP Server which is useful for looking up students, lecturers and staff and provides information such as their phone number, email address, username, department/course and homepage URL.
I'm familiar with PHP and had a quick play with creating a test extension based on the examples on the documentation, it looks fairly easy to add elements to the sidebar for example, however I haven't got a clue how I would go arround adding a completely new Search function (eg. so you can enter your keywords on Search.php, but then select a new 'Directory' option). How exactly would this be achieveable in an extension?
Thanks,
Alex
0
This discussion has been closed.
Comments
You can attach to the PreSearchQuery delegate to add your new radio option to the SearchForm->TypeRadio select control and to perform the search on your ldap data source.
You can attach to the PreSearchResultsRender delegate to display your search results. Sadly I didn't make the searchform control as slick as I could have, but you can still accomplish it by including the search_results_top.php and search_results_bottom.php templates yourself and then stopping execution of the method.