Php Yorum Sisitemi Yardim Edin

Bu konuyu okuyanlar

Erdem5100

Öğrenci
Katılım
27 Mart 2020
Mesajlar
3
Reaksiyon puanı
0
Puanları
1
Yaş
25
Merhaba arkadaşlar. Elimde bir yorum yapma sistemi var çalışıyor kurulumunu falan yaptım. Şu sekilde www.examle.com/yorum.html olarak girince
Xq9KWV.jpg
bu şekilde çalışıyor. Ama ben bu sistemi alıp
Şuraya

9OWf9X.jpg

9OWf9X


yani bu yorum sisteminin yerine koymak istiyorum. Scriptin içindeki yorum sayfayı şu heralde.
<?php
$comments_method = ovoo_config('comments_method');
$facebook_comment_appid = ovoo_config('facebook_comment_appid');
$disqus_short_name = ovoo_config('disqus_short_name');
if(($comments_method =='both' || $comments_method =='facebook') && $facebook_comment_appid !='') :
?>
<!-- facebook comments -->
<div class="row">
<div class="col-md-12">
<h2 class="border"><?php echo trans('facebook_comments'); ?></h2>
<div class="fb-comments" data-href="<?php echo $PAGE_URL;?>.html" data-width="800" data-numposts="30"></div>
<div id="fb-root"></div>
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=<?php echo ovoo_config('facebook_comment_appid'); ?>";
fjs.parentNode.insertBefore(js, fjs);
}(********, 'script', 'facebook-jssdk'));
</script>
</div>
</div>
<!-- END facebook comments -->
<?php endif; ?>
<?php if($comments_method =='both' || $comments_method =='disqus'): ?>
<!-- disqus comments -->
<div class="row">
<div class="col-md-12">
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = "<?php echo $PAGE_URL;?>"; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = "<?php echo $PAGE_IDENTIFIER;?>"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};

(function() { // DON'T EDIT BELOW THIS LINE
var d = ********, s = d.createElement('script');
s.src = 'https://<?php echo $disqus_short_name; ?>.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="Disqus – The #1 way to build your audience">comments powered by Disqus.</a></noscript>
<script id="dsq-count-scr" src="//<?php echo $disqus_short_name; ?>.disqus.com/count.js" async></script>
</div>
</div>
<!-- END disqus comments -->
<?php endif; ?>

Benim istedigim yorum sistemide html ile yazılmış oda şu şekilde.
<!DOCTYYPE html>
<html>
<head>
<title>
Yorumlar
</title>
<script src="public/3b-comments.js"></script>
<link href="public/3c-comments.css" rel="stylesheet">
</head>
<body>


<!-- GIVE YOUR PAGE OR PRODUCT A POST ID -->
<input type="hidden" id="post_id" value="999"/>

<!-- CREATE A CONTAINER TO LOAD COMMENTS -->
<div id="comments"></div>

<!-- CREATE A CONTAINER TO LOAD REPLY DOCKET -->
<div id="reply-main"></div>
</body>
</html>
Insllah anlatabilmisimdir.
 

023

Profesör
Katılım
26 Mart 2020
Mesajlar
3,968
Çözümler
1
Reaksiyon puanı
4,593
Puanları
113
Yaş
16
Disqus'ın İçine Koyamazsın, Kendi Sistemini Oluşturman Lazım.
 

Son mesajlar

Üst