vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problems: <if condition="$show['field']"> (https://vborg.vbsupport.ru/showthread.php?t=112041)

evenmonkeys 04-03-2006 02:38 AM

Problems: <if condition="$show['field']">
 
Is it possible to use conditions like this on pages without plugins or php files? Like you can globally call for fields and stuff with $bbuserinfo[username] and whatnot... but how can you make similar commands for the $show thinger?

evenmonkeys 04-04-2006 03:15 AM

Bumpizzle.

Freesteyelz 04-04-2006 03:58 AM

Can you give an example of what you're thinking?

evenmonkeys 04-05-2006 06:19 AM

This is an example from the memberinfo page that I'm trying to use.
Code:

                        <if condition="$show['profilepic']">
                        <td valign="top" align="$stylevar[right]" rowspan="2">
                                <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
                        </td>
                        </if>

Let's just pretend I wanted to make it work on a random template. How would I do that?

Brad 04-05-2006 06:25 AM

If it is not defined in the vBulletin .php files by default you'll have to use a plug-in or hack the files.

If you are checking something that is already defined as a global (like $vbulletin->userinfo) then just use it in the template instead and avoid an un-needed plug-in or file edit.

Freesteyelz 04-05-2006 06:49 AM

As Brad mentioned I don't see why the condition you have in your title wouldn't work across vB's templates.

evenmonkeys 04-05-2006 06:52 AM

Well, let's just say I put that in the calendar template. With the $show stuff, it's not showing. When I remove the condition, it shows. O_o Maybe it hates me? I might have found a new route though. =P

Freesteyelz 04-05-2006 07:26 AM

Ahh. Keep us updated on your progress. :)


All times are GMT. The time now is 03:08 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.01200 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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