Previous Thread
Next Thread
Print Thread
Rate Thread
#217555 05/30/2002 6:21 PM
Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
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.

Sponsored Links
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
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.

Joined: Sep 2002
Posts: 151
Member
Member
Offline
Joined: Sep 2002
Posts: 151
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?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This hack will help you add Graemlins to the Private Message form.

Hope that helps!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)