Advertisement
Guest User

Untitled

a guest
Jan 5th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. 1. Open up /modules/portfolio/theme/current theme/main.php
  2. around line 130 just above:
  3. "<?php break;?>"
  4.  
  5. add:
  6.  
  7.   <!-- Comments Starts -->
  8.   <div id="disqus_thread"></div>
  9.   <script type="text/javascript">
  10.     var disqus_shortname = "YOUR_DISQUS_ID_GOES_HERE";
  11.     var disqus_identifier = "<?php echo $row->slug;?>";
  12.     var disqus_title = "<?php echo $row->{'title' . Lang::$lang};?>";
  13.     var disqus_url = "<?php echo Url::Portfolio("item", $row->slug);?>";
  14.     (function() {
  15.         var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  16.         dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  17.         (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  18.     })();
  19. </script>
  20.   <!-- Comments Ends -->
  21.  
  22.  
  23. In the above replace YOUR_DISQUS_ID_GOES_HERE with the actual disqus id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement