Author |
Topic |
|
stuF
Average Member
United Kingdom
561 Posts |
Posted - 04 June 2004 : 05:16:49
|
Im currenty going through the forum code and making the changes which my rudimentary coding skills will allow me to perform. I was wondering if it was possible to add the following feature to the topic.asp page.
Instead of having the quick reply box sat there all the time, why not have a 'quick rely' button next to the regular reply button, which when pressed will drop dwn the quick reply box below.
It would be a good way of tidying topic.asp for those forums which use the quick reply feature. |
http://36-degrees.co.uk |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 June 2004 : 05:27:14
|
The idea of the quick reply box is that it is there all the time and you don't have to press anything to use it, it wouldn't be a quick reply box if you did. |
|
|
stuF
Average Member
United Kingdom
561 Posts |
Posted - 04 June 2004 : 07:16:29
|
i suppose, but wouldnt clicking one button, and the reply box appearing still be quicker than clicking and loading another page.
Its more of an aesthetic concern than a practical one. Plus, im limited by space due to having my sites ayout integrated into the forum pages, this would simply allow me to free up some more room.
Edit: i noticed this approach has been taken on a number of other forums, and having the option to do it with snitz would be good. |
http://36-degrees.co.uk |
Edited by - stuF on 04 June 2004 07:17:20 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 June 2004 : 07:47:55
|
Snitz is designed to to be as cross platform and browser compatible as possible, putting the quickreply in a container which can be hidden/shown using javascript will not work in all browsers, so to implement it to work in all browsers would require a submit and refresh of the page so you may just as well use the reply page. |
|
|
stuF
Average Member
United Kingdom
561 Posts |
Posted - 04 June 2004 : 07:48:50
|
oh right, didnt realise that it would cause cross-comp. issues, fair enough :D
|
http://36-degrees.co.uk |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
altisdesign
Junior Member
United Kingdom
357 Posts |
|
stuF
Average Member
United Kingdom
561 Posts |
|
daxl
Starting Member
16 Posts |
Posted - 19 December 2004 : 06:21:18
|
can you help me get the quick reply to be visiable even to visitors and get the user name and password field to be blank so all what they have to do is fill in name & pass or have it by default set to guest\guest. what needs to be changed in the code below:
if strShowQuickReply = "1" and strDBNTUserName <> "" and ((Cat_Status = 1) and (Forum_Status = 1) and (Topic_Status = 1)) and ArchiveView = "" then
call QuickReply()
end if
"<input name=""Refer"" type=""hidden"" value=""" & request.servervariables("SCRIPT_NAME") & "?" & chkString(Request.QueryString,"refer") & """>" & vbNewLine & _
" <input name=""UserName"" type=""hidden"" value=""" & strDBNTUserName & """>" & vbNewLine & _
" <input name=""Password"" type=""hidden"" value=""" & Request.Cookies(strUniqueID & "User")("Pword") & """>" & vbNewLine & _
|
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 19 December 2004 : 06:49:59
|
If you remove "and strDBNTUserName " the text area should appear to visitors. Remove the part in red.
if strShowQuickReply = "1" and strDBNTUserName <> "" and ((Cat_Status = 1) and (Forum_Status = 1) and (Topic_Status = 1)) and ArchiveView = "" then
call QuickReply()
end if
As for the inputs, this is done in post.asp. You can probably use the code from there . |
_-/Cripto9t\-_ |
|
|
daxl
Starting Member
16 Posts |
Posted - 19 December 2004 : 09:46:54
|
thanks just to make sure i got it rite,is this it around line 603 in post.asp:
around line 603 in post.asp
if mlev = 4 or _
mlev = 3 or _
mlev = 2 or _
mlev = 1 then
Response.Write " <input name=""UserName"" type=""hidden"" value=""" & strDBNTUserName & """>" & vbNewLine & _
" <input name=""Password"" type=""hidden"" value=""" & strCkPassWord & """>" & vbNewLine
else
if (lcase(strNoCookies) = "1") or _
(strDBNTUserName = "" or _
strCkPassWord = "") then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>UserName:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><input name=""UserName"" maxLength=""25"" size=""25"" type=""text"" value=""" & Request.Form("UserName") & """></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Password:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""top""><input name=""Password"" maxLength=""25"" size=""25"" type=""password"" value=""" & Request.Form("password") & """></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
end if
|
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 19 December 2004 : 11:04:22
|
You got it .
I think you need to leave this line in.
"<input name=""Refer"" type=""hidden"" value=""" & request.servervariables("SCRIPT_NAME") & "?" & chkString(Request.QueryString,"refer") & """>" & vbNewLine & _
That brings you back to the forum page after you post the message.
And you might have to replace this part
value=""" & strCkPassWord & """ With this
value=""" & Request.Cookies(strUniqueID & "User")("Pword") & """ |
_-/Cripto9t\-_ |
Edited by - cripto9t on 19 December 2004 11:13:39 |
|
|
daxl
Starting Member
16 Posts |
Posted - 19 December 2004 : 23:47:35
|
Thanks cripto9t for your help
now if only i can add another icon to topic.asp that will paste reply with quote to the quick reply it would be perfect can the following code be modified to do that?
Response.Write "<a href=""post.asp?" & ArchiveLink &
"method=ReplyQuote&REPLY_ID=" & Reply_ReplyID & "&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconReplyTopicSmall,"Reply with Quote","align=""absmiddle"" hspace=""1""") & "</a>" & vbNewLine
Thanks again for your help. |
Edited by - daxl on 20 December 2004 02:50:07 |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 20 December 2004 : 08:08:22
|
No, that's for replys and it's a link to post.asp, which you are trying to avoid . I don't think you can use quote methods here. You can't quote replies because it has no way of knowing which reply. You could give the text area the value of the topic message, like it's done in post.asp (search post.asp for TopicQuote to see how it's done). But it will always be there whether you want it or not. |
_-/Cripto9t\-_ |
|
|
daxl
Starting Member
16 Posts |
Posted - 21 December 2004 : 01:49:32
|
quote: cripto9t
No, that's for replys and it's a link to post.asp, which you are trying to avoid
lol ;) yes i know that ,what i meant was modifying that to be used in topic.asp.i was just thinking it might be done as they have it in php forums. not a big deal any way.they can do it the old way or copy and paste to QR. would you believe that it took developing a mod just for that.
Thanks cripto9t for your help
|
Edited by - daxl on 21 December 2004 01:56:01 |
|
|
|
Topic |
|