I have been comparing the code between vBAdvanced homepage and VBA CMPS, and began to play with the index.php files for both. I took this bit of code from vbAdvanced homepage:
Code:
if ($vboptions['home_navbar'])
{
eval('$navbar = "' . fetch_template('navbar') . '";');
$navbar = str_replace(
array(
'"memberlist.php',
'"usercp.php',
'"register.php',
'"faq.php',
'"calendar.php',
'"search.php',
'"login.php',
'"forumdisplay.php',
'"profile.php',
'"private.php',
'"subscription.php',
'"member.php',
'"online.php',
'"clientscript',
'\'misc.php',
"$vboptions[bbtitle]</strong>"
),
array(
"\"$vboptions[bburl]/memberlist.php",
"\"$vboptions[bburl]/usercp.php",
"\"$vboptions[bburl]/register.php",
"\"$vboptions[bburl]/faq.php",
"\"$vboptions[bburl]/calendar.php",
"\"$vboptions[bburl]/search.php",
"\"$vboptions[bburl]/login.php",
"\"$vboptions[bburl]/forumdisplay.php",
"\"$vboptions[bburl]/profile.php",
"\"$vboptions[bburl]/private.php",
"\"$vboptions[bburl]/subscription.php",
"\"$vboptions[bburl]/member.php",
"\"$vboptions[bburl]/online.php",
"\"$vboptions[bburl]/clientscript",
"'$vboptions[bburl]/misc.php",
"$vboptions[hometitle]</strong>"
), $navbar);
}
and went to the CMPS index.php and inserted it directly below this:
Code:
require_once('./global.php');
Renamed the page as test.php and called it up in my browser. This "my links" hack started working on that page.
The ratio of php-to-mysql and page load time changed very little, if any.
I get no errors either. Is this an acceptable fix or have I introduced bad code into the CMPS page?