View Full Version : Users Threads in Their Profile
assassingod
11-22-2003, 10:00 PM
Users Threads in Their Profile
Coded By: assassingod
Description: This will show the users posted threads in their profile. It also counts the number of threads posted
UPDATED 26/11/2003
vB Version:
2.2.x and 2.3.x
Don't forget the click the install button if you use this!:)
dnoyeb2002
11-23-2003, 08:07 PM
Awesome mod assassingod . . . installing it right now on my board. Thanks for the idea!
NTLDR
11-23-2003, 10:43 PM
Nice idea, however IMO you really should have some sort of limit on the number of threads, you really don't want to be showing hundreds of threads on the profile page, a counter a say the last X threads would be better.
Also this will get threads that are in private forums, not good ;)
One last thing :P The second query is a waste, why not just increment a variable in with each iteration of the while loop? Much more efficent. Remember query_first to, thats a query were it should be used on to save extra coding :)
poetic
11-24-2003, 12:22 AM
ya i tihnk it should be changed to the last 10 threads
assassingod
11-24-2003, 03:24 PM
Nice idea, however IMO you really should have some sort of limit on the number of threads, you really don't want to be showing hundreds of threads on the profile page, a counter a say the last X threads would be better.
Also this will get threads that are in private forums, not good ;)
One last thing :P The second query is a waste, why not just increment a variable in with each iteration of the while loop? Much more efficent. Remember query_first to, thats a query were it should be used on to save extra coding :)
Thanks for the info Lee. I'll get to work right away on it:)
Dean C
11-24-2003, 03:38 PM
Good lord - i wouldn't reccomend anyone installing this until it has the limit on it - but to be honest if you have a page limit then its the same as searching for all posts. If it's the latest posts then this hack is already made - tough one Steve :)
assassingod
11-24-2003, 03:40 PM
Good lord - i wouldn't reccomend anyone installing this until it has the limit on it - but to be honest if you have a page limit then its the same as searching for all posts. If it's the latest posts then this hack is already made - tough one Steve :)
For a temporary fix i'll add a vB option. Then sort out the problems.
And it's just threads posted by that user
FleaBag
11-24-2003, 05:47 PM
Give the guy a break, he's 14 and doing his best - when I was 14 I could barely string a HTML page together.
Nice idea mate, if there's a limit on the number of threads I'll gladly install as I know my members will appreciate it.
assassingod
11-24-2003, 05:51 PM
Thanks FleaBag:)
I'll get to work on a page navigation feature next (After I stop playing with GD:D)
g-force2k2
11-25-2003, 06:09 AM
Nice Job Assassingod.
Here's an edited version that uses a variable to define the amount of threads to show in the user profile using vbulletin options.
Also cut the second query and incremented while using the while loop. Only thing is it won't calculate the total number of threads a user has posted.
And likewise I agree with what NTLDR said about permissions.
Haven't tested it either just coded it.
Regards,
g-force2k2
assassingod
11-25-2003, 06:21 AM
Nice Job Assassingod.
Here's an edited version that uses a variable to define the amount of threads to show in the user profile using vbulletin options.
Also cut the second query and incremented while using the while loop. Only thing is it won't calculate the total number of threads a user has posted.
And likewise I agree with what NTLDR said about permissions.
Haven't tested it either just coded it.
Regards,
g-force2k2
Thanks very much g-force:) When I get back from school i'll test and add this to the first post
assassingod
11-25-2003, 03:56 PM
Right, you can now set up a default number of threads via vBOptions. I will work on permissions and page navigation.
assassingod
11-26-2003, 03:51 PM
You can now exclude forums via vBOptions and you can limit to the number of threads you want to be displayed on a page:)
Working version:)
Lesane
11-26-2003, 03:56 PM
Good work 'assassingod', i like it alot. Will install it soon on my forum, thanks.
assassingod
11-26-2003, 04:20 PM
Thanks Lesane:D:)
Floris
11-26-2003, 06:43 PM
Thanks Lesane:D:)
Nice job my friend :)
assassingod
11-26-2003, 09:32 PM
Thanks:)
zsmom
11-26-2003, 10:26 PM
Cool! Thanks!
*installed*
PixelFx
11-28-2003, 07:21 AM
nice hack :)
mzlogical
11-28-2003, 10:16 AM
Nice nice job dude. :)
*clicks install*
assassingod
11-28-2003, 02:24 PM
Thanks for the feedback
Assassingod,
Great work here. I believe you're work is going to be worth watching over the next few months.
Very impressive.
assassingod
11-28-2003, 08:50 PM
Thanks for the great feedback:)
Sophocle
11-28-2003, 11:42 PM
As usual, an excellent hack. Thank you assassingod.
I've submitted it for french translation to www.vbulletin-fr.com.
lasto
12-16-2003, 10:40 AM
is quite good basically as u can see the last threads they made
it does have its uses so i will install it as well
/me clicks install
lasto
12-16-2003, 12:55 PM
is the counter global ? so it can be inserted into the postbit so we can see at a glance how many threads a user has started compared to his replies ??
assassingod
12-18-2003, 05:13 PM
is the counter global ? so it can be inserted into the postbit so we can see at a glance how many threads a user has started compared to his replies ??
No, but it's a seperate hack that's been released:)
deaconxgp
01-01-2004, 04:45 AM
how do you find out the forum id's?
deaconxgp
01-01-2004, 04:49 AM
also, i get a database error stating something about the member.php and the table not working.
it says this line
SELECT threadid,title,dateline,forumid
FROM thread
WHERE postuserid = $userinfo[userid] and forumid NOT IN ($excludedforums)
ORDER BY dateline DE
says it doesn't work...the options to set thread limits etc are in my admin panel but nothing shows...
deaconxgp
01-01-2004, 04:49 AM
could it be possilbe i ran the query wrong? i copied and pasted the 2 lines listed in the instructions in the phpmyadmin query and clicked Go. that was right wasn't it?
assassingod
01-01-2004, 01:11 PM
Update the new vBOptions with the forums you've excluded and how many topics on the user profile you want to be displayed.
deaconxgp
01-01-2004, 01:39 PM
i did that and it still displays nothing. keep in mind though that this is all working without my original member.php file. it won't work if i edit the member.php file like the instruction suggest.
deaconxgp
01-01-2004, 02:26 PM
solved the problem myself guys :)
i'm getting pretty good at this stuff lol
deaconxgp
01-02-2004, 01:02 PM
one other thing. For some reason, the user threads don't appear. It only lists one. It says that the user has 10 threads but only lists one....what could be wrong? I set the amount of threads to be shown as 20....even when I posted a test one it kept showing just one.
assassingod
01-02-2004, 01:16 PM
Has this user posted threads in an excluded forum?
deaconxgp
01-02-2004, 03:31 PM
nope. I only excluded one forum and then tested by posting threads in other forums...it just shows the count but it doesn't list them. it lists just one thread in the user profile but the # of threads will be correctly displayed in the ( ). so let's say the user has (15) posts..it only lists one in his profile.
assassingod
01-03-2004, 07:44 AM
I'll look into this. Has this user had any threads deleted?
deaconxgp
01-03-2004, 01:39 PM
Nope. No threads deleted.
deaconxgp
01-08-2004, 12:46 PM
this works now! apparently when i upgraded to version 2.3.4 something happened in the process of me reinstalling the hacks that made it work :)
assassingod
01-08-2004, 01:48 PM
Good to know.
DarkSavior
01-23-2004, 02:25 PM
Works great! Nice piece of work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.