vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   List of threads a member has started (https://vborg.vbsupport.ru/showthread.php?t=42801)

Grendel 08-27-2002 08:48 PM

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!

Logician 08-27-2002 09:07 PM

1 Attachment(s)
Quote:

Originally posted by Grendel
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!

oh I thought you want it this way..

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..

Grendel 08-27-2002 09:31 PM

Code:

exit;

// Logician Display User's Threads in forum X in postbit hack}

should be
Code:

exit;
}
// Logician Display User's Threads in forum X in postbit hack

Now, if I click at the link, I get the lostpw-Form. How comes this?

I think something is missing in this link:

member.php?s=$session[sessionhash]&postuserid=$post[userid]

Grendel 08-28-2002 06:38 AM

And I didn't used the lostpw-template, if that would be your next question ;)

Logician 08-28-2002 07:32 AM

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..;)

Grendel 08-28-2002 07:43 AM

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}
<html>
<head><title>$bbtitle - Geschichten</title>
$headinclude
</head>
<body>
$header

<br>

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}"><b>Geschichtenliste</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{firstaltcolor}">$post[specialthreads]</td>
</tr>
</table>
</td></tr></table>


$footer

</body>
</html>


Grendel 08-28-2002 07:48 AM

Oh, You changed the link too. Sorry, testing now.

Grendel 08-28-2002 07:52 AM

Works! GREAT! Thank you very much.

Grendel 08-28-2002 08:11 AM

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

:)

Logician 08-28-2002 08:20 AM

Quote:

Originally posted by Grendel
Now, to make this hack perfect:

- I want to list threads from more than one forum, how do I do that?

Replace

PHP Code:

AND forumid=

as

PHP Code:

AND (forumid=OR forumid=OR forumid=Z

Quote:

The following I want to show in the list too:
- Date of starting the thread
- User-Name (as headline)
PHP Code:

if ($action=="showthread") {
extract ($GLOBALS);
        
$users_t=$DB_site->query("SELECT threadid, title,postusername, dateline FROM thread WHERE postuserid=".$postuserid." AND forumid=X AND visible=1");
        while (
$users_threads=$DB_site->fetch_array($users_t)) {
          
$post[specialthreads].="<a href=\"showthread.php?s=".$session[sessionhash]."&thread=".$users_threads[threadid].'">'.$users_threads[title].'</a> ('.vbdate($dateformat,$users_threads[dateline]).')<br>';
$postusername=$users_threads[postusername]
        }
if (!
$post[specialthreads]) {$post[specialthreads]='N/A';}        
  eval(
"dooutput(\"".gettemplate("usersthreads")."\");");
exit;


Use $postusername in your template to refer Poster name


All times are GMT. The time now is 10:24 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
  • Page Generation 0.01175 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete