Posted on: 01/13/05 02:57pm
By: Anonymous (Ron)
Fatal error: Call to undefined function: com_siteheader() in /home2/revenue/public_html/forum/includes/page_header.php on line 418
$PageName = substr($_SERVER[PATH_INFO], strlen($_SERVER[PATH_INFO]) - 13); //Set the default ad info. $shared_ad_client_id = $board_config['ad_client_id']; $shared_ad_channel = $board_config['ad_channel']; //If the page is "viewtopic.php" AND if the ad is enabled, or if the 50% random // counter is true, proceed with checking if the user has enough posts. if ($PageName == "viewtopic.php" && $board_config['ad_enabled'] == "1" && rand(0, 1) == 1) { global $FirstPoster; if (!isset($FirstPoster)) { $FirstPoster = 0; } $sql = "SELECT * ". "FROM phpbb_users ". "WHERE user_id = $FirstPoster"; if ( !($result = $db->sql_query($sql)) ) { echo($sql); } $user_row = $db->sql_fetchrow($result); if ($user_row['user_posts'] > $board_config['ad_min_posts']) { $user_id = intval($HTTP_POST_VARS['id']); //Get the previous settings if they exist. $sql = "SELECT * ". "FROM phpbb_ad_user ". "WHERE user_id = $user_id"; if (!($shared_result = $db->sql_query($sql))) { echo($sql); } $shared_ad_row = $db->sql_fetchrow($shared_result); $shared_ad_client_id = $shared_ad_row['ad_client_id']; $shared_ad_channel = $shared_ad_row['ad_channel']; } } if (strlen(trim($shared_ad_client_id)) < 15) { $shared_ad_client_id = $board_config['ad_client_id']; } $adsense = "<script type="text/javascript"><!--n". "google_ad_client = "" . $shared_ad_client_id . "";n". "google_ad_width = 468;n". "google_ad_height = 60;n". "google_ad_format = "468x60_as";n". "google_ad_channel ="" . $shared_ad_channel . "";n". "google_ad_type = "text_image";n". "//--></script>n". "<script type="text/javascript"n". " src="http://pagead2.googlesyndication.com/pagead/show_ads.js">n". "</script>";
// Added by Turias global $_PHPBBB_CONF; $geeklog_site_header = ''; if ($_PHPBBB_CONF['show_left_blocks']) { $geeklog_site_header = COM_siteHeader(); } else { $geeklog_site_header = COM_siteHeader('none'); }
Posted on: 01/13/05 03:15pm
By: Turias
Posted on: 01/13/05 11:53pm
By: Anonymous (How could I do this?)
# #-----[ FIND ]------------------------------------------ # while( list($nav_item, $nav_array) = @each($nav_links) ) { if ( !empty($nav_array['url']) ) { $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']); } else { // We have a nested array, used for items like <link rel='chapter'> that can occur more than once. while( list(,$nested_array) = each($nav_array) ) { $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']); } } } # #-----[ AFTER, ADD ]------------------------------------------ # $PageName = substr($_SERVER[PATH_INFO], strlen($_SERVER[PATH_INFO]) - 13); //Set the default ad info. $shared_ad_client_id = $board_config['ad_client_id']; $shared_ad_channel = $board_config['ad_channel']; //If the page is "viewtopic.php" AND if the ad is enabled, or if the 50% random // counter is true, proceed with checking if the user has enough posts. if ($PageName == "viewtopic.php" && $board_config['ad_enabled'] == "1" && rand(0, 1) == 1) { global $FirstPoster; if (!isset($FirstPoster)) { $FirstPoster = 0; } $sql = "SELECT * ". "FROM phpbb_users ". "WHERE user_id = $FirstPoster"; if ( !($result = $db->sql_query($sql)) ) { echo($sql); } $user_row = $db->sql_fetchrow($result); if ($user_row['user_posts'] > $board_config['ad_min_posts']) { $user_id = intval($HTTP_POST_VARS['id']); //Get the previous settings if they exist. $sql = "SELECT * ". "FROM phpbb_ad_user ". "WHERE user_id = $user_id"; if (!($shared_result = $db->sql_query($sql))) { echo($sql); } $shared_ad_row = $db->sql_fetchrow($shared_result); $shared_ad_client_id = $shared_ad_row['ad_client_id']; $shared_ad_channel = $shared_ad_row['ad_channel']; } } if (strlen(trim($shared_ad_client_id)) < 15) { $shared_ad_client_id = $board_config['ad_client_id']; } $adsense = "<script type="text/javascript"><!--n". "google_ad_client = "" . $shared_ad_client_id . "";n". "google_ad_width = 468;n". "google_ad_height = 60;n". "google_ad_format = "468x60_as";n". "google_ad_channel ="" . $shared_ad_channel . "";n". "google_ad_type = "text_image";n". "//--></script>n". "<script type="text/javascript"n". " src="http://pagead2.googlesyndication.com/pagead/show_ads.js">n". "</script>"; # #-----[ FIND ]------------------------------------------ # // The following assigns all _common_ variables that may be used at any point // in a template. // $template->assign_vars(array( # #-----[ AFTER, ADD ]------------------------------------------ # 'ADSENSE' => $adsense, # #-----[ FIND ]------------------------------------------ # 'U_INDEX' => append_sid('index.'.$phpEx), # #-----[ REPLACE WITH ]------------------------------------------ # 'U_INDEX' => append_sid('../index.'.$phpEx), #
Posted on: 01/14/05 09:38am
By: Turias
Posted on: 01/14/05 12:15pm
By: Anonymous (Cool)