g-a-m-e-r-x
New Member
I have the page -GaMeR X-
and was wondering if someone could help with the "Home" and "Forums" links
I would like a simple "If" code to determine if you are on index.php, or another page and display the correct link so if your at the home page it would shop the "Forums" link and if your on another page it would show "Home"
I have this:
without
also dosent work
This returns an error in vbulletin
Vbulletin throws this error on save:
vBulletin Message
The following error occurred when attempting to evaluate this template:
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.
Thanks!
- -GaMeR X-
and was wondering if someone could help with the "Home" and "Forums" links
I would like a simple "If" code to determine if you are on index.php, or another page and display the correct link so if your at the home page it would shop the "Forums" link and if your on another page it would show "Home"
I have this:
PHP:
<?php
$uri = $_SERVER['REQUEST_URL'];
if ($uri == "/") {
echo "You're on the homepage";
} else {
echo "You're on an internal page";
}
?>
PHP:
<?php ?>
This returns an error in vbulletin
PHP:
$uri = $_SERVER['REQUEST_URI'];
Vbulletin throws this error on save:
vBulletin Message
The following error occurred when attempting to evaluate this template:
Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/gamerxin/public_html/forum/includes/adminfunctions_template.php(3929) : eval()'d code on line 27
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.
Thanks!
- -GaMeR X-