News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

$board returning different result on local test forum

Started by themavesite, March 03, 2017, 01:08:50 AM

Previous topic - Next topic

themavesite

I use $board to determine the header image, inside topics the code below works great, but in the board itself I get a strange result..

On my test forum in board with id 98 the code echo $board resulted in 98


On my online forum in the same board 98 the same code results in Array, how do I turn this Array into the same result as on the test forum?


Board url: http://forums.themavesite.com/index.php?board=98.0
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

themavesite

UPDATE: Okay this is weird: a var_dump of that array results in

array(4) { ["id"]=> string(3) "130" ["name"]=> string(10) "Game Deals" ["child_level"]=> string(1) "1" ["selected"]=> bool(false) }

But the board IS NOT "Game Deals", it's "GTA Series" with ID 98, not 130...
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Advertisement: