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>
Forums
Replacing Wordpress Comment Box
Moderator: admin
3 posts • Page 1 of 1
Re: Replacing Wordpress Comment Box
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
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."
Helping You Generate & Save Money Both Off- And Online
http://www.tedsheibar.com
"Investing in yourself is the best investment of all."
-

Ted Sheibar
Contribution Level: 2 - Posts: 29
- Joined: Mon Oct 11, 2010 10:22 pm
Re: Replacing Wordpress Comment Box
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
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
-

Better Networker Support
Contribution Level: 3 - Posts: 268
- Joined: Thu Oct 07, 2010 7:28 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests


