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)

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?


All times are GMT. The time now is 09:39 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.01123 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete