sagedan000 Posted June 24, 2012 Report Share Posted June 24, 2012 Having problems putting touchdown stats on my Front Page.... http://www.virtualual.com Warning: Invalid argument supplied for foreach() in /home2/southwn1/public_html/lib/skins/ObsessBlue/frontpage_main.tpl on line 194 Line 194= foreach($stats as $stat) Please help me. Thank you!! Daniel Sage Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted June 24, 2012 Moderators Report Share Posted June 24, 2012 That line reads from the module and the module folder is case sensitive meaning the .php file inside the module folder has to be in exact same name as the folder. Quote Link to comment Share on other sites More sharing options...
sagedan000 Posted June 24, 2012 Author Report Share Posted June 24, 2012 So what should I do? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 25, 2012 Administrators Report Share Posted June 25, 2012 Looking here -> http://www.virtualual.com/index.php/touchdownstats it looks as though the module is working correctly. How are you including it on your front page? It almost looks like you have just added the html from the stats template into the front page template and are not filling the variable. If this is the method you are using you need to fill the variable in your controller (module) file using something like; $this->set->('stats', TouchdownStatsData::get_stats('10')); or just call the function from within the template using something like; <?php MainController::Run('TouchDownStats', 'top_landings', '10'); ?> There are number of other ways to use the module as well listed here -> http://forum.phpvms.net/topic/2989-touchdownstats-10/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.