Forums

Replacing Wordpress Comment Box

Have technical questions about setting up a website, hosting or other issues, so you can promote your mlm opportunity? We've got answers for you here.

Moderator: admin

Replacing Wordpress Comment Box

Postby Santana Scarrett on Wed Oct 20, 2010 8:28 pm

I'm in the process of setting up a Wordpress blog and have installed the thesis theme. Looking for a way to replace the default comment box with the gigya comments plugin. Is there any way to do this?



Here's the generic code from their website:


<html>
<head>
<script src="http://cdn.gigya.com/JS/socialize.js?apiKey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N"
type="text/javascript"></script>
<script type="text/javascript">

var conf =
{
APIKey: '2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N'
}


</script>
</head>
<body>
<h3>Comments Plugin Demo</h3>
<div id="commentsDiv"></div>
<script type="text/javascript">

// Optional - define templates to changes structures in the Comments Plugin
var templates= {
//comment: 'Hello!<br>username: $username<br>Photo Div: $photoDiv<br>Date String:$dateString<br>Body:$body<br>' +
// 'Replies Count: $repliesCountPlaceholder<br>Reply Button:$replyButton',
//commentBox: 'Login Canvas: $loginCanvas<br>Close Icon:$closeIcon<br>Add Comment:$addComment',
//loginCanvas_loggedIn: '$photoDiv<br>$username<br>$logoutLink',
//loginCanvas_loggedIn_guest: 'guest! <br>$photoDiv<br>$username<br>$logoutLink',
//loginCanvas_loggedOut: 'out!<br>$photoDiv<br>$loginDropdown<br>$guestDropdown'
}

var params =
{
// Required parameters:
categoryID:7623701,
containerID: 'commentsDiv',

// Optional parameters:
templates: templates,
streamTitle: 'myTitle',
streamID: 'foo6'

}
// Load the Comments Plugin
gigya.services.socialize.showCommentsUI(conf,params);
</script>
</body>
</html>
User avatar
Santana Scarrett
Company: Amway
Contribution Level: 2
 
Posts: 2
Joined: Wed Sep 15, 2010 12:58 pm

Re: Replacing Wordpress Comment Box

Postby Ted Sheibar on Wed Oct 20, 2010 8:53 pm

Hi Santana,

You'd have to use the file manager from your hosting account and edit the comments.php file in the <your-site>/wp-content/themes/<your-theme> directory.

It's difficult to say exactly where you need to insert that snippet since every template is different, but play around a little until you find the sweet spot. Remember to backup the original files and save often.

Ted
TedSheibar.com
Helping You Generate & Save Money Both Off- And Online

http://www.tedsheibar.com

"Investing in yourself is the best investment of all."
User avatar
Ted Sheibar
Contribution Level: 2
 
Posts: 29
Joined: Mon Oct 11, 2010 10:22 pm

Re: Replacing Wordpress Comment Box

Postby Better Networker Support on Tue Dec 21, 2010 12:24 pm

UPDATE: Spam Account removed and blocked from this Forum topic.

For more information on Site rules and guidelines:
http://www.betternetworker.com/page/bet ... guidelines

For more information on Forum Rules and Guidelines:
announces/forum-rules-and-guidelines-t12549.html
Thanks,

Better Networker Support
http://www.betternetworker.com/help
User avatar
Better Networker Support
Contribution Level: 3
 
Posts: 268
Joined: Thu Oct 07, 2010 7:28 am


Return to Tech Advice

Who is online

Users browsing this forum: No registered users and 0 guests