vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User threads in Member Profile (https://vborg.vbsupport.ru/showthread.php?t=225712)

reddyink 10-21-2009 05:18 PM

User threads in Member Profile
 
How to list the User Threads in Various Forums Like VB.Org does added to members profile page.

see here how this is done
https://vborg.vbsupport.ru/member.php?u=258416

Lynne 10-21-2009 08:27 PM

It's just a query for threads in a specific forum. You can put them in their own tab using the article in the Articles forum for adding your own tab to the profile page.

reddyink 10-21-2009 10:56 PM

can you please explain how to do this?

Many thanks.

Quote:

Originally Posted by Lynne (Post 1903406)
It's just a query for threads in a specific forum. You can put them in their own tab using the article in the Articles forum for adding your own tab to the profile page.


Lynne 10-21-2009 11:09 PM

Here's the article on how to add the tabs - [How-to] Add more tabs to the vB 3.7 profile pages The basic query would be something along the lines of (this doesn't take into account any permissions):
PHP Code:

$myid=$this->profile->userinfo['userid']; 
$getthreads $vbulletin->db->query_read(
                SELECT threadid,title,dateline,forumid 
                FROM " 
TABLE_PREFIX ."thread 
                WHERE postuserid = '
$myid' AND forumid IN ('x','y','z') 
                ORDER BY dateline DESC 
                LIMIT aa 
        "
); 

If you need someone to write the whole thing for you, you'll need to post in the Request for Mods (Unpaid) or Paid Requests.

reddyink 11-11-2009 05:31 PM

I do not know how to program. Cut page didn't work in tab code tutorial.

Appreciate your help!


Quote:

Originally Posted by Lynne (Post 1903451)
Here's the article on how to add the tabs - [How-to] Add more tabs to the vB 3.7 profile pages The basic query would be something along the lines of (this doesn't take into account any permissions):
PHP Code:

$myid=$this->profile->userinfo['userid']; 
$getthreads $vbulletin->db->query_read(
                SELECT threadid,title,dateline,forumid 
                FROM " 
TABLE_PREFIX ."thread 
                WHERE postuserid = '
$myid' AND forumid IN ('x','y','z') 
                ORDER BY dateline DESC 
                LIMIT aa 
        "
); 

If you need someone to write the whole thing for you, you'll need to post in the Request for Mods (Unpaid) or Paid Requests.


Lynne 11-11-2009 07:13 PM

I have no idea what you mean by "Cut page didn't work in tab code tutorial." If you need help with code, you really need to post the exact code you've written including the hook location you are using and all the templates.


All times are GMT. The time now is 02:21 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.02512 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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