Page Index Toggle Pages: 1 2 [3] 4 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) [BETA] Quick reply. (by Christer) (Read 15846 times)
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #30 - Jun 7th, 2002 at 2:46pm
Print Post  
would using this form tag work better?

Code
Select All
<form action="$cgi;action=post2" method="post" name="postmodify"> 

  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
C
Junior Member
**
Offline


moochin freeloader

Posts: 89
Joined: May 1st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #31 - Jun 7th, 2002 at 5:13pm
Print Post  
Quote:
would using this form tag work better?

Code
Select All
<form action="$cgi;action=post2" method="post" name="postmodify"> 




could have worked in theory but instead it causes the post to be posted as a new thread instead Sad

good idea tho i came to the conclusion it was the cgi action the othernite and tried a diff one but it took you back to the board index Sad Tongue
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #32 - Jun 7th, 2002 at 6:48pm
Print Post  
Post2 is the subroutine which takes the form information from the post page and adds it to the approprate files. It will think it's a new thread unless the threadid is specified using a hidden input tag.

Try including <input type="hidden" name="threadid" value="$viewnum"> instead of the input currently used.

  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
C
Junior Member
**
Offline


moochin freeloader

Posts: 89
Joined: May 1st, 2002
Gender: Male
WORKING BETA QUICK REPLY
Reply #33 - Jun 7th, 2002 at 7:35pm
Print Post  
ok heres the first working version!

Grin

NOTE THIS CAN ONLY HANDLE STANDARD TEXT POSTS

Undecided
  

quickreplytextonly.mod (Attachment deleted)
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #34 - Jun 7th, 2002 at 7:46pm
Print Post  
What do you mean it can only handle text posts?

If you insert ubbc tags and smilies manually, they should still work because the form is being processed by the same subroutine as the standard post page. You just don't have the nice buttons you can press to insert the text for you!
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
C
Junior Member
**
Offline


moochin freeloader

Posts: 89
Joined: May 1st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #35 - Jun 7th, 2002 at 7:52pm
Print Post  
sorry it dont like it!!  Sad
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #36 - Jun 7th, 2002 at 8:13pm
Print Post  
I've just tried it and ubbc tags work fine - so what didn't work on yours?


There are a couple of other things to mention:

1...The visuals could do with some improvement to make it look nicer.

2...It would be nice if the subject was already filled with "Re: subject". This is an easy fix, just change the subject input to:
<input type="text" name="subject" value="Re: $msubthread" size="20">

3...It doesn't work for guests. There are two ways round this: Either only show the quick reply box to members, or display additional inputs for name and email address to guests.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
C
Junior Member
**
Offline


moochin freeloader

Posts: 89
Joined: May 1st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #37 - Jun 7th, 2002 at 8:28pm
Print Post  
if its taking it from the post.pl then guests should get an access denied type error and it,ll tell them to register so its cool as for looks im working on it!
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #38 - Jun 7th, 2002 at 8:43pm
Print Post  
so it's not "done" yet then! Grin

Guests get a "The Name field was not filled out. It is required." error if you have allowed guest posting.

You could also have an admin option to turn the quick reply box no/off.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #39 - Jun 7th, 2002 at 9:00pm
Print Post  
For the display, I was thinking something like this:

Code
Select All
<search for>
<table border="0" width="100%" cellpadding="0" cellspacing="0">~;
        $yymain .= qq~
  <tr>
    <td align="left" valign="top" colspan="2">~;
      if(exists $moderators{$username} || $settings[7] eq 'Administrator') {
            $yymain .= qq~<font size="1"><b>$img{'admin_func'}</b>
</search for>

<add before>
~;
# Display check goes here!
$yymain .= qq~
<form action="$cgi;action=post2" method="post" name="postmodify">
<input type="hidden" name="threadid" value="$viewnum">
<input type="hidden" name="icon" value="xx">
<table border=0 width="90%" cellspacing="1" cellpadding="4" bgcolor="$color{'bordercolor'}" class="bordercolor" align="center">
  <tr>
    <td align="center" class="titlebg" bgcolor="$color{'titlebg'}"><font size="2" class="text1" color="$color{'titletext'}"><b>Quick Reply Box</b></font></td>
  </tr>
  <tr>
    <td class="windowbg2" bgcolor="$color{'windowbg2'}">
      <table width="100%" cellpadding="4" cellspacing="0">
        <tr>
          <td valign="top" width="23%"><font size="2"><b>$txt{'70'}:</b></font></td>
          <td><font size="2"><input type=text name="subject" value="Re: $msubthread" size="40"></td>
        </tr>
        <tr>
          <td valign="top" width="23%"><font size="2"><b>$txt{'72'}:</b></font></td>
          <td><textarea name="message" rows="6" cols="60" wrap="soft"></textarea></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="center" class="catbg" bgcolor="$color{'catbg'}"><input type="submit" name="$post" value="$txt{'105'}" accesskey="s"> &nbsp; <input type="reset" value="$txt{'278'}" accesskey="r"></td>
  </tr>
</table>
</form>
~;
# Display check ends here!
$yymain .= qq~
</add before> 



It can still do with some more work though.

(I've even marked the places where the if statement should be put to show/hide the reply box.)
« Last Edit: Jun 7th, 2002 at 11:36pm by BHRA Webmaster »  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Seph
New Member
*
Offline


\/\/007!?!!

Posts: 46
Joined: Mar 27th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #40 - Jun 7th, 2002 at 10:40pm
Print Post  
Your biggest issue is the whole box is linked to the close thread button. Also when you post it dosn't give you the text image up by the top of the post.
  



Back to top
WWWAIM  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #41 - Jun 7th, 2002 at 11:22pm
Print Post  
Quote:
Your biggest issue is the whole box is linked to the close thread button.


If you are refering to the code I posted above, I'd like to point out that I've used the <add before> tag to insert the code above the admin function.


Quote:
Also when you post it dosn't give you the text image up by the top of the post.

Do you mean the message icon? If so, try adding <input type="hidden" name="icon" value="xx"> below the threadid input tag.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
C
Junior Member
**
Offline


moochin freeloader

Posts: 89
Joined: May 1st, 2002
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #42 - Jun 8th, 2002 at 12:11am
Print Post  
visit my site for a working example!

http://the-alernative.netfirms.com/main.shtml Grin

and Brha soz this is my first mod! or indeed look into them so sorry for posting it as done! Sad
  
Back to top
 
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #43 - Jun 8th, 2002 at 12:20am
Print Post  
since i asee a done thread im locking this one to avoid confusion
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: [BETA] Quick reply. (by Christer)
Reply #44 - Jun 8th, 2002 at 12:38am
Print Post  
unlocked because of overenthusiasm as moderator Wink
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 
Send TopicPrint