The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Favorite Threads in Profile Tab
I would like to add an additional Tab to the User Profiles that holds "Favorite Threads". I was thinking that I could just move the Thread Subscriptions to a Profile Tab and Name the Tab "Favorites" but I got confused trying to figure out how to do this. Can someone point me in the right direction?
The bottom line of what we want to accomplish, is to make a members favorite threads visible to others who are visiting that members profile. Thanks in advance. |
#2
|
|||
|
|||
Might be some coding. But I find no way to do this unless you put the users subscribed threads in tab on their profile.
|
#3
|
||||
|
||||
I agree. That will accomplish my goal. I am just not exactly sure how to go about it.
|
#4
|
|||
|
|||
Quote:
If you can find out somewhere how to make a profile tab, maybe you could copy the code from the Subscribed Threads page and paste it in the profile tab. |
#5
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=165554" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=165554</a>
That should get you started |
#6
|
||||
|
||||
Quote:
Code:
<tr><td class="$navclass[substhreads_listthreads]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[list_subscriptions]</a></td></tr> <tr><td class="$navclass[substhreads_editfolders]" nowrap="nowrap"><a class="smallfont" href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a></td></tr> |
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
You need to make sure you do the query for those fields in your plugin.
|
#9
|
||||
|
||||
I went to the subscription.php and pulled the code for "view threads" and pasted it into the plugin. Nothing. I am inserting the code as follows:
Code:
function prepare_output($id = '', $options = array()) { ------->$this->block_data['favorites'] = 'Browse my favorite threads.';<------ Replacing this line } } |
#10
|
||||
|
||||
I doubt you can just add some <tr><td> tags into the middle of a tab and have it work. You need to use valid html on a page or it will break. And is the $navclass variable available in that plugin? Did you define it? And how about $vbphrase? Did you make it global? I'm not sure if that is valid there. Dumb down your lines without those two things and see if you can get anything to output.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|