vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - My Listings (link in postbit) (https://vborg.vbsupport.ru/showthread.php?t=218592)

Gio~Logist 07-13-2009 10:00 PM

My Listings (link in postbit)
 
1 Attachment(s)
Brought To You By
ModernvB - Vbulletin Solutions & Services
http://www.modernvb.com

Inspired by.. ModernvB Listings

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.

DemoInstallation
  • Step 1: Install the product
  • Step 2: Configure options & Enjoy! Options (vBulletin Options -> My Listings (Link in Postbit)

Useful Links
ProvB Listings

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*

Quote:

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.

Rvl 09-13-2009 09:58 AM

ProVB :down:

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

Code:

$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[userid]\">" . $mylistings_inpostbit_forums . '</a><div>';

}

forumdisplay_query

Code:

$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
Code:

<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
Code:

$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
Code:

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:


All times are GMT. The time now is 11:59 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.01438 seconds
  • Memory Usage 1,769KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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