vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   memberaction_dropdown (https://vborg.vbsupport.ru/showthread.php?t=328844)

Irishnotsane 08-09-2021 06:59 AM

memberaction_dropdown
 
Code:

<li class="right">
                        <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" style="float:left;padding:2px 5px 0px 5px;"/>
{vb:raw post.field72}
 
        </li>

Why doesn't it post field72 here within memberaction_dropdown? It simply doesn't show, but when I use the same code in postbit or legacy, it displays what's written in the field.

z3r0 08-09-2021 07:54 AM

Try changing {vb:raw post.field72} to {vb:raw memberinfo.field72}

Irishnotsane 08-09-2021 08:04 AM

That worked perfectly, thanks z3ro!

Any ideas on how to add the

Code:

<vb:if condition="$post['field72']">
So it doesn't show unless they have anything in that field.. As currently that doesn't seem to work either?

Edit, nevermind managed to make it work using your logic lmao

Code:

<vb:if condition="($memberinfo['field72'])">
Thanks


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