PDA

View Full Version : User threads in Member Profile


reddyink
10-21-2009, 05:18 PM
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.

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 (https://vborg.vbsupport.ru/showthread.php?t=165554) The basic query would be something along the lines of (this doesn't take into account any permissions):
$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!


Here's the article on how to add the tabs - [How-to] Add more tabs to the vB 3.7 profile pages (https://vborg.vbsupport.ru/showthread.php?t=165554) The basic query would be something along the lines of (this doesn't take into account any permissions):
$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.