Quote:
Originally Posted by TNCclubman
Does anyone have an idea of what the javascript is to have the little edit pencil show up?
|
Sleuthing 101:
Take a look at the page source and see what is going on. If you did, you'd see something like this:
HTML Code:
<dt class="shade" id="profilefield_title_1">Biography</dt>
<dd id="profilefield_value_1">
N/A
<script type="text/javascript">
<!--
vBulletin.register_control("vB_ProfilefieldEditor", "1");
//-->
</script>
</dd>
Then, do a search in your files for "register_control" and you'll find it in clientscript/vbulletin_global.js.
Also, since this is shown on the member.php page, it's a good idea to see what scripts get added on that page that don't get added on all the other pages. When looking at the page source, search for any scripts on there and you'll come across a couple scripts that have the word "edit" in them - "vbulletin_quick_edit_generic.js" and "vbulletin_profilefield_edit.js" And, right under where you find those scripts, you'll see some more lines that look useful that have the word "Edit" in them. Grab that too. Do I know if you need all that? No, I don't know, but it's a good place to start.