View Single Post
Old 03-08-2006, 11:49 PM   #1
komodo
 
komodo's Avatar

Name: komodo
Title: Administrator
Status: Offline
Join Date: Apr 2005
Location: Athens, GA
Rate My Car: 68 / 340
Your Ride: 1995 M3
Angry Freaky-Weird PHP Problem

Hey, you guys see how the thread breadcrumb is all messed up?

I just made a small test script and something is seriously haunted.

If any of you know PHP, care to lend me a hand with this? (jms/ghost)

I can't explain it.

The variable $parentlist is an array {[0] => '17', [1] => '18'}.

Take this code:

[code]
echo $vbulletin->forumcache[18]['title'] . "<br>";
foreach ($parentlist AS $forumID)
{
echo $vbulletin->forumcache[18]['title'] . "<br>";
$forumTitle = $vbulletin->forumcache["$forumID"]['title'];
$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}[/code]
The output of this block is consistantly:

[code]United Lounge **MEMBERS ONLY**
United Lounge **MEMBERS ONLY**
General Topics[/code]

How the hell did element 18 of the forumcache array change through that loop, which just indexes the breadcrumb elements for the link list at the top?

Am I just an idiot, or is there something seriously wrong there?
__________________


Last edited by komodo; 03-08-2006 at 11:52 PM..
  Reply With Quote
Sponsored Links