Previous Thread
Next Thread
Print Thread
Rate Thread
#236494 02/15/2003 9:56 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
MOVED

NAME: Check Last Post Data
VERSION: 1.0.1
DESCRIPTION: Checks the last post data displayed on the main index page.
WORKING UNDER: UBB.threads 6.2.2
PREREQUISITES: none
AUTHORS: Dave Lerner (Dave_L)
CREDITS: Dave Lozier (JustDave), Olle Johansson (Gardener)
DEMO: none
FILES ALTERED: admin/menu.php
DATABASE ALTERED: yes (modifies some columns in Boards table)
NEW FILES: admin/checklastpost.php

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.

********
ABSTRACT
********

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.

-----
Edit:

Updated to version 1.0.1. This change is essentially cosmetic.

MOVED

Last edited by Dave_L; 07/19/2003 6:13 PM.
Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I made an update to fix a minor issue.

P.S.

This hack doesn't seem very popular. Did the [:"red"]red[/] warning scare people away?

By the way, one thing this hack will do is fix the problem of forums not showing up on the main index page due to Bo_Posterid or Bo_LastNumber not being set properly, which can occur when importing from UBB.classic.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Give me a chance to read it first, why dontcha? =]

I've just downloaded it and will give it a try.

Update: Tried it on my test board and it showed the correct results. It's a very empty database though, so it's not much of an indication. I don't have any 6.2 test board with lots of data in it unfortunately.

Last edited by Gardener; 02/21/2003 8:31 AM.
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I tried this on a board imported from vBulletin and it worked like a charm, very nice.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Thanks

Do you think it's safe to remove the [:"red"]red[/] warning, and move this to Finished Mods?

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I guess. But I still haven't tried it on a live board, but the forums that didn't show up magically appeared and could be viewed after running it.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Does this fix the missing forum issue?

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
If the forum is missing because the Boards.Bo_LastNumber or Boards.Bo_Posterid column has the wrong value, yes. That's partly why I wrote it.

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

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You da man!

Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Thank you very much for this add on.
I installed it and found lots of issues. (I hope that this fixed the problems we had on the boad with a correct display of "new" flags in certain boards.)

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Installed and working great. Thanks Dave! It found quite a few errors. Some were a result of moving a thread to a different forum, others are a mystery to me. Great work!

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
JoshPet, caymuc and AKD96: Thanks for the feedback

Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
So we should get this if we have the missing forum issue.

Any other reasons I would want to use this?

What does "It found quite a few errors" mean?

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Thanks this fixed a annoying problem and was very handy to update the articles mod to the correct user.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It fixes the missing forum issue. Also your counts may be off as some older version of threads were buggy when threads were deleted/moved etc.. So the counts may have been off for some time.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Moved to finished mods.


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)