get($ws_key))) { $_SQL_GAME = "SELECT g.gameid, g.language, g.userid, g.title, g.description, g.words, g.playwords, g.wordscount, g.titleurl, g.difficultylevel, g.gametime, g.createdon, g.attempts FROM ws_games g WHERE g.ispublished=1 AND g.titleurl='".$_titleurl."'"; $gameRowSet = @mysql_query($_SQL_GAME); while($_game_result = @mysql_fetch_assoc($gameRowSet)){ $game_records[] = $_game_result; // Results storing in array } $memcache->set($ws_key, $game_records, MEMCACHE_COMPRESSED, $cache_time);//Set the value in memcache 1 day = 86400 seconds $check_cache .= "from DB ws_games
"; } else{ $check_cache .= "from Cache ws_games.
"; } if(is_array($game_records) && count($game_records)>0) { foreach($game_records as $game_details) { $gameid = $game_details['gameid']; $gameuserid = $game_details['userid']; $language = $game_details['language']; $title = (spacial_character_issue(strtolower($game_details['title']))); $description = ucfirst(stripslashes( $game_details['description'])); $description = str_replace('get($wstag_key))) { $querytopic= "SELECT * FROM wordsearch_tag WHERE gameid=".$gameid; $tagRowSet = @mysql_query($querytopic); while($_tag_result = @mysql_fetch_assoc($tagRowSet)){ $wstag_records[] = $_tag_result; // Results storing in array } $memcache->set($wstag_key, $wstag_records, MEMCACHE_COMPRESSED, $cache_time);//Set the value in memcache 1 day = 86400 seconds $check_cache .= "from DB wordsearch_tag
"; }else{ $check_cache .= "from Cache wordsearch_tag.
"; } if(is_array($wstag_records) && count($wstag_records)>0) { foreach($wstag_records as $tag_details) { $topics_tags = $tag_details['tags']; $topics_keywords = $tag_details['keywords']; $topics_entity = $tag_details['entity']; $topics_langauge = $tag_details['language']; $topics_entity_type = $tag_details['entity_type']; $topics_category = $tag_details['category']; $topic_subcategory = $tag_details['sub_category']; $topic_innercategory = $tag_details['inner_category']; $topics_concept_tags = $tag_details['concept_tags']; $entity_sub_type = $tag_details['entity_sub_type']; } } $topics_tags = str_replace('}{',',',$topics_tags); $topics_tags = str_replace('{','',$topics_tags); $topics_tags = str_replace('}','',$topics_tags); $topics_tags_admin = $topics_tags; if($topics_langauge == '') {$topics_langauge = 'English'; } // End For topic tags foreach($abbrevation_array as $key_abb=>$val_abb) { $chekkey = strtolower($title); if (strpos($chekkey,$val_abb) !== false) { $chekdst = '~\b'.$val_abb.'\b~'; if ( preg_match($chekdst,$chekkey) ) { $title = str_replace($val_abb,strtoupper($val_abb),$chekkey); $title = ucwords($title); } } } $topicword_breadcrumb_check = $output->array_search_partial($arr, $title); //$title = ucwords(strtolower($title)); if($topicword_breadcrumb_check!='No match found') { $title = $topicword_breadcrumb_check; } $og_title = $title; $og_descr = $description; $og_image = "http://www.proprofs.com/games/images/fb_share_ws_80x90.png?v=1"; $og_url = "http://www.proprofs.com/games/word-search/".$_titleurl; $is_embed = 'embed_sess_'.$gameid; // This variable is used to assign the width of the embed size $embed_W = ''; $_SESSION[$is_embed]=''; if(isset($_REQUEST['ew'])) { $_SESSION[$is_embed] = $_REQUEST['ew']; //337,437,537,637 } $embed_W = $_SESSION[$is_embed]; $filter_word = array("puzzles", "puzzle", "wordsearch", "word search"); $title = trim(str_ireplace($filter_word,"",$title)); $_pageTitle= trim($title).' - ProProfs Word Search Puzzle'; $_pageDescr = trim($title).' Word Search Puzzle Games - '.ucfirst(trim(str_replace(":)", "", $description))); $_pageKeywords = 'word search games, free word search puzzles, create online word search games, word search puzzles, word search puzzle games'; include($_SERVER['DOCUMENT_ROOT'].'/games/SSI/header_v1.php'); if($gameuserid ==1999530) { $title = $title;; }else{ $title = str_ireplace($filter_word,"",$title)." Word Search Puzzle"; } ?>

"; //including widget footer text file to get footer text for widget include($_SERVER['DOCUMENT_ROOT'].'/games/libs/widget-footer.php'); $_WIDGET_FOOTER_TEXT = getWidgetFooter('wordsearch', $title, $titleurl); $_EMBED_WIDGET_CODE .= $_WIDGET_FOOTER_TEXT; //include($_SERVER['DOCUMENT_ROOT'].'/games/SSI/socialshare_embed.php'); } ?>
Admin Panel +

Words In This Word Search


'; ?>
get($related_key))) //{ if(strlen($topics_tags_admin)>3){ $_SQL = "SELECT t.gameid, t.language, g.title, g.description, g.titleurl, g.difficultylevel, g.attempts FROM wordsearch_tag t, ws_games g WHERE g.gameid=t.gameid AND MATCH(t.tags) AGAINST('{".$topics_tags_admin."}') AND g.ispublished=1 AND g.attempts >=10 LIMIT 6"; }else{ $_SQL = "SELECT t.gameid, t.language, g.title, g.description, g.titleurl, g.difficultylevel, g.attempts FROM wordsearch_tag t, ws_games g WHERE g.gameid=t.gameid AND (t.tags LIKE '%{".$topics_tags_admin."}%') AND g.ispublished=1 AND g.attempts >=10 LIMIT 6 "; } $_relatedRowSet = @mysql_query($_SQL); while($_related_result = @mysql_fetch_assoc($_relatedRowSet)){ $related_records[] = $_related_result; // Results storing in array } //$memcache->set($related_key, $related_records, MEMCACHE_COMPRESSED, $cache_time);//Set the value in memcache 1 day = 86400 seconds // $check_cache .= "from DB related
"; //}else{ // $check_cache .= "from Cache related.
" ; //} $total_relatedgame = count($related_records); ?>
Related
0) { $count =1; foreach($related_records as $related_details) { $_titleurl = $related_details['titleurl']; $game_title = stripslashes($related_details['title']); //if($language == 'English'){ $game_title = ucwords(strtolower($game_title));} $game_title = ucwords(strtolower($game_title)); //get fixed number of characters from description $_TEMP_descr = wordwrap((stripslashes($related_details['description'])), 100); $_game_descr_arr = explode("\n", $_TEMP_descr); $_game_descr = $_game_descr_arr[0]; if(strlen($_TEMP_descr)>=100){ $_game_descr .= '…'; } if($count == 1 || $count == 2 || $count == 3 || $count == 4){ $_def_img = '/games/img/related_wordsearch_small_image.jpg'; } ?>
0) { $count =1; foreach($related_records as $related_details) { $_titleurl = $related_details['titleurl']; $game_title = stripslashes($related_details['title']); //if($language == 'English'){ $game_title = ucwords(strtolower($game_title));} $game_title = ucwords(strtolower($game_title)); //get fixed number of characters from description $_TEMP_descr = wordwrap(strip_tags(stripslashes($related_details['description'])), 100); $_game_descr_arr = explode("\n", $_TEMP_descr); $_game_descr = $_game_descr_arr[0]; if(strlen($_TEMP_descr)>=100){ $_game_descr .= '…'; } if($count == 5 || $count == 6){ $_def_img = '/games/img/related_wordsearch_large_image.jpg?v=2'; } ?>