Welcome, Guest. Please Login or Register.
May 11, 2025, 06:23:51 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Addition to Profile: Threads Started « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Addition to Profile: Threads Started  (Read 631 times)
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Addition to Profile: Threads Started
« on: April 04, 2003, 07:06:17 PM »
Reply with quote

Hi. This is a request from some of my members -- to be able to view threads started by someone from their profile. Under "Show the last ___ posts of this person",  they'd like an option to "Show the last ____ topics started by this person", with the same selection choices (5, 10, 50, All).

To make it even better, an option to select which boards to look in, for both posts and topics started, would be nice.

Also, I'd like to request that the results for "All", and maybe "50" too, be split up into multiple pages, with something like 25 or 30 posts per page, instead of all on one so that the loading of the page takes forever when the person has a ton of posts.
Logged
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:Addition to Profile: Threads Started
« Reply #1 on: April 04, 2003, 07:34:28 PM »
Reply with quote

While it does sound like a good idea for a mod, until it is written much of what you ask can be accomplished using the advanced search options.  Just not from within the profile as you requested.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Re:Addition to Profile: Threads Started
« Reply #2 on: April 04, 2003, 07:41:35 PM »
Reply with quote

I tried that, and no, it unfortunately can't. Searched for topics started by myself and it gave me nothing. Search, for some reason, will not work without typing in a search term.  You can't just list topics started by someone, you must enter a word to be contained in their messages/subjects.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Addition to Profile: Threads Started
« Reply #3 on: April 04, 2003, 09:32:05 PM »
Reply with quote

use the search and enter 1 lettter, like 'e', for example
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:Addition to Profile: Threads Started
« Reply #4 on: April 04, 2003, 10:02:44 PM »
Reply with quote

Quote from: Spaceman-Spiff on April 04, 2003, 09:32:05 PM
use the search and enter 1 lettter, like 'e', for example
:D  funny....

I guess I forgot that I always search for my name in topics I started... but the letter 'e' seems like a good choice too. :D

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:Addition to Profile: Threads Started
« Reply #5 on: April 04, 2003, 10:27:48 PM »
Reply with quote

Another possibility: search for ' ' (a blank space).
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Addition to Profile: Threads Started
« Reply #6 on: April 05, 2003, 12:37:38 AM »
Reply with quote

An interesting push on this - what about number of threads started?

-[Unknown]
Logged
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Re:Addition to Profile: Threads Started
« Reply #7 on: April 06, 2003, 08:26:53 PM »
Reply with quote

Thanks for the tips, guys.

I still would really like this mod though, especially the part about separating "All" into multiple pages. I like Unknown's idea too. That would be a great stat to have in profiles. Another idea: show their number of posts in each board....  to see where they are most active. Maybe in graph form. And show their ratio of posts to topics started in each forum. I know that's getting pretty complicated, but hey if you're gonna wish, wish big, right?

Any takers, for any part of this?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Addition to Profile: Threads Started
« Reply #8 on: April 06, 2003, 08:34:12 PM »
Reply with quote

Well, I'll provide some assistance... although i don't feel like making and supporting a mod :P.

$userID = $ID_MEMBEROfThePersonYouAreViewingsProfile;

// *Should* find the number of posts per board...
SELECT COUNT(t.ID_TOPIC), b.name
FROM topics AS t
  LEFT JOIN boards AS b ON (b.ID_BOARD=t.ID_BOARD)
  LEFT JOIN messages AS m ON (m.ID_TOPIC=t.ID_TOPIC)
WHERE m.ID_MEMBER=$userID
GROUP BY t.ID_BOARD

// Posts started by this user....
SELECT t.ID_TOPIC
FROM topics AS t, messages AS m
WHERE m.ID_MSG=t.ID_FIRST_MSG
  AND m.ID_MEMBER=$userID

// Number of posts started by this user.
SELECT COUNT(t.ID_TOPIC)
FROM topics AS t, messages AS m
WHERE m.ID_MSG=t.ID_FIRST_MSG
  AND m.ID_MEMBER=$userID

I would think it better to do that then store it in the database....

-[Unknown]
Logged
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Re:Addition to Profile: Threads Started
« Reply #9 on: April 06, 2003, 09:04:17 PM »
Reply with quote

I'm not sure how to use the code you've provided, Unknown. Could you provide a little bit more assistance for the php impaired?

???

Thanks.  :)
« Last Edit: April 06, 2003, 09:04:42 PM by jenigma » Logged
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Re:Addition to Profile: Threads Started
« Reply #10 on: April 08, 2003, 12:52:04 PM »
Reply with quote

Hello?

I need to know where to use this code. In profile.php? And does this code actually display the stats, or do I need separate code for that?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Addition to Profile: Threads Started
« Reply #11 on: April 08, 2003, 01:59:09 PM »
Reply with quote

Quote from: jenigma on April 08, 2003, 12:52:04 PM
Hello?

I need to know where to use this code. In profile.php? And does this code actually display the stats, or do I need separate code for that?


I just gave you a few queries to help along the way.  This code will actually do nothing....

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Addition to Profile: Threads Started « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.025 seconds with 20 queries.