![]() |
List of threads a member has started
Is this possible:
I want to show all threads a member has started (of chosen forums). I run vb on a literature-page and want to make a list of all stories a member has posted. Any help would be great. |
Quote:
|
In the User-Info at the right side of a thread etc., where the avatar, status, etc. are shown. There one should find a link to all threads a member has started.
The list shouldn't be build from all forums but from forums the admin is choosing (in the hack). Thats because only stories should be listed, not the other forums (like website-discussion etc.). Sorry for my poor english, I'm just a stupid German ;) |
1 Attachment(s)
Here you go.. ;)
FYI. this hack increases your query load in postbit loads to a certain extent since it needs to query your database to get users' threads in forum X. |
Great! *hug* *kiss* and so on ;)
(I hope it won't increase the load too much) |
Quote:
|
Hm, something is wrong:
Parse error: parse error in /homepages/.../htdocs/vb/admin/functions.php on line 90 Fatal error: Call to undefined function: getuserinfo() in /homepages/.../htdocs/vb/admin/sessions.php on line 324 The parse error is gone, just needed to replace some ' for some ". But the Fatal error now is: Fatal error: Call to a member function on a non-object in /homepages/.../htdocs/vb/admin/functions.php on line 90 |
there's probably a coding error in the hack that you just installed either that or you mis-hacked the admin/functions.php from the error that im seeing... regards...
g-force2k2 |
It's nearly impossible to mis-hack ;)
See my edited posting. |
Quote:
Find -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= function getpostbit($post) { // sorts through all the stuff to return the postbit template -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= After that add -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= extract ($GLOBALS); -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This will fix "Call to a member function on a non-object " error.. However there should not be any parse error, there is no here.. I tested it and it's working.. |
Yes, it works!
I don't want to get on your nerves but: Now it builts a lis right at the postbits. I want to have a link in the postbits leading to a seperate list of started threads. Would this be possible too? Thanks again for your work! |
1 Attachment(s)
Quote:
Try this.. I made a quick modification and I didnt test it so holler if it does not work.. And a good news: if you apply this hack, SQL load will not be affected unlike the prior one.. |
Code:
exit; Code:
exit; I think something is missing in this link: member.php?s=$session[sessionhash]&postuserid=$post[userid] |
And I didn't used the lostpw-template, if that would be your next question ;)
|
ok I fixed the problems and updated the file, try again..
You may get the old (cached) file so try to download it by choosing right click and save as a file. And it's working now.. Tested..;) |
Whatever I do, it's not working. Here is one of the links I get:
<a href="member.php?s=&postuserid=2474">Stories</a> URL: http://www.short-stories.de/vb/ And if click on this all I get is the Lost-Password-Form. My userthreads-template: Code:
{htmldoctype} |
Oh, You changed the link too. Sorry, testing now.
|
Works! GREAT! Thank you very much.
|
Now, to make this hack perfect:
- I want to list threads from more than one forum, how do I do that? The following I want to show in the list too: - Date of starting the thread - User-Name (as headline) - Categories :) |
Quote:
PHP Code:
PHP Code:
Quote:
PHP Code:
|
Code:
if ($action=="showthread") { Code:
if ($action=="showthread") { Now only the categories are missing. And then it's done and perfect and a great and useful hack! Thank you very much again! |
what do you mean by categories?
|
And
Code:
<a href=\"showthread.php?s=".$session[sessionhash]."&thread=".$users_threads[threadid].'"> Code:
<a href=\"showthread.php?s=".$session[sessionhash]."&threadid=".$users_threads[threadid].'"> |
Sorry, not Categories. I mean the forums, where that posting is in.
|
If one has no stories in the list, the username is not available too - could this be fixed?
Oh, I added this: Code:
AND visible=1 AND sticky=0"); |
Is it possible to show the forums where that posting is in? Would be great.
|
Use:
PHP Code:
|
Forums in list works, username if no postings doesn't :(
Nevertheless - thank you for your work on this! |
edited.. try again..
|
Hm, I don't see any change to te code before. Can you tell me, what exactly has changed?
|
added a missing $ to if (!$postusername)
|
:banana:
Perfect! Thank you for all the work and your support. |
working ok now?
|
1 Attachment(s)
Yes, right like I need it! Thank you!
I attach the end-file, with a table for nicer output and I removed two errors. Great job!! |
shall try this out.
Grendel - do u have a screen shot of the finished product? |
No, sorry.
But you don't really need one - its just a simple table with 3 rows: Title of started thread; forum; date. |
|
Quote:
Also - is it possible to put besod "stories: the number of posts?> So ite would look like Stories: 14 ???? but still have the link as well to another page will all posts n it? |
I don't know, sorry. But I'm working on something like this right now.
|
nice hack
|
All times are GMT. The time now is 10:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|