Previous Thread
Next Thread
Print Thread
Rate Thread
#260055 10/07/2003 12:17 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Quick Reply 5.0

Description: This modification adds a "Quick Reply" box at the bottom of the showflat and showthreaded pages, allowing you to quickly compose and submit your reply from the same page. It does allow you to adjust the post icon, preview your post and even checks your spelling. This mod encourages participation and adds ease of use to new users.

Version 4 added the ability to preview the post icon using the drop down menu and built in support to support the "Re: Username" feature which was returned to flat mode in 6.3.

I also fixed a bug where Special Characters were breaking the Subject, thus cutting it off at a quote mark etc..., and fixed a bug which easily allowed users to inadvertently submit a blank post.

Version 5.0 updated instructions for UBB.Threads 6.4 (thanks DLWebmaestro) and added a checkbox to include or omit your signature when replying.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: UBB.Threads 6.4. Also File Uploads must be on in your php.ini file, or else this mod doesn't work properly.

Author(s): JoshPet, AllenAyres, Gardener

Date: 10/06/03

Credits: AllenAyers, JoshPet, Gardener, JustDave, Dalar, DLWebmaestro

Files Altered: showflat.php, showflat.tmpl, addpost.php, showthreaded.tmpl, /languages/english/showflat.php, /languages/english/generic.php

New Files: graemlinpanel.php (thanks JustDave of www.chattersonline.com



Database Altered: No

Info/Instructions: Version history:
  • Version 1.0: released (08/10/2002)
  • Version 1.1: ubbcode parsed and post icons fixed (08/11/2002)
  • Version 1.2: Quick Reply only avail. to Logged in Users.
    Correctly adds the "Re:" (only once) to reply. (08/12/2002
  • Version 1.3: Languages settings added (08/12/2002)
  • Version 1.4: Fix added to remove box if thread is closed (08/13/2002)
  • Version 1.5: User can select which post to reply to. (08/14/2002)
  • Version 1.6: Fixed "Re:" issue with Javascript and added code so quick reply link does not appear if the user is not logged in or the thread is closed (08/17/2002)
  • Version 1.7: Javascript adds the quote instead of replacing. (08/18/2002) "Re:" checking added to javascript.
    Added a quick reply box to threaded view as well.
  • Version 1.8: Quick Reply now works with Mozilla, Opera won't break. Fixed a bug when replying to anonymous posts.
    Now adds the username correctly.
  • Version 2.0: Updated for UBB.Threads 6.2 (12/26/2002) by JoshPet
    This simply does a quick reply and not a quick quote as the Auto Quote is now a standard function of Threads.
  • Version 2.1: With JustDave's help, we have finally fixed the bug where Quick Reply Mod caused some errors voting in polls
  • Version 2.2: Fixed a bug allowing a quick reply to a post stub (1/12/03)
  • Version 3.0: Adds a pulldown menu for Post Icons, a preview post button, a SpellCheck buton, and a popup Graemlin Panel (thanks JustDave) (2/1/03)
  • Version 3.1: Fixes a Javascript Error in showthreaded (4/27/03 JoshPet)
  • Version 4.0: Updates to work with UBB.Threadds 6.3. (4/28/03 - JoshPet)
    Fixed a bug with Special Characters in the subject line.
    Fixed a bug which easily allowed a blank post.
    Added the functionality to support the "Re: Username" in flat view.
    Added a feature to preview the post icon in quick reply.
  • Version 4.1: Adds the user's preference from My Home to the quick reply box - thanks Dalar.
  • Version 5.0: Updates instructions for UBB.Threads 6.4 (thanks DLWebmaestro) and adds a checkbox to include or omit your signature when replying.




Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
96473-QuickReply5.0.zip (0 Bytes, 245 downloads)

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
After upgrading to V6.4 final and installing some hacks I visit my SQL-logfile and found this:

/ubbthreads/showflat.php
Unable to do_query: SELECT B_Number FROM w3t_Posts WHERE B_Topic = 1 AND B_Board = 'UBB14' AND B_Approved = 'yes' ORDER BY B_Sticky DESC,t2.U_Username ASC LIMIT 22 - Unknown table 't2' in order clause

/ubbthreads/showthreaded.php
Unable to do_query: SELECT B_Number,B_Main,B_Subject,B_Posted,B_Approved FROM w3t_Posts WHERE B_Topic = 1 AND B_Board = 'UBB14' AND B_Approved = 'yes' ORDER BY B_Sticky DESC,t2.U_Username ASC LIMIT 99, 22 - Unknown table 't2' in order clause

What are the table 't2' ? I take a view to both scripts and try to find this, but I go confused. Any clue ? If needed I can post a list of hacks that I installed. Maybe one of them produce this.

After revisit my hacks, this is the only one who modify both files. Is it possible that the errors come from it or it is a Infopop bug ? The errors appear only in one board (UBB14) that contains lot postings of deleted users. The errors will generated while a spider (Slurp and Gogglebot) go through the board. Any Idea ?

Joined: Sep 2001
Posts: 129
Member
Member
Offline
Joined: Sep 2001
Posts: 129
I get the same but I dont think its a Quick Reply mod problem, See Here:

https://www.ubbdev.com/forum/showflat.php/Cat/0/Number/101530/Main/101530#Post101530


Regards
Clint

Running on WIN2003 Web Server.

Paranoid people get followed too!
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No problems with Quick Reply I have it installed with an empty mysql error log.

Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
I installed this on 6.4 without any errors.

Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
Thanks to all tester. Now we can say: it's an Infopop Job I will report it as a bug. It must have something to do with the database itself. The error only appears in one forum (ubb14) and no where else. In this forum I have many deleted users (inactiviy purge). The forum itself is an imported one from a UBB.classic.

/edit: I see, it's already reported and I will do the workaround.

Last edited by Zarzal; 12/10/2003 4:50 PM.
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
I've got a question.. How difficult would it be to make the quick reply box configureable like the side bar is? Meaning, in their profile, a user has the ability to turn it on or off?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You'd have to add an on/off field to the user table. Modify the editdisplay.php and changedisplay.php scripts and templates accordingly, then check that field in the showflat/showthreaded pages to see if that user wants it displayed.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Hay Josh,
Where is the language string for "Preview Reply" part of the Quick Reply box? What file is it in? Thanks!

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
generic. php

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
That's weird. Becuase there is nothing in the Preview Reply box (no text that is) w/ Spanish as my language, but there IS with English. Maybe I've screwed it up. Anyhow, I'll try reinstalling this. After all, I'll have to because the showflat and showthreaded templates from the Facelift have been updated anyways. Thanks!

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Can someone tell me how I could remove the "Quick Reply" button from each post ? (next to "Quote").
I would like to remove it because of the limited space I have in this row. (my forum is 776 pixels wide).

Thanks!

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
This part..

##
## Find this:
##

{$postrow[$i]['quotelinkstop']}
</td>
</tr>
</table>


##
## Change to this:
##


UBBTPRINT;
if (($user['U_Username']) && (($Open != "C") && ($Open != "M"))) {
$qreplylinkstart = "<a href="javascript:quickreply('$i');">";
$qreplylinkstop = "</a>";
} else {
$qreplylinkstart = "";
$qreplylinkstop = "";
}
echo <<<UBBTPRINT
<td class="navigation" nowrap="nowrap">
$qreplylinkstart
<img src="{$config['images']}/reply.gif" border="0" alt="{$ubbt_lang['QUICK_REPLY']}" width="27" height="14" $imagestyle />
{$ubbt_lang['QUICK_REPLY_ICON']}
$qreplylinkstop
</td>
</tr>
</table>

has a goof. You lose the </td> at the end of the quote cell.


- Custom Web Development
http://www.JCSWebDev.com
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Another hitch, everytime I try to edit the template via the admin section it blows out the template and the page doesn't load right. And users are reporting the page doesn't load to the newest post it starts with the firs tone again. What did I miss?


- Custom Web Development
http://www.JCSWebDev.com
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Well - confession: I've never used the online template editor. I'm guessing most hackers don't as they are already modifying code directly in the text editor of their choice.

So the mix of PHP code in the template is probably the problem.

I think the way the template editor works - every line of PHP code should have this after it:

//UBBTREMARK


Then the template editor knows to ignore it.


Not sure why it would jump to the first post - unless you've lost the anchor tag in one of the edits. That's more of a postlist.tmpl function as long as the anchor tags exist on your page.

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Anchors are there. I did notice you forgot the </a> at the end of them, but that didn't help. I also saw today that the post icon wasn't showing in the quick rep[ly box, so I changed imageurl to images and it worked again.


- Custom Web Development
http://www.JCSWebDev.com
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Josh, please download my JCTemplates. It has the quick reply ones also. See if you can see what is up ..


- Custom Web Development
http://www.JCSWebDev.com
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
I think I got it sussed out, one question. Is this a left over that needs to be removed?

<span id="number$i">{$postrow[$i]['Number']}</span>

I removed it on one site and it seems to be working, although I was trying many things, so I'm not sure.

Note: Until the templates are sorted out I suggest anyone using this mod should chmod showflat and showthreaded to 644 so they cannot be accidently edited via the admin panel.



- Custom Web Development
http://www.JCSWebDev.com
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
No that's needed - that's how the javascript can grab the post number it's replying to when you click "quick reply".

Joined: Aug 2003
Posts: 15
Newbie
Newbie
Offline
Joined: Aug 2003
Posts: 15
I have a question.... seems my quick reply box is awful small. Any ideas on how to make it bigger?

For an idea on exactly how small it is... www.apocalypsealliance.net... click the lowspeed option then see any public area post.

Last edited by AdmiralS3; 03/23/2004 9:37 AM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The quick reply box is pulled from the user's preferences (just like the normal reply/post box). So adjust it in your display prefs of My Home.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
[]J.C. said:
...I also saw today that the post icon wasn't showing in the quick rep[ly box, so I changed imageurl to images and it worked again. [/]

Hi JC,

I just updated my forums to 6.4.2 and I'm running into this same issue whereby when a user posts using Quick Reply, the post icon isn't showing... the url is out of whack (http://www.flightattendants.org/ubbthreads/images/icons/http://www.flightattendants.or).

I fixed it before but I can't recall how to do it. Mind telling me which imageurl to change to images? Thanks.

Jason

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
D'oh! Disregard, I completely missed the "addpost.php" step.

Joined: May 2003
Posts: 94
Power User
Power User
Offline
Joined: May 2003
Posts: 94
From the 5.0 instructions:

FILES MODIFIED: showflat.tmpl, showflat.php, languages/english/showflat.php addpost.php, showthreaded.tmpl, languages/generic.php, showthreaded.php

Now, no offense, but as a novice, I find this confusing as to which files from which directory.

The initial post here seems more clear but between the two.. well it's a bit confusing

Files Altered: showflat.php, showflat.tmpl, addpost.php, showthreaded.tmpl, /languages/english/showflat.php, /languages/english/generic.php

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
try this

Files Altered:
ubbthreads/showflat.php,
ubbthreads/addpost.php,
ubbthreads/templates/default/showthreaded.tmpl,
ubbthreads/templates/default/showflat.tmpl,
ubbthreads/languages/english/showflat.php,
ubbthreads/languages/english/generic.php

Joined: May 2003
Posts: 94
Power User
Power User
Offline
Joined: May 2003
Posts: 94
Yes... yes much more clear ! thanks

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, whenever you see /languages/generic.php or the like that means that you should modify that file in every language that you're using. So /languages/english/generic.php, /languages/french/generic.php etc.... If you're not using other languages, then most likely your primary langauge is english.

If you don't modify all the languages and people try to use them, the text will be missing for them.

Joined: May 2003
Posts: 94
Power User
Power User
Offline
Joined: May 2003
Posts: 94
FILES MODIFIED: showflat.tmpl, showflat.php, languages/english/showflat.php addpost.php, showthreaded.tmpl, languages/generic.php, showthreaded.php


Josh, what was confusing was the order the files are listed in. I take the above list, and d/l the orginal files into a directory, then modify and save to a 2nd directory, so I always know on my pc which are orginal and which are modified (makes for a very quick restore if it messes up).

The first language file is listed, then the next two back out to the regular directory or files within the language directory? then back to the language directory.

scroungr lists them, IMHO, how they should be as to avoid all confusion.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, just quickness on my part. Everyone applying hacks to their software should have a pretty good understanding of the files used by threads. generic.php is the main language file. And you have one of those for every language that you're using. .tmpl files are template files.

My clients pay me to write/create/intall them - I write them up as a courtesy to share with others here. So any documentation is geared towards an experiened user. Use at your own risk. So sometimes the documentation is lacking. But so far <knock on wood>, you're the 167th person to use this mod - and the issue hasn't come up yet.

As you continue with modifing/hacking your code, you'll become more familar with the files and the file structure. Then it becomes second nature.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
Josh, I don't think what is being asked is unreasonable. And your reply was rather surprising. I once read a post where you suggested something similar to a member who posted a mod and they replied with a sharp, "be lucky I post anything" attitude. I thought that was uncalled for and that that member must have an exceedingly bloated sense of self-importance.

Even a novice can hack their BB if the instructions are presented clearly. I'm not saying training wheels clear, but certainly a couple of extra key strokes indicating which directory the file is in can't be too difficult when you're pressed for time, can it? It would avoid having to answer questions down the road for the inexperienced who wants to (try to) enjoy hacking up their forum themselves! Practice makes perfect.

The whole idea of your community forums is to promote UBB.threads and provide fun and guidance for .threads licence holders. It seems to me your site is targetted for novice owners to .threads masters and, imho, you need not point out that you provide hacks as a courtesy. You also provide hacks because it keeps the community interested in coming back; not to mention that you make some side sales with your paypal code, your spider code, and your services as a result of running this site.

We all appreciate everyone's hard work and sharing. It keeps us coming back, and over time and with guidance you are right, hacking does become second nature. Your patience is appreciated and we know that our suggestions don't fall on deaf ears. Although though there have been 167 downloads of this mod, it is likely not all of them were successful installing it but didn't ask for help and gave up instead. Lots and lots of people are registered "lurkers" and never post at all. At least that's how it works on my forums.

Don't take this the wrong way, I'm not telling you what to do or how to run your forums. Just making a suggestion that you consider the great suggestions these members made!

Thanks for this awesome meeting ground. I for one appreciate it tremendously.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, and if this mod were going to be updated/maintained or reposted, I'd update the instructions next time. For now - the first post in this thread reflects his suggestion, But this mod won't be needed moving forward - it's standard in 6.5. So there won't be a 5.1 version of this mod.

Like I said, just about every mod here, by myself or others, gets written because either the poster needed it themselves, or it was commissioned by someone.

I didn't mean for my post to sound like I had an attitude. I don't. I was speaking generally. I didn't write the original instructions to this particular mod, nor did I do the latest update of it. It's been kicked and passed around for a long time. I only made the post (where the full directories of the files ARE correct )

Also alot of these mods are done by several people and passed around, and updated before they get posted. This particular mod was origially written by Allen, I made some changes to it (added the icon bit, fixed some bugs), then Gardener wrote the javascript stuff. And 6 different people have updated it/updated the instructions along the way for updated versions of UBB.Threads. So it becomes a bit of a hodge-podge of people adjusting stuff/adding stuff.

Alot of times, it's the first person that needed it themselves due to a new version who actually updates the instructions. The instructions for this version were updated by DLWebmeistro because nobody else had updated it yet and he needed it. But this particular mod has had 3 authors and been updated by 6 different people... so it's tough to be 100% consistant. (A big thank you to anyone who updates a mod/resubmits or reposts it because they take time out to make the info available to others. I probably would not have gotten to a 6.4 version of Quick Reply (to post) if DLWebmeistro hadn't have helped. He updated several mods when Threads 6.4 came out.)

In a perfect world.... one person could document/post everything then there would be more consistancy. Or I could police everything, make the instructions consistant myself. But I don't have time for that for everything submitted. So if anyone wants a full-time unpaid job... it's yours. LOL But If Someone updates it, or posts it, and tells me "it works" - that's good enough for me.

I didn't mean to sound like it was a bad idea. There are several threads here talking about standards to use if you're writing a mod and we use the modified "newpost" form in this forum to try to get some consistency when this stuff gets posted. But if we were too strict about how people submitted stuff, there woudln't be nearly as much stuff here. If there was going to be a 5.1 of this mod - I'd tweak the instructions in the zip (assuming I was the one updating it this time). But like I said, this mod will be outdated very soon.. and the instructions in the first post ARE correct. I try to be consistant when the post gets made. So it should be clearer to newbies as to exactly what files need to be modified.

It didn't happen in this thread - I really just saw the suggestion and agreed, but knew this mod wasn't needed anymore - and we're working on 6.5 stuff now - so I knew there would be no more updates. But from time to time here, people complain about stuff, (nobody in this thread) demand changes, or need an extreme amount of support.... and that can often make the person who wrote it/posted it/updated it/submitted it regret it, as then it becomes a hassle. I've seen authors come back and delete their mod for that reason. So everyone should always be respectful of that when someone takes the time. They aren't software retailers or full-time support people, they are just a user like the rest of us, who did something cool and decided to share it so others could do the same. And anyone who has a change/idea/tweak is free to modify and submit it themselves.

We've had some great mods posted/created and collaborated here. So that
part of this community is definately very cool.

Like I said - the suggestion was valid, and if I personally were updating this next time, I'd make it more clear. But beggers can't be choosers.

Joined: Dec 2003
Posts: 123
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 123
You da' man, Josh! Thanks for your reply.


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
Morgan 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 20221218)