Previous Thread
Next Thread
Print Thread
Rate Thread
#54781 11/15/2002 12:37 PM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Quick Reply

How can I add Quick Reply in PM as it is ubbdev. I added the hack (QuickReply™ 4.0 ) but there is now Quick Reply in PM

Sponsored Links
#54782 11/15/2002 1:23 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I guess Greg forgot to add it in... or I forgot to tell him about it wink

public_pm_topic:
Find
Quote
code:
Code
	$ignorewording = qq!$to_name: $add_user_2_list! unless ($pm_topic_data{from} eq $user_number);

add below:
code:
[qb]
Code
	my ($is_html, $is_ubb);

if ($vars_pm{html} eq 'on') {
$is_html = "$vars_wordlets{html_is_on}";
} else {
$is_html = "$vars_wordlets{html_is_off}";
}

if ($vars_pm{ubb_code} ne 'off') {
$is_ubb = "$vars_wordlets{ubbcode_is_on}";
} else {
$is_ubb = "$vars_wordlets{ubbcode_is_off}";
}

my $preview_button = (
$vars_display{PreviewPost} ne "no"
? qq! <input type="button" name="preview" value="$vars_wordlets{preview_post}" onclick="Preview()" />!
: ""
);

my $spellcheck_button = (
$vars_modifications{spellcheck_enable} ne "no"
? qq( <input type="button" name="spellcheck" value="$vars_wordlets_mods{spell_check}" onclick="window.open('http://www.spellcheck.net/cgi-bin/spell.exe?action=checkpg&string='+escape(document.replier.message.value), 'message', 'toolbar=yes,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=$vars_modifications{spellcheck_width},height=$vars_modifications{spellcheck_height}');" />)
: ""
);

my $quickreply = qq|<form name="replier" method="post" action="$vars_config{CGIURL}/ultimatebb.cgi">
<input type="hidden" name="ubb" value="submit_pm_reply" />
<input type="hidden" id="d" name="d" value="$in{d}" />
<input type="hidden" id="t" name="t" value="$in{t}" />
$TBT
<tr class="tdheader">
<td colspan="2">
<b>Quick Reply</b>
</td></tr>
<tr class="lighttable">
<td width="100%"><table width="100%"><tr>
<td valign="top" width="18%"><b>Message:</b>


<font class="visited small">$is_html

<a href="$ULTIMATEBB?ubb=ubb_code_page" target="_blank">$is_ubb</a>

</font>
<input type="checkbox" name="Signature" id="Signature" value="yes" checked="checked" />
<font class="small"> Show Signature

<input type="checkbox" id="disable_smilies" name="disable_smilies" value="yes" /> Disable Smilies

<input type="checkbox" id="close_pm" name="close_pm" value="yes" /> Close PM</font>
</td>
<td>
<textarea name="message" rows="10" cols="50" wrap="virtual"></textarea>


<input type="submit" name="submit" value="Submit Reply" /> $preview_button $spellcheck_button
</td></tr></table></td></tr>$TBB
</form>

| if $pm_topic_data{close} ne 'yes' && exists($pm_user_index{$thingy}) && !exists($pm_user_index_sent{$thingy});
[/qb]
Note: don't forget to add tags everywhere and instead of lighttable, use AltColumnColor1 (I gave you the code for AllenTemplates tipsy )

#54783 11/15/2002 3:37 PM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Thanks LK
I tried it but it did not work
I chnge this code
&& exists($pm_user_index{$thingy}) && !exists($pm_user_index_sent{$thingy});
by
&& !($pm_topic_data{from} eq $user_number);
it than works fine
but I did not tray it when the topic is closed

thanks LK


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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
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 20240506)