Smiley face
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » Content management system » PHP Nuke - evolution Xtreme » Mod: DISQUS Comments in your website
 View previous topic :: View next topic  
Author Message
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: May 23, 2017
Age: 36
Posts: 1105
Location: Milan
Italy.png 
Reputation: 4485
votes: 6
Medals: 6 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Mon Sep 02, 2013 9:45 am
PostPost subject: No icon Mod: DISQUS Comments in your website
Reply with quote

To add the DISQUS comments in your Xtreme website follow this simple steps:

1. Make a backup of your website.

2. upload the files disqus.php and disqus_head.php into the includes folder.

3. edit both files replacing the XXXXX with your DISQUS shortname. To get the shortname register your website domain here: https://disqus.com/admin/signup/

4. Open header.php find:

PHP:
echo "</head>
"


before add:

PHP:
// Stard DISQUS Load
include_once(NUKE_INCLUDE_DIR.'disqus_head.php');
// End DISQUS 


Save and close.

5. Place the following code where you'd like Disqus to load:

PHP:
// Start DISQUS
OpenTable();
include(
NUKE_INCLUDE_DIR.'disqus.php');
CloseTable();     
// End DISQUS 



that's it.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Sponsor
ProClanServers.com
GossipMoms
Poster Member
Poster Member



Joined: Mar 22, 2014
Last Visit: Mar 25, 2014
Posts: 1


Reputation: 1
Medals: None

Status: Offline
PostPosted: Mon Mar 24, 2014 12:16 am
PostPost subject: No icon Re: Mod: DISQUS Comments in your website
Reply with quote

I would like to have it in my article, news & downloads section but not sure what file to open to place the code in, I know you say place the code where i want it load just dont know what file to open to place the code in. can someone please point me in the right direction
Back to top
View user's profile Send private message
Teo
Owner
Owner
Administrator
Administrator


In Game: Teo

Joined: Sep 21, 2009
Last Visit: May 23, 2017
Age: 36
Posts: 1105
Location: Milan
Italy.png 
Reputation: 4485
votes: 6
Medals: 6 (View more...)
Website Founder (Amount: 1)

Status: Offline
PostPosted: Mon Mar 24, 2014 9:44 am
PostPost subject: No icon Re: Mod: DISQUS Comments in your website
Reply with quote

GossipMoms wrote (View Post):
I would like to have it in my article, news & downloads section but not sure what file to open to place the code in, I know you say place the code where i want it load just dont know what file to open to place the code in. can someone please point me in the right direction


Hello!

news article you need to add it here: /modules/News/article.php

find:

PHP:
    @include_once("modules/$module_name/comments.php");


after add:

PHP:
// Start DISQUS
OpenTable();
include(
NUKE_INCLUDE_DIR.'disqus.php');
CloseTable();     
// End DISQUS 



for Downloads i can't know your skill in php nuke, anw you have to add the code here: /modules/Downloads/public/getit.php

for exemple i'm using the Corpse downloads so i had to move over the OpenTable(); table adding the code under the html table this way:

Code:
         // Start DISQUS
         echo "<tr>
";
         echo "<td>
";
         include(NUKE_INCLUDE_DIR.'disqus.php');
         echo "</td>
";
         echo "</tr>
";
         // End DISQUS   


i can suggest you to try find this:

PHP:
include_once(NUKE_BASE_DIR.'footer.php'); 


and before add:

PHP:
// Start DISQUS
OpenTable();
include(
NUKE_INCLUDE_DIR.'disqus.php');
CloseTable();     
// End DISQUS 


let me know if you have any problem, i can look into your files making it work for you!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Visit member's Facebook: http://www.facebook.com/ricordalo
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index » Content management system »  PHP Nuke - evolution Xtreme
 
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts SOF2MAPPING Tutorial.2 - Make a room 0 Punisher 953 Tue Oct 06, 2015 3:16 pm
Punisher View latest post
No new posts How to make you own mod? 4 Crankedup 2875 Fri Oct 02, 2015 6:38 pm
Teo View latest post
No new posts To make it more clear to everyone READ PLZ 3 Teo 2711 Thu Nov 28, 2013 8:41 pm
Teo View latest post
No new posts want to make a post :) 6 conviction 3428 Thu Nov 15, 2012 10:08 pm
Lessoe View latest post
No new posts Teo which programs u use for make themes? 1 MacTavishXx 2725 Wed May 02, 2012 5:23 pm
Teo View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©