I figure we should make a separate section for our useful Threads7 queries as to keep things separate from the Threads6 stuff (since they're not interchangeable).
sirdude
Bada bing!
Enthusiast
Registered: 11/08/03
Posts: 439
Loc: SoCal
ok, i'll try not to hijack again
This is a quick way to make a list of all your themes and how many members have specifically chosen a theme in their profile.
Code:
SELECT
CONCAT('[*][url=http://path/to/threads/ubbthreads.php?ubb=previewskin&skin=',t2.STYLE_ID,']',STYLE_NAME,'[/url]') AS Style,
CONCAT('[color:red](',COUNT(t2.STYLE_NAME),')[/color]') as Count
FROM ubbt_STYLES as t2,
ubbt_USER_PROFILE as t1
WHERE t1.USER_STYLE = t2.STYLE_ID
GROUP BY t2.STYLE_ID
ORDER BY t2.STYLE_NAME
output after pasting it into the SQL pane in the Database tools is:
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25432
Loc: Texas
Wondering this one too:
How do we delete private messages/topics for those users who have been deleted. One of those cleanup things I hope we get in the next version or 2. The users are already deleted, but their private topics/messages are still hanging around.
blaaskaak
Member
Registered: 02/25/07
Posts: 299
Loc: The Netherlands
Originally Posted By: AllenAyres
How do we delete private messages/topics for those users who have been deleted. One of those cleanup things I hope we get in the next version or 2. The users are already deleted, but their private topics/messages are still hanging around.
Gizmo
Wizard
Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
Allen, keep in mind that if one of the other recipients of the PT still has it in their mailbox it isn't yet orphanized; though some users just keep PT's to keep them, so it can be rather interesting...
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25432
Loc: Texas
I have a client who says his email notifying .gif blinks even tho he doesn't have any unread emails because he had one from someone that he never read before he deleted the user.
AllenAyres
I type Like navaho
Registered: 03/10/00
Posts: 25432
Loc: Texas
How do I find *some* text in the DEFAULT_POST_BODY and change it to *some* other text? I don't want to replace everything in that field, something like I want to trade a smile for a frown or something similar?