Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Sir Osis of Liver on June 20, 2022, 10:20:01 PM

Title: Problem with include
Post by: Sir Osis of Liver on June 20, 2022, 10:20:01 PM
Have a slideshow running in board description, works fine.  When I try to add a second slideshow below it, get an empty div.  Running it with an include(), also tried include_once(), two different filenames, same result. 


if ($board['id'] == 98) {
echo '
<br /><div id="scroller">';
include_once('BoardIndex.scroller.php');
echo '
<br /><div id="scroller2" style="border: 1px red solid;">';
include_once('BoardIndex.scroller2.php');
}


Only first one works, second is empty box, right size in right place.