Admin post usernote in user profile.
This modification is in the archives.
Well, i guess that I'm the one to release a hack in this Profile forum.
This mod allows admin or groups with permission to post usernote for a user in one's profile. Only admin or usergroup with permission to post usernote can see this option in the profile. -------------------- Template mod: 1 MEMBERINFO Installation time: 2-3 mins -------------------- OPEN MEMBERINFO template, and FIND: Code:
<br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>) </if> </div> </div> BELOW ADD: Code:
<fieldset class="fieldset"> <legend><b>$vbphrase[post_new_user_note]</b></legend> <form action="usernote.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return validatePost(this, 0, $vboptions[postminchars], $vboptions[postmaxchars]);" onreset="vB_RESET(this);"</if>> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="u" value="$userinfo[userid]" /> <input type="hidden" name="usernoteid" value="$noteinfo[usernoteid]" /> <input type="hidden" name="do" value="donote" /> <div class="smallfont" style="margin-bottom:$stylevar[formspacer]px"> <b>$vbphrase[title]:<b><br /> <input type="text" class="bginput" name="title" value="$noteinfo[title]" size="40" maxlength="85" tabindex="1" /> </div> <div class="fieldset"><b>$vbphrase[message]:<b></div> <textarea name="message" rows="7" cols="40" wrap="virtual" tabindex="1"></textarea> <!-- / message area --> </div> <div style="margin-top:$stylevar[cellpadding]px"> <input type="submit" class="button" name="sbutton" value="$vbphrase[submit_note]" accesskey="s" tabindex="1" /> </div> </form> </fieldset> ------------ that's it. --------------- Download No files for download. |