Log in

View Full Version : namesuggestion


ragtek
03-16-2007, 05:28 PM
whats wrong on this code:

<if condition="$forumid==3">
<div id="gegner">
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">Gegner:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="gegner" id="gegner_txt" value="$gegner" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="2" /></td>
<td>&nbsp;&nbsp;</td>
</tr>
</table></div>
<div class="vbmenu_popup" id="gegner_menu" style="display:none; z-index:50"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js">
<script type="text/javascript">
<!--
vbmenu_register('gegner', true);
gegner = new vB_AJAX_NameSuggest('gegner', 'gegner_txt', 'gegner');
gegner.allow_multiple = false;
//-->
</script>
</if>
the automatic name suggestion like by the pm's isnt working :(

ragtek
03-17-2007, 07:05 PM
nobody?:(

</script> was missing

Chicago_VLNU_4s
03-18-2007, 01:07 AM
You mean "<script>"? what is it? Where does it go? Register template?

ragtek
03-18-2007, 08:16 AM
no
i have the closing </script> in this line forgotten:
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js">

Chicago_VLNU_4s
03-18-2007, 09:16 AM
so what's the complete code.. and what does it do

ragtek
03-18-2007, 10:29 AM
this is the complete code ;)
go on https://vborg.vbsupport.ru/private.php?do=newpm and type rag in the recipient field
now all users whose names start with "rag-" will appear
and i need that for a hack of me, so i was testing around with that