vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Show icons for specific usergroup (threadstarter) in threadbit? (https://vborg.vbsupport.ru/showthread.php?t=324039)

kpmedia 12-18-2016 07:14 AM

True, that is a bigger difference, if you're not used to seeing both forums.

Well, I'd like to start with the vB3, and mirror it to the vB4, since it makes the development easier for me.

I can even switch the default theme for vB3, if it makes a difference. (Note: Already tried, same behavior.)

..

MarkFL 12-18-2016 07:33 AM

1 Attachment(s)
On my local dev site (vB 4.2.x) when I edit the threadbit template, in the status icon block section to read:

HTML Code:

                        <!--  status icon block -->
                        <vb:if condition="is_member_of($thread, array(6))">
                        <a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
                        </vb:if>

Then in the forum display, I see the following:

https://vborg.vbsupport.ru/attachmen...1&d=1482053522

The user "Randall Flagg is not a member of usergroup 6, while "MarkFL" is.

kpmedia 12-18-2016 08:06 AM

I'm just not getting that result on 3 or 4.

And the vB3 conditional should be:
Code:

<if condition="is_member_of($thread, array(6))">
Correct?

..

MarkFL 12-18-2016 08:17 AM

Quote:

Originally Posted by kpmedia (Post 2579586)
I'm just not getting that result on 3 or 4.

And the vB3 conditional should be:
Code:

<if condition="is_member_of($thread, array(6))">
Correct?

Yes, I haven't worked much with vB 3.x, but I believe that's correct. :)

kpmedia 03-28-2017 08:25 AM

For whatever reason, this just does not work on vB3.

How would I go about creating a plugin to grab the post starter usergroup?
I'm really rusty, but something like:
Code:

if ($vbulletin->userinfo['userid']
 AND $vbulletin-> stuff
 AND $something == 'thread')
{
 this is the icon? 
}



All times are GMT. The time now is 03:08 AM.

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.01745 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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