UBB.Dev
Posted By: 3DSHROOM_dup1 Additions to sendprivate - 05/31/2002 1:21 AM
I think that the Instant Graemlins, Instant UBB Code, and Font Color javascript tools should also be added to the send a private message page like on newpost.php. An altered one to not have polls should work fine.
Posted By: Dalar Re: Additions to sendprivate - 05/31/2002 4:14 AM
for v6, this is easy to do, you just need to add

code:
$instant_ubbcode = $html -> instant_ubbcode();



to the sendprivate.php somewhere, and insert

code:
$instant_ubbcode



into the template for it, and also will need to change the textarea tag in the template to add the attributes:

code:
onkeyup="storeCaret(this);" onclick="storeCaret(this);"



if you're adding it to v5, you'd need to copy over the instant_ubbcode function into the html class, change the textarea and more or less make the same changes. That, and you'd need some of the new smiley images.
Posted By: Gregori Re: Additions to sendprivate - 09/30/2002 9:06 PM
This sounds great! But I can´t get it to work on 6.1.

Everything looks great when creating a private message, but nothing happens when clicking the Graemlins, Instant UBB Code or Text Color.

Here´s what I did

In sendprivate.php:
code:
// ------------------
// Check for any bans
$userob -> check_ban($user['U_Username'],$Cat);

// -------------------------------------------------
// Instant Graemlins
$instant_ubbcode = $html -> instant_ubbcode();

// -------------------------------------------------
// Find out if this user is taking private messages
$User = rawurldecode($User);
$User_q = addslashes($User);



In sendprivate.tmpl:
code:
<br />
<br />
<textarea onkeyup="storeCaret(this);" onclick="storeCaret(this);" cols="$TextCols" rows="$TextRows" class="formboxes" name="Message">$RawBody</textarea>
<br />
$instant_ubbcode
<br />
<input type="checkbox" name="ccopy" value="1" class="formboxes" />
{$ubbt_lang['MESS_COPY']}



What have I done wrong?
Posted By: JoshPet Re: Additions to sendprivate - 09/30/2002 9:35 PM
This hack will help you add Graemlins to the Private Message form.

Hope that helps!
© UBB.Developers