Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Mod Name / Version: Check Last Post Data 1.0.2

Description: Checks the last post data displayed on the main index page.

Working Under: UBB.Threads 6.2-6.3

Mod Status: Finished

Any pre-requisites:

Author(s): Dave_L (Dave Lerner)

Date: 07/19/03

Credits: Dave Lozier (JustDave), Olle Johansson (Gardener)

Files Altered: admin/menu.php (optional)

New Files: admin/checklastpost.php

Database Altered: yes (modifies some columns in Boards table)

Info/Instructions:

This addon script will allow you to check and update the last post data displayed on the main index page.

It was based on Dave Lozier's Check Post Count addon script, updated by Olle Johansson.

One thing this hack will do is fix the problem of missing forums on the main index page due to Bo_Posterid or Bo_LastNumber not being set properly, which can occur when importing from UBB.classic, or when deleting posts.

Like JustDave's Check Post Count hack, you can use this hack without "installing" it. You can just run the script without adding a link to the Admin menu.

HISTORY:
2003-02-15 Dave_L - 1.0.0 Original release
2003-02-21 Dave_L - 1.0.1 Added missing $dbh-> in call to mysql_fetch_row.
2003-07-19 Dave_L - 1.0.2 Revised "working under" comment to include 6.3.

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
89337-checklastpost_1-0-2.zip (0 Bytes, 69 downloads)

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks for the update Dave


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Dec 2002
Posts: 5
Lurker
Lurker
Joined: Dec 2002
Posts: 5
I put this file in my uubthreads directory, set permission at 644, and pulled it up in my browser. I got this:

Fatal error: Failed opening required '../main.inc.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/default/htdocs/ubbthreads/checklastpost.php on line 62


Help please.

Rick

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think it's designed to go in the /admin directory. Hence the ../main.inc.php meaning that it's trying to go up a directory to find the main file.
Try putting it in there.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Yes, there are some subtle hints in the instructions:

[]...
Files Altered: admin/menu.php (optional)
New Files: [:"red"]admin[/]/checklastpost.php
...
Step 2.

Upload your modified menu.php script and this script to your [:"red"]admin[/] directory, and then
bring this script up in your browser. (There should be a link to it in your admin area now.)
...[/]

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I just had to use this for a royally screwed up forum. My first time actually using it.

Great Work Dave(s)!


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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,570
Posts293,918
Members13,848
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,830
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2023 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)