View Single Post
  #222  
Old 11-22-2008, 12:28 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

In the marked.php file add in the following echo statements and then let me know what letters you see on screen:
Code:
	elseif ($do == "show")
	{
echo 'A ';
		require_once(DIR . '/includes/functions_misc.php');
		require_once(DIR . '/includes/class_postbit.php');
		$settings = unserialize($vbulletin->GARS_settings);
echo 'B ';
		//get installs forums
		if (is_array($settings['modules']['registered']))
		{
echo 'C ';
                $modid = '';
		    foreach($settings['modules']['registered'] as $key=>$value)
		    {
		        if ($value['file'] == 'marked.php')
		        {
		            $modid .= "," . intval($key);
		        }
		    }

		    if ($modid)
		    {
echo 'D ';
			//get modset
			$results = $db->query_read("SELECT setid FROM " . TABLE_PREFIX . "gars_module_set_details WHERE modid in(-1$modid)");
			$modsets = array();
			while ($result = $db->fetch_array($results))
			{
			    $modsets[] = $result['setid'];
			}
			if (count($modsets))
			{
echo 'E ';
			    //get types for modsets
			    $types=array();
			    if (is_array($settings['types']))
			    {
echo 'F ';
			        foreach($settings['types'] as $key=>$value)
			        {
			            if (in_array($value['mods'], $modsets))
			            {
			                $types[]=$key;
			            }
			        }
			        if (count($types))
			        {
echo 'G ';
			            //get forumids for types
			            if (is_array($settings['forums']))
			            {
echo 'H ';
			                $forums = array();
			                $forumids = '';
			                foreach($settings['forums'] as $key=>$value)
			                {
			                    if (in_array($value, $types))
			                    {
echo 'I ';
							$key = intval($key);
			                        $forums[] = $key;
			                        $forumids .= "," . $key;
			                    }
			                }
			            }
			        }
			    }
			}
	    }
	}

      if (!$forumids)
      {
         echo("marked module not assigned to a forum that I can see.");exit;
      }
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote