หัวข้อ: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: youcanberich ที่ 29 ตุลาคม 2007, 22:44:31
พอวางโค๊ตลงไปใน template มันจะขึ้นหน้าขาวกับข้อความ [an error occurred while processing this directive] ในหน้าที่มี adlogger อะครับ แต่ีหน้าไหนไม่ติดก็ปกติ ลองเอาโค๊ตมาให้ดูเลยครับ ไม่รู้ว่าผมต้องไปแก้ตรงไหนบ้าง งมมาเป็นเดือนและ ขอบคุณครับ :P <table cellpadding='0' cellspacing='8' width='100%'>
<?php
do_event("gamepage");
$maxwidth = $games_config['maxgamewidth']; $minwidth = $games_config['mingamewidth']; $maxnopopwidth = $games_config['maxnopopwidth'];
$game = get_game("id="._sp($params[1])."&maxwidth="._sp($maxwidth)."&minwidth="._sp($minwidth)); $cfg['pagetitle'] = $game['name']; $cfg['metakey'] = $game['keywords']; $cfg['metadesc'] = $game['desc'];
$game['time'] = date("M d, Y", $game['time']);
?>
<tr> <td width='100%' colspan='2' valign='top'> <div class='ocontentsection'> <div class='ocontenthead'>
<?php
echo "<a href='".get_category_link("name=".$game['cat'])."' class='topbarlink'>".$game['cat']."</a>"; echo " » "; echo $game['name']; ?> </div> <div class='contenttext'> <center>
<?php echo show_ad("id=4");
if ($game['type'] != 'extlink') { if ($game['width'] <= $maxnopopwidth) { echo $game['code']."<br /><br />"; do_event("gameplay"); } else { $link = get_play_link("id="._sp($params[1])); $width = $game['width']; $height = $game['height']; $link = "javascript:popup('".$link."', ".$width.", ".$height.")"; echo "<br /><b><a href=\"".$link."\" class='darklink'>- Click Here to Play ".$game['name']." in a New Window -</a></b><br /><br />"; } } else { if (get_game_config("name=frameextlinks")==1) { $target = ""; } else { $target = "target='_blank'"; }
echo "<br /><b><a href=\"".get_play_link("id="._sp($game['id']))."\" class='darklink' ".$target.">- Click Here to Play ".$game['name']." -</a></b><br /><br />"; }
?> <!-- Start AdLogger Wrapping Code --> <?php @include_once("/home/mydomain/public_html/adlogger/track/ad_check.php"); if ($show_ads) { ?>
<script type="text/javascript"><!-- google_ad_client = "pub-0000000000000000"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_cpa_choice = ""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "000000"; google_color_text = "000000"; google_color_url = "000000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<?php } ?> <!-- End AdLogger Wrapping Code --> <center>
</div>
</div> </div> </td> </tr>
<tr> <td width='100%' colspan='2' valign='top'> <div class='ocontentsection'> <div class='ocontenthead'>Game Information</div> <div class='contenttext'>
<?php
echo "<table width='97%' class='contenttable'><tr><td width='50%' valign='top' align='left'>"; echo "<b>Added on:</b> ".$game['time']."<br />\n"; echo "<b>Play Count:</b> ".$game['playcount']."<br />\n"; if ($game['type'] == 'SWF' || $game['type'] == 'DCR') { echo "<b>File Size:</b> ".hfilesize($game['filename'])."<br />\n"; }
if ($game['authorname'] != '') { if ($game['authorsite'] == '') { echo "<b>Author:</b> ".$game['authorname']."<br />\n"; } else { echo "<b>Author:</b> <a class='darklink' href='http://".$game['authorsite']."'>".$game['authorname']."</a><br />\n"; } } else if ($game['authorsite'] != '') { echo "<b>Author:</b> <a class='darklink' href='http://".$game['authorsite']."'>".$game['authorsite']."</a><br />\n"; }
if ($game['authorname']!='') { $authorlink = get_author_link("name=".$game['authorname']); echo "<a href='".$authorlink."'>View all games by this author...</a>"; echo "<br />"; }
echo "<br /><b>Description:</b><br />"; echo $game['desc'];
if ($game['instructions'] != '') { echo "<br /><br /><b>Instructions:</b><br />"; echo $game['instructions']; }
if ($game['rating']!=0) { $ratingimg = "[themedir]ratings/".round($game['rating']/2)."stars.gif"; echo "<br /><br /><b>Rating:</b><br /><img src='$ratingimg' />"; }
if (user_enabled()) { // favorites $user = get_logged_in_user();
if ($user!='false') {
echo "<br /><br />";
if (is_favorite($game['id'])) { echo "<a class='darklink' href='".get_removefavorite_link("id=".$game['id'])."'>Remove From My Favorites</a>\n"; } else { echo "<a class='darklink' href='".get_addfavorite_link("id=".$game['id'])."'>Add To My Favorites</a>\n"; }
}
}
//
if ((dispgamecode_enabled() && ($game['code']!='' || $game['disphtmlcode']!='')) || $game['disphtml'] == "Yes") { if ($game['disphtml'] != "No") {
$gcode = $game['code']."<br /><center><a href='".get_home_link()."'>[sitetitle]</a></center>";
if ($game['disphtmlcode']!='') { $gcode = $game['disphtmlcode']; }
echo "<br /><br /><b>Add this game to your blog, MySpace, LiveJournal, or website!</b><br />"; echo "<textarea rows='12' cols='36' style='font-size: 9px; font-family: Verdana;'>"; echo myhtmlentities($gcode); echo "</textarea>"; }
}
echo "</td><td width='50%' valign='top' align='left'>";
echo "<div style='padding-bottom: 4px;'><b>If you liked ".$game['name'].", you may also enjoy...</b></div>";
$q = "SELECT * FROM games WHERE cat='".$game['cat']."' AND id!='".$game['id']."' ORDER BY RAND() DESC LIMIT 0, ".$themecfg['similargamesnumber'].""; $games2 = get_games("shortdesc=".$themecfg['maxdesclength']."&htmlize=true&diffquery=".$q);
foreach ($games2 as $game2) {
dispgametd(true, $game2);
// $link = get_game_link("id="._sp($game2['id']));
// echo "<table class='gltable' cellpadding='0' cellspacing='0'><tr><td><a href='".$link."' class='gamelink'><img src='[imgdir]".$game2['nameid'].".png' alt='".$game2['name']."' width='[twidth]' height='[theight]' class='gamethumb' align='left' /></a> // <a href='".$link."' class='gamelink'>".$game2['name']."</a><br /> // ".$game2['desc']."</td></tr></table>"; }
echo "</td></tr></table>";
if (theme_is_admin()) { echo theme_admin_link("Manage Games", "darklink", "games", "manage"); echo " - "; echo theme_admin_link("Edit This Game", "darklink", "games", "editgame-form", "id=".$game['id']); }
?> </div> </div> </div> </td> </tr>
<?php
if (comments_enabled()) {
?>
<tr> <td width='100%' colspan='2' valign='top'> <div class='ocontentsection'> <div class='ocontenthead'>Comments & Ratings</div> <div class='contenttext'>
<?php $comments = get_comments("gid=".$game['id']);
if (count($comments)==0) { echo "No comments yet - you can be the first!<br /><br />"; }
foreach ($comments as $comment) {
$comment['time'] = date("M jS, Y @ H:i:s", $comment['date']);
if ( !( $user = get_user("id="._sp($comment['uid'])) ) ) { $username = 'Guest'; } else { if (user_enabled()) { $username = $user['username']; } else { $username = 'Guest'; } }
if ($username != 'Guest') { $usernametext = "<a href='".get_profile_link("id="._sp($user["id"]))."' class='darklink'>".$username."</a>"; } else { $usernametext = $username; }
if (!user_enabled() && $usernametext=='Guest') { echo "<b>Posted on "; echo $comment['time']."</b>"; } else { echo "<b>".$usernametext."</b>"; echo " - "; echo $comment['time']; }
if (theme_is_admin()) { echo " - "; echo theme_admin_link("Remove This Comment", "darklink", "comments", "delete-do", "id=".$comment['id'], true); }
if ($comment['comment']!='') { echo "<br />Comment: ".$comment['comment']; }
if ($comment['rating']!=0) { echo "<br />Rating: ".$comment['rating']."/10"; }
echo "<br /><br />";
}
echo "<div class='secline'>Add Your Own</div>"; do_event("comment_form");
?>
</div> </div> </div> </td> </tr>
<?php }
if (taf_enabled()) {
if (taf_login_required()==false || get_logged_in_user()!=false) { ?> <tr> <td width='100%' colspan='2' valign='top'> <div class='ocontentsection'> <div class='ocontenthead'>Tell A Friend About <?php echo $game['name']; ?></div> <div class='contenttext'>
<?php taf_form_display(get_game_link("id=".$game['id'])); ?>
</div> </div> </div> </td> </tr>
<?php } } ?>
</table>
หัวข้อ: Re: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: aomnaruk ที่ 29 ตุลาคม 2007, 22:54:39
ยังไม่หายอีกหรอท่านปัญหานี้อะ :P
ลองดู Error ใน cPanel ดูสิครับน่าจะช่วยท่านได้หรือไม่ก็ copy มาให้ดูจะได้ช่วยกันวิเคราะห์
(จากประสบการณ์ Error แบบนี้มักเกิดจากการ chmod เป็น 777ลอง chmod โฟล์เดอรของ Adlogger เป็น 755 ดูครับ)
หัวข้อ: Re: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: youcanberich ที่ 29 ตุลาคม 2007, 23:06:41
ยังไม่หายอีกหรอท่านปัญหานี้อะ :P
ลองดู Error ใน cPanel ดูสิครับน่าจะช่วยท่านได้หรือไม่ก็ copy มาให้ดูจะได้ช่วยกันวิเคราะห์
(จากประสบการณ์ Error แบบนี้มักเกิดจากการ chmod เป็น 777ลอง chmod โฟล์เดอรของ Adlogger เป็น 755 ดูครับ)
มีคนจำได้ด้วย :'( ลองไปดูมาแล้วครับ ของผมก็เป็น 755 ทุกโฟล์เดอร์เลยครับ ตอนนั้นก็มีคนเข้าร้อยกว่าคนแล้วแก้ไม่ได้เลยเอา ads ออกเลยครับ มาวันนี้คนเยอะขึ้นมาก เสียดายทราพฟิก สาธุอย่าเพิ่งมีใครใจดีแบบคราวที่แล้วนะ ขอให้แก้ได้ก่อน สาธุๆ :P เดี๋ยวลองเข้าไปดู ใน cpanel ก่อน
หัวข้อ: Re: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: payu ที่ 29 ตุลาคม 2007, 23:52:03
ไม่รู้ว่าจะช่วยได้รึป่าวนะครับ คือ error นี้เค้าว่าเป็นเพราะ apache server แปล SSI (server side include) ไม่ได้ คืออาจจะผิด ก็พวก <!--# code น่ะครับ แต่ใน case นี้ไม่มี ssi เลย ... แล้วก็ไปเจอว่ามีคน error นี้เหมือนกัน เค้าก็แก้โดยใส่ code นี้ลงไปแล้วหายครับ ไม่รู้ช่วยป่าว ..
หัวข้อ: Re: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: youcanberich ที่ 30 ตุลาคม 2007, 14:10:11
ู^ ^ ยังไม่ได้เลยครับ :'( ลองแล้วเหมือนเดิมเลย ผมใช้ hostmonster อะครับ ไม่รู้มีใครเป็นเหมือนผมป่าว สงสัยkeyword ราคาถูกจัดไม่มีใครเล่นเลย :P
หัวข้อ: Re: ปัญหา adlogger ติดตั้งใน gamesitescript แล้วไม่ได้แก้ไขยังไงดีครับ
เริ่มหัวข้อโดย: aomnaruk ที่ 30 ตุลาคม 2007, 17:30:29
ยังไม่หายอีกหรอท่านปัญหานี้อะ :P
ลองดู Error ใน cPanel ดูสิครับน่าจะช่วยท่านได้หรือไม่ก็ copy มาให้ดูจะได้ช่วยกันวิเคราะห์
(จากประสบการณ์ Error แบบนี้มักเกิดจากการ chmod เป็น 777ลอง chmod โฟล์เดอรของ Adlogger เป็น 755 ดูครับ)
มีคนจำได้ด้วย :'( ลองไปดูมาแล้วครับ ของผมก็เป็น 755 ทุกโฟล์เดอร์เลยครับ ตอนนั้นก็มีคนเข้าร้อยกว่าคนแล้วแก้ไม่ได้เลยเอา ads ออกเลยครับ มาวันนี้คนเยอะขึ้นมาก เสียดายทราพฟิก สาธุอย่าเพิ่งมีใครใจดีแบบคราวที่แล้วนะ ขอให้แก้ได้ก่อน สาธุๆ :P เดี๋ยวลองเข้าไปดู ใน cpanel ก่อน เอางี้ลอง chmod เป็น 644 แทนดู ครับ
|