View Full Version : Mini Mods - My Listings (link in postbit)
Gio~Logist
07-13-2009, 10:00 PM
Brought To You By
ModernvB - Vbulletin Solutions & Services
http://www.modernvb.com
Inspired by.. ModernvB Listings (http://www.modern.com/vb_products.php?&vb_products=moreinfo&productid=13)
List My Threads
Quick and easy mod. I needed for this product and I saw it requested once or twice. A link will auto-generate in postbit, that will redirect the user to all the topics the member has started in that forum. There's also an option to make it forum specific.
Demo
Live Demo 1: View Demo (http://www.modernvb.com/showthread.php?t=655)
Live Demo 2: View Demo (http://www.modernvb.com/showthread.php?t=762)
("view my threads in forum x")
Installation
Step 1: Install the product
Step 2: Configure options & Enjoy! Options (vBulletin Options -> My Listings (Link in Postbit)
Useful Links
ProvB Listings (http://www.modernvb.com/vb_products.php?&vb_products=moreinfo&productid=12)
How-To's
You can utilize the format forumdisplay.php?f=x&userid=y in order to include the link anywhere, as what was done with the ProvB Listings mod. Just didn't want to force you all to have a dropdown. Might include an option for it if requested.
mabersoft
07-14-2009, 09:52 PM
I will try this out. Thanks a lot.
Review Coming Soon!
4nawadir.com
07-14-2009, 10:01 PM
Very Nice
Installed :)
will be back ...
saltedm8
07-14-2009, 10:23 PM
did not work.. I have the following already in my postbit... maybe something is clashing. *uninstalled*
Join Date: Apr 2009
Location: kent, UK
Posts: 3211
Blog Entries:9
Thanks: 3
Thanked 72 Times in 61 Posts
Expertise: (X)HTML / CSS
Experience: professional
Gio~Logist
07-14-2009, 11:04 PM
Try now (updated the zip). Also, are you missing $template_hook[postbit_userinfo_right] in your postbit template?
KevinL
07-15-2009, 01:05 AM
I like it. It's nice and clean like usual :)
Nice work!
saltedm8
07-15-2009, 02:43 PM
nope.. sorry, still not working, and yes, I do have $template_hook[postbit_userinfo_right]
saadessa
07-15-2009, 03:26 PM
did not work.. thank you
Gio~Logist
07-15-2009, 04:05 PM
If you weren't able to get it work, feel free to send me over a pm. Once you've confirmed that you aren't missing the template hook, it really comes down to possibly entering the wrong forumid or something along those lines, as it should by default effect all forums.
saltedm8
07-15-2009, 06:50 PM
I will send you a pm when I have a few minutes... I did not put in any forum id's at all cheers
Merjawy
08-19-2009, 09:31 PM
nothing showing at all
dancue
08-22-2009, 02:19 AM
Would be nice to have some stats included in the postbit also. x threads y forum
dancue
08-22-2009, 02:26 AM
I'm confused as to how this works exactly.
Let's say for example, I have the listings in only one forum. I want this link in their postbit to direct them to their listings for that forum no matter where that link is clicked. So if I'm in a different forum I can click on this link and it will show me all their listings from that forum
get it?
dancue
08-22-2009, 11:00 AM
It's not working for me now. I click on the link, no matter who's it is, and it will show me only one sticky, and one fight (if that).
RTMdotORG
08-22-2009, 03:49 PM
I will install this in a few...
FINALLY some more Mods by Gio...
You make some of the best modifications IMO.
reddyink
03-28-2011, 12:36 AM
surprisingly Works in Postbit but not in Postbit legacy for vb4.1
blind-eddie
02-17-2016, 10:49 AM
What would need added to either to only show on first post or show only if they have threads in that forum?
postbit_display_complete
$listmythreadforums = explode(',',$this->registry->options['mylistings_inpostbit_forums']);
if(in_array($forum['forumid'], $listmythreadforums) OR !($this->registry->options['mylistings_inpostbit_forums'])){
$mylistings_inpostbit_forums = construct_phrase($vbphrase['mylistings_inpostbit_forums'], $vbphrase[threads], $forum[title]);
$template_hook[postbit_userinfo_left] .= '<div align="left"><a href="' . $this->registry->options['bburl'] . "/forumdisplay.php?f=$forum[forumid]&userid=$post\">" . $mylistings_inpostbit_forums . '</a><div>';
}
[U]forumdisplay_query
$listmythreadforums = explode(',',$vbulletin->options['mylistings_inpostbit_forums']);
$foruminfo[listmythreads] = false;
if(in_array($foruminfo['forumid'], $listmythreadforums) OR !$vbulletin->options['mylistings_inpostbit_forums']){
// Get Category ID
$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_UINT
));
$get_requested_user = $vbulletin->GPC['userid'];
// Filter answers?
if($get_requested_user){
$hook_query_where .= " AND thread.postuserid = '$get_requested_user'";
}
$foruminfo[listmythreads] = true;
}
Gio~Logist
02-17-2016, 07:52 PM
In order to only show it if they have posts in that forum, you would need to query every user's post, which can be a bit intense.
blind-eddie
02-17-2016, 08:29 PM
How about on first post only?
Gio~Logist
02-17-2016, 10:26 PM
That can be done with a conditional such as <if condition="$thread['firstpostid'] == $post['postid']">
</if>
blind-eddie
02-17-2016, 11:01 PM
In the plugin?
Gio~Logist
02-17-2016, 11:14 PM
Ah, sorry.. It's been a while since i edited this mod.
In the postbit_display_complete plugin, change the following$template_hook[postbit_userinfo_right] .= '<div align="right"><a href="' . $this->registry->options['bburl'] . "/forumdisplay.php?f=$forum[forumid]&userid=$post[userid]\">" . $mylistings_inpostbit_forums . '</a><div>';
To
if($thread['firstpostid'] == $post['postid']){
$template_hook[postbit_userinfo_right] .= '<div align="right"><a href="' . $this->registry->options['bburl'] . "/forumdisplay.php?f=$forum[forumid]&userid=$post[userid]\">" . $mylistings_inpostbit_forums . '</a><div>';
}
blind-eddie
02-17-2016, 11:15 PM
I tried that conditional in the plugin yesterday, threw up errors
No other addon I have installed uses $template_hook[postbit_userinfo_left]. I added the conditional to that, works fine, Thank you
blind-eddie
02-17-2016, 11:20 PM
Opps, I was typing as you posted.
Gio~Logist
02-17-2016, 11:25 PM
Assuming its working now?
blind-eddie
02-17-2016, 11:28 PM
Yes, thank you. Not sure why I did not think to wrap a conditional around the hook. :confused:
Gio~Logist
02-17-2016, 11:35 PM
Heh, no worries. Happens to the best of us :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.