PDA

View Full Version : Auto-suggest usernames function - where is it?


James Birkett
12-18-2009, 05:19 PM
I'm trying to make a twitter/facebook-style username hyperlink for my shoutbox and I wanted to implement vBulletin 4's suggest usernames feature (that it uses for PMs and such).

The way my modification would work is:
User types "@" then the username, as the user begins typing the username it would suggest users, based on vBulletin's suggest feature and the letters typed (obviously if you type 'A' it would suggest all of 'A'.

My question: where is the function that suggests usernames?

Thanks in advance.

Lynne
12-18-2009, 07:37 PM
When I use Inspect Element (firebug) on that box on the PM page, I'm told this is called:
<script src="clientscript/vbulletin_ajax_suggest.js?v=400rc3" type="text/javascript">

So, go take a look at that script. In fact, you really should take a look at the template there and see what else effects that Recipient Users box.