Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-27-2002, 08:48 PM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #12  
Old 08-27-2002, 09:07 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Attached Files
File Type: txt display user threads in forum x in postbit hack2.txt (1.9 KB, 26 views)
Reply With Quote
  #13  
Old 08-27-2002, 09:31 PM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #14  
Old 08-28-2002, 06:38 AM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And I didn't used the lostpw-template, if that would be your next question
Reply With Quote
  #15  
Old 08-28-2002, 07:32 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #16  
Old 08-28-2002, 07:43 AM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #17  
Old 08-28-2002, 07:48 AM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, You changed the link too. Sorry, testing now.
Reply With Quote
  #18  
Old 08-28-2002, 07:52 AM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works! GREAT! Thank you very much.
Reply With Quote
  #19  
Old 08-28-2002, 08:11 AM
Grendel's Avatar
Grendel Grendel is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #20  
Old 08-28-2002, 08:20 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:20 PM.


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.06687 seconds
  • Memory Usage 2,292KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete