|
Webby
Beta Tester
YaBB God
Posts: 829
Some mistakes are too funny to make only once.
|
|
Re:[Done 1.4.0/1.4.1/1.5] Quick-Reply box v1.3
« Reply #91 on: February 14, 2003, 11:30:13 PM » |
|
Well, this is my quickreply function in Display.php :
function QuickReply($locked,$subject="N/A") { global $board,$threadid,$username,$userprofile,$cgi,$modSettings,$color,$txt,$imagesdir,$ubbcjspath,$sc;; LoadUser($username); $allowed = ($modSettings['QuickReply'] && !$locked && $userprofile[$username]['QuickReply']) ? "1" : "0"; if($allowed) { $return=<<<EOT <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript 1.2" SRC="$ubbcjspath"></SCRIPT> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="1" BGCOLOR="$color[bordercolor]" CLASS="bordercolor" VALIGN="TOP"> <TR> <TD HEIGHT="20" COLSPAN="2" CLASS="windowbg"><B>{$txt['QuickReply3']}</B></TD>
</tr> </TR> <TR> <TD WIDTH="15%" VALIGN="TOP" CLASS="windowbg"><BR> {$txt['QuickReply4']} </TD> <TD WIDTH="85%" VALIGN="top" ALIGN="center" CLASS="windowbg"> <FORM METHOD="POST" ACTION="$cgi;action=post2;threadid=$threadid" NAME="postmodify" onSubmit="submitonce(this);"> <script> function smileywin() { window.open("?action=smileyput", 'list', 'width=900,height=600,scrollbars=yes,resize=yes'); } </script> <br><center><a href="javascript:smileywin()"><img src=$imagesdir/moresmilies.gif border=0></a>
<input type="hidden" name="sc" value="$sc" /> <INPUT TYPE="HIDDEN" NAME="subject" VALUE="Re:$subject"> <INPUT TYPE="HIDDEN" NAME="icon" value="xx"> <TEXTAREA CLASS="editor" NAME="message" COLS="100" ROWS="6" STYLE="WIDTH: 90%; HEIGHT: 80px"></TEXTAREA> <BR><BR> <INPUT TYPE="HIDDEN" NAME="waction" value="post"> <INPUT TYPE="SUBMIT" NAME="post" value="Post" ACCESSKEY="s"> <INPUT TYPE="RESET" VALUE="Wissen" ACCESSKEY="r"> </FORM> </TD> </TR> </TABLE> <BR> EOT; } else { $return = ""; } return $return; }
?>
Remember :
I have the add more smilies mod installed, hence the smileywin() javascript entry. If you don't have this installed : leave it out.
You can follow the rest of the mod literally (if I remember well).
|
|
|
Logged
|
|
|
|
|
|
|
|
|
c0210k_hiep
Noobie
Posts: 32
I'm a llama!
|
|
Re:[Done 1.4.0/1.4.1/1.5] Quick-Reply box v1.3
« Reply #97 on: February 16, 2003, 10:50:40 PM » |
|
I just re-installed YABBSE 1.5.0 My profile don't have it When i run DB MOD have text appear =============== Data inserted Data inserted =============== When i finish Install pak text appear is : ././Packages/QuickReply.mod ... Modding was done successfully. Everything should work now. then i find on Profile and Forum Prefrence and setting and Installed MOD and option but don't have anything like "quickreply ON or OFF" may be i have to change some file english.lng or profile.php or anything else HELP
|
|
« Last Edit: February 16, 2003, 10:52:53 PM by c0210k_hiep »
|
Logged
|
|
|
|
|
c0210k_hiep
Noobie
Posts: 32
I'm a llama!
|
|
Re:[Done 1.4.0/1.4.1/1.5] Quick-Reply box v1.3
« Reply #99 on: February 17, 2003, 06:02:28 AM » |
|
i just insert what you told me $txt['QuickReply1'] = "Enable Quick-Reply Mod?"; $txt['QuickReply2'] = "Show Quick-Reply box in messageview?"; $txt['QuickReply3'] = "Quick-Reply"; $txt['QuickReply4'] = "Use this form to post a quick reply. YaBB code and smilies are allowed."; but profile don't have any text like that !
|
|
|
Logged
|
|
|
|
|
c0210k_hiep
Noobie
Posts: 32
I'm a llama!
|
|
Re:[Done 1.4.0/1.4.1/1.5] Quick-Reply box v1.3
« Reply #101 on: February 17, 2003, 02:43:12 PM » |
|
Hic i'mm an newbie can you quote your code of profile.php here i can copy and paste in my file so easy hi
|
|
|
Logged
|
|
|
|
|
|
|