Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
Mod Name / Version: Beta-[6.4] New posts to same topic while I'm replying? v1.3

Description: If a user replys to a post and in the meantime new posts are added to the same topic, then a message is shown on the preview page. The message contains the username, time and a link to the new reply.
Even if the user does not mark the "I want to preview my post"-checkbox, he is taken to the preview screen if a new reply was added in the meantime.

Useful for high traffic boards, if two users reply to a topic at the same time. The slower user gets informed about the post added in the meantime.

Included are the strings for English, Spanish and German language files.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: none

Author(s): Maze

Date:
[10/07/03 updated to work with v6.4]
[08/03/03 updated to work with v6.3]
[01/07/03 original release for v6.2]

Credits:

Files Altered: addpost.php, newreply.php, addpost_preview.tmpl, newreply.tmpl, /languages/XXXX/addpost.php

New Files: no

Database Altered: no

Info/Instructions: The old versions of this hack can be found here:
New posts to same topic while I'm replying? v1.0
New posts to same topic while I'm replying? v1.2


Example:
[]http://www.bikefreaks.de/images/forum/extern/ubbt_hack_screen3.png[/]

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

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
This is a very useful mod, thanks for the update.

Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
I tried installing this hack in my UBBThreads 6.4 but I got the following error:

[:"red"]Je
Warning: Cannot modify header information - headers already sent by (output started at /home/www/the-highway/forum/addpost.php:1) in /home/www/the-highway/forum/ubbt.inc.php on line 271[/]

Any idea what would cause this error?

Jeff


Artificial Intelligence is no match for natural stupidity!
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Usually a stray character after the closing ?> tag in a template file is the most common cause.

Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
Fixed! It wasn't what you or Josh thought it was but it's now working. I narrowed the problem down to the "addpost.php" file and after trying several things, simply started out clean and reapplied the hack to that file and it worked.

[]http://www.the-highway.com/Smileys/cheshirecat.gif[/]


Artificial Intelligence is no match for natural stupidity!
Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Actually it was exactly what we thought it was It was a stray character copied over in a file although as Josh pointed out it is usually a language or template file. Most likely there is a stray character in the instructions that is being picked up upon copy over.


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
Posts: 70
Joined: January 2007
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 20240506)