vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   if conditional inside php file, how? (https://vborg.vbsupport.ru/showthread.php?t=224367)

Chadi 10-02-2009 01:19 AM

Because the pink box is my "media menu" and the if conditionals is for the live chat link in that media box.

I do not want anyone to be able to enter live chat unless they have at least 5 forum posts.

There is no skin template for the arcade in the vb template area, only the php file.

Digital Jedi 10-02-2009 01:28 AM

There is one template for ibProArcade. It's the ARCADE template. It looks like this:

HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1=$vboptions[bbtitle]>$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar
<if condition="!$bbuserinfo[userid]">
$arcadeheader
<!-- small space -->
<span class="smallfont"><br />
</span></if>
$maincontent
</div>
$footer
</body>
</html>

It's the main and only template for all the arcade pages. You should be able to put your Media code anywhere in that template and block out anything form the arcade header to the main content while leaving the head and footer intact, or just doing the whole page. You should be able to do what your suggesting a lot more easily this way, and maybe even with a few more options.

Chadi 10-02-2009 01:37 AM

I have a better idea.

How can I tell that php arcade file to fetch this vbulletin template called vbtpldw_01 ?

vbtpldw_01 is a custom vbulletin template I use but have no idea how to tell the php file to fetch the content.

I already tried editing the ARCADE template in vb but for some very odd reason, it just does not work.

I used:

$header
$navbar
$vbtpldw_01

I simply added that third line, and hard refreshed the main arcade page. That vbtpldw template does not show up at all. However, I have that same line in various other template areas such as album, live chat, photo gallery templates and that custom template pulls fine on those other templates/pages.

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

Ok, I got it working the manual way: using the actual code itself from that vbtpldw template instead of fetching it using the $ method.

Any idea why it wouldn't fetch the template?


All times are GMT. The time now is 05:05 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.01151 seconds
  • Memory Usage 1,724KB
  • 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_html_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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete