THIS_SCRIPT is the actual variable name, so...
HTML Code:
<vb:if condition="THIS_SCRIPT != 'custom page'"> PHP Code:
|
I did that and now for some reason getting this. It looks like all tags are closed, but obviously I'm missing one, lol.
The following error occurred when attempting to evaluate this template: Unclosed Tag This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
I didn't look closely at the code, but you only want the tags around the specific code you are adding to your page and don't want doubled.
HTML Code:
<vb:if condition="THIS_SCRIPT != 'custom page'"> |
Quote:
I would appreciate any support that you are able to provide. Thank you, Code:
/* |
Quote:
For your list, create a custom class and use it to define the bullets |
Should the samples listed in the first post work for a custom page when people aren't logged in?
Based on what was in the first post I've created the following, which seems to only work if I'm logged in. I need to setup a custom public page for people to sign up for various events. ACME_CUSTOM_PAGE_TEMPLATE HTML Code:
{vb:stylevar htmldoctype} Code:
<?php Code:
<?php Code:
<div> https://vborg.vbsupport.ru/external/2016/05/22.png |
Based on the code you posted, I don't see anything out of the ordinary that should cause such thing to happen.
|
ARGH!!!
Nothing to see here, move along. I figured it out. My template is currently only applied to one style. When I'm not logged in and visit the page, the style where my template is not selected. When I select the style then click on my "Public" tab, then everything works. |
Quote:
|
OK I'm back again. Everything seems to work fine for me on my local machine, but I ran into 404 errors when trying my code on my live site.
On my live site vBulletin is loaded directly under httpdocs folder. I have placed all of my code under httpdocs/acme_custom. When I load the page all of the styling is off, and upon further investigation I have a bunch of 404 errors, and none of the standard vBulletin links like Forum or Contact Us work. If I place my custom php file (acme_vbPublic.php) in httpdocs then everything works. I performed a chgdir prior to the globl.php, so I'm not sure where I've gone wrong. Code:
chdir($_SERVER['DOCUMENT_ROOT']); https://vborg.vbsupport.ru/external/2016/06/9.png If I inspect the 404 errors, the request url is http://my-site.ca/acme_custom/client...event.js?v=423 I do not reference any of those resources that have 404 errors, I'm assuming that they are part of the global.php script. Any clues? I'd prefer to keep all of my code under the acme_custom directory. |
All times are GMT. The time now is 08:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|