The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Just a quick idea, basically it's just a matter of adapting the quick reply hack to enable ppl to pm a member from their profile, sound good to anyone?
|
|
#2
|
|||
|
|||
|
No because it's just one more click anyway the current way. However, it can be done with just templates so I'll probably release this at vBT.
|
|
#3
|
||||
|
||||
|
heh, me and my partner are working on this same exact thing(adds a small box with subject) in the profile of that user and you can send them a PM
|
|
#4
|
||||
|
||||
|
cool, i'll look out for yours echohype and i'll check vbt filburt
|
|
#5
|
||||
|
||||
|
did anyone release this yet?
|
|
#6
|
||||
|
||||
|
*bump*
|
|
#7
|
||||
|
||||
|
Open your getinfo_sendpm template..
At the bottom add this: Code:
<script type=text/javascript>
function toggleT(_w,_h) {
if(document.getElementById) { //This for Mozilla
if (_h=='s') eval("document.getElementById(_w).style.visibility='visible';");
if (_h=='h') eval("document.getElementById(_w).style.visibility='hidden';");
}
if (document.all) { // is IE
if (_h=='s') eval("document.all."+_w+".style.visibility='visible';");
if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';");
}
else { // is NS?
if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';");
if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';");
}
}
</script>
<form action="private.php" method="post" name="vbform" style="display:inline;" onSubmit="return validate(this)">
<input name="r2" type="button" class="bginput" value="QuickPM" onClick="toggleT('qpm','s')"><br />
<div id="qpm" style="VISIBILITY: hidden; POSITION: absolute">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="prevmessageid" value="$privatemessageid">
<input type="hidden" name="forward" value="$forward">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="savecopy" value="yes">
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="50" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}"><b>QuickPM</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" nowrap><normalfont><b>Subject:</b></normalfont></td>
<td bgcolor="{secondaltcolor}">
<normalfont><input type="text" class="bginput" name="title" value="$subject" size="50" maxlength="85" tabindex="2"></normalfont>
<input type="hidden" class="bginput" name="touser" value="$userinfo[username]" size="25" maxlength="25" tabindex="1"></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Message:</b></normalfont>
<p>
</td>
<td bgcolor="{secondaltcolor}">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top"> <td>
<textarea name="message" rows="10" cols="50" wrap="virtual" tabindex="3">$message[message]</textarea>
<br>
<normalfont>
<input type="hidden" name="action" value="dosend">
<input type="submit" class="bginput" name="submit" value="Send Message" accesskey="s" tabindex="4">
<!--<input type="button" class="bginput" value="Spell Check" onclick="var f=document.forms['vbform']; doSpell( '$spellchecklang', f.message, '$bburl/spellcheck/sproxy.php', true);" tabindex="5">-->
<input type="reset" class="bginput" name="RESET" value="Clear" tabindex="6">
<input name="r2" type="button" class="bginput" value="Hide" onClick="toggleT('qpm','h')">
</normalfont>
<input type="checkbox" name="signature" value="yes"><smallfont>Sig</smallfont>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<br>
</form>
</div>
|
|
#8
|
||||
|
||||
|
thanks evil, i'll test it out later, only just saw this my lucky day
|
|
#9
|
||||
|
||||
|
n/p.. Its also posted in the templates forum with screenshots if you wanna check it out first.
|
|
#10
|
||||
|
||||
|
oh i saw that one, but i wanted it without having to click a button, kinda like the quick reply box is in a thread
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|