vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   conditional user on buddy list? (https://vborg.vbsupport.ru/showthread.php?t=199057)

kpf1827 12-16-2008 10:10 PM

conditional user on buddy list?
 
Is there a conditional to find if another member is on your buddy list within the postbit_legacy template?

--------------- Added [DATE]1229554911[/DATE] at [TIME]1229554911[/TIME] ---------------

Someone has to know.

kpf1827 12-17-2008 10:38 PM

.........

Lynne 12-17-2008 10:49 PM

I don't know of any condition like the "is_member_of" type condition that does this. I think you have to do it in the php/plugin and then use the results from there to indicate a buddy. You might want to go look up some buddy sort of modification and see how they do it.

kpf1827 12-18-2008 12:06 AM

Here is where I got the idea from, in whosonlinebit template there is this line...

<if condition="$show['loggedinuser']">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>
<else />
<if condition="$show['spider']">$spidertype<else />$userinfo[musername]</if>

Which shows a + next to a person on your buddy list when viewing who's online, if I put this on postbit_legacy it does not function.

Lynne 12-18-2008 03:10 AM

Except $show[buddy] is defined in the php code right before that templatebit is spit out. I don't know that that code is present in the showthread template or in postbit function, so you'd have to add it which is why I suggested lloking it up in a modification.

kpf1827 12-20-2008 11:20 PM

I dont c a mod that has a feature like this, is there a way to call that function in postbit_legacy?

Lynne 12-20-2008 11:32 PM

There is a mod right here that deals with buddy's in the postbit - Buddy & Ignore List Add/Remove in Postbit He uses the global array which I hadn't thought of.


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