vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MEMBERINFO: Showing threads by member in specific forum (https://vborg.vbsupport.ru/showthread.php?t=168857)

Alfa1 01-27-2008 09:07 AM

MEMBERINFO: Showing threads by member in specific forum
 
I want to place a link to a members threads in a certain forum. On the statistics tab of MEMBERINFO(vb 3.7)

In vb 3.6.8 and below the memberinfo template has this code:
PHP Code:

            <fieldset class="fieldset">
                <
legend>$vbphrase[posts]</legend>
                <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                
                    <
td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
                </
tr>
                </
table>
            </
fieldset

How can I adjust this code so that it shows threads from a certain forum only and works for vb 3.7?

cheesegrits 01-27-2008 08:56 PM

Just add "&amp;forumchoice[1]=123" (obviously change 123 to the forumid you want).

I don't think there's any changes to the search query strings in 3.7.

-- hugh

Alfa1 01-28-2008 08:07 AM

Thanks. And when I want to include multiple forums?

cheesegrits 01-28-2008 06:04 PM

I think you can just add more forumchoice[X] args. Although thinking about it you should probably start with 0 rather than 1. So to add two forumid's, add ...

&amp;forumchoice[0]=123&amp;forumchoice[1]=124

... etc.

-- hugh

Alfa1 01-30-2008 09:13 PM

Many thanks again. I have been trying to find the correct location to add this to the statistics tab of member profile, but it seems the content of this tab is not on MEMBERINFO. Do you have an idea where to find this?

Lynne 01-30-2008 09:47 PM

Quote:

Originally Posted by Alfa1 (Post 1432744)
Many thanks again. I have been trying to find the correct location to add this to the statistics tab of member profile, but it seems the content of this tab is not on MEMBERINFO. Do you have an idea where to find this?

Maybe "memberinfo_block_statistics" ? I think all the "memberinfo_block_xxx" templates are for the different tabs and blocks on that page.

Alfa1 01-31-2008 11:38 PM

Will try thanks!

--------------- Added [DATE]1201832459[/DATE] at [TIME]1201832459[/TIME] ---------------

OK. all works well. Thanks.
Is there a way to add 'total threads started in forum 123', similar to the statistics of total posts on the statistics block of profile?

Alfa1 02-17-2008 05:48 PM

bump


All times are GMT. The time now is 06:49 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.01589 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete