Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (SteveS), 29 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 105
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#169895 - 12/07/06 03:58 PM Threads not being listed
Jake Offline
member
Registered: 11/17/06
Posts: 143
Loc: Virginia
Upgraded from UBB.classic 6.7.1 to UBB.threads 7.0.1 then 7.0.2.

We thought we lost one of the threads we were using as an informative sticky at the beginning of one of the forums. Clicking through each page of that forum and searching for that author did not reveal it (nor did a "Show User's Posts" - at least we didn't find it). But it wasn't important enough to worry about so we forgot about it.

Then I was reading the first post in that forum and clicked on "Next Topic". Lo and behold that thread was displayed. It was still a sticky but just not being listed in that forum. I unstickied it to see if that would get it listed in that forum. Nothing. So I restickied it and left it (and I can now find it by clicking "Next Topic" while in the first post of that forum).

Ideas?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#169935 - 12/08/06 01:48 AM Re: Threads not being listed [Re: Jake]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

I had a problem importing stickied threads a couple months ago... sorry to hear that it still might be an issue. What I did was un-sticky the threads, then start over. It was okay after that.. :/
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#169950 - 12/08/06 10:49 AM Re: Threads not being listed [Re: jgeoff]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
You can do a database query to unsticky them all and they'll show up. Unfortunately you'd need to find them and resticky them afterwards. If you want to go this route you can run the following sql command:

update ubbt_TOPICS set TOPIC_IS_STICKY='0'
Top
#169953 - 12/08/06 11:22 AM Re: Threads not being listed [Re: Rick]
Jake Offline
member
Registered: 11/17/06
Posts: 143
Loc: Virginia
update ubbt_TOPICS set TOPIC_IS_STICKY='0' worked to unstick all of the sticky threads. When I viewed a listing of each forum the stickys were gone.

BUT, when I went back to re-sticky each of the topics I got this error message for each and every thread that was unstickyed with the SQL command:

Script: ../forums/scripts/stickpost.inc.php
Line#: 123
SQL Error: Duplicate entry '426-1' for key 1
SQL Error #: 1062
Query: INSERT INTO ubbt_ANNOUNCEMENTS VALUES ( 426 , 1 )

Please use your back button to return to the previous page.


[I shortened the directory. Also the '426-1' was different for each but I think all of them were the same SQL error 1062.]
Top
#169954 - 12/08/06 11:27 AM Re: Threads not being listed [Re: Jake]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
ok, you'll need to clear out the announcements table as well by running this query:

DELETE FROM ubbt_ANOUNCEMENTS
Top
#169969 - 12/08/06 01:32 PM Re: Threads not being listed [Re: Rick]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Quote:
DELETE FROM


Such an ugly term. - \:D
Top
#169971 - 12/08/06 01:43 PM Re: Threads not being listed [Re: Rick]
Jake Offline
member
Registered: 11/17/06
Posts: 143
Loc: Virginia
Well, it appears to be working properly. Are there really duplicate entries in ubbt_ANNOUNCEMENTS VALUES or did it attempt to make duplicate entries and complain because it could not make the duplicate entry?

What happens if I don't do a DELETE FROM ubbt_ANOUNCEMENTS?

Also, doesn't a SQL command need to specifically delete something specific. That command has me worried!
Top
#169972 - 12/08/06 01:52 PM Re: Threads not being listed [Re: Jake]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Basically the announcements table keeps track of which topics are sticky. With the first command I gave you that set all topics to unsticky in the topics table, but didn't account for those in the announcements table. Those 2 commands go hand in hand. What's happening is those that you are trying to make sticky again are already in the announcements table and you're getting the error.
Top
#169977 - 12/08/06 02:40 PM Re: Threads not being listed [Re: Rick]
Jake Offline
member
Registered: 11/17/06
Posts: 143
Loc: Virginia
Thanks for the response. I realized as much.

What happens if I don't do a DELETE FROM ubbt_ANOUNCEMENTS?

Can I just leave it alone at this point or do I need to repeat the two commands?
Top
#169978 - 12/08/06 03:23 PM Re: Threads not being listed [Re: Jake]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
If you have all of your stickies working as intended, then don't worry about running that command.
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Yesterday at 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image