Previous Thread
Next Thread
Print Thread
Rate Thread
#147244 01/02/2002 4:18 PM
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
This didn't work for 6.1.0.3. So, i Edited it as follows:

#############################
# Sleepy custom hack
#
# To view PM when replying
#
# ###########################
#
# Only 2 files need changing
#
# public_pm_form.pl & ubb_pm.cgi
#
############################
###################
#OPEN public_pm_form.pl
###################
#find
###################

print <$TBB














NearBottom

#################
# replace with
#################

print <$TBB















$i_frame




NearBottom

#################
# save and exit
#################
# open ubb_pm.cgi
#################
# find
#################

sub pm_reply {
local (%pm_user_index, %pm_user_index_sent, %pm_topic_data, %pm_date, %pm_time, %pm_post, %pm_icon, %pm_to, %pm_from, %pm_signature, @pm_profile, $ubb_images, $j, $is_html, $is_ubb, $html_allowed, $ubb_allowed, $ubb_images_wording, $icon_field, $show_sig, $disable_smilies, $close_option, @user_profile, $ubb_code_buttons, $pm_to_name, $page_title, $form_hiddens, $breadcrumb, $subject_field);

################
# replace
################

sub pm_reply {
local (%pm_user_index, %pm_user_index_sent, %pm_topic_data, %pm_date, %pm_time, %pm_post, %pm_icon, %pm_to, %pm_from, %pm_signature, @pm_profile, $ubb_images, $j, $is_html, $is_ubb, $html_allowed, $ubb_allowed, $ubb_images_wording, $icon_field, $show_sig, $disable_smilies, $close_option, $i_frame, $i_frame_alt, @user_profile, $ubb_code_buttons, $pm_to_name, $page_title, $form_hiddens, $breadcrumb, $subject_field);

###############
# find (do this twice)
###############

# get pm topic!
if (-e "$vars_config{MembersPath}/pm_topics/$in{d}/$in{t}.cgi") {
require "$vars_config{MembersPath}/pm_topics/$in{d}/$in{t}.cgi";
} else {
&StandardHTML("$vars_wordlets_err{no_such_pm}");
}

###############
#Below that ADD
###############

# set topic viewer:
$go_to = "$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_pm&d=$in{d}&t=$in{t}";


$i_frame_alt = &build_topic_review;

if ($vars_display{InlineFrame} eq 'TRUE') {
$i_frame = qq( );
} else {
$i_frame = $i_frame_alt;
}

##################
## Save and done
##################

__________________________________________________________

But there is a Problem: When you select the radio "NO" in CP >"General Display Settings">Inline Frame View of Topic on Reply Page? the Hack doesn't work.
Because in ubb_lib_posting.cgi "sub build_topic_review" is only for ubb_new_reply.cgi: So can someone add a sub such as "sub pm_review" for ubb_pm.cgi in ubb_lib_posting.cgi? Thank you Very much!


######################################################

See original hack at top of forum for further information, i didn't need to continue past this point.

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.1x] ViewPMreply vent 09/09/2001 1:21 PM
Re: [6.1x] ViewPMreply Brett 09/09/2001 9:15 PM
Re: [6.1x] ViewPMreply Lord Dexter 09/10/2001 11:33 AM
Re: [6.1x] ViewPMreply Corona 01/02/2002 11:18 PM
Re: [6.1x] ViewPMreply Soul Survivor 01/03/2002 2:39 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2338
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)