Register Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 15th Jul 2009, 12:27 PM   #1
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

I am trying to do this:

http://www.warriorforum.com/main-int...ment-form.html

But I need simple STEP-BY-STEP instructions on how to do this through HOST4PROFIT.

I have no idea how to unzip a file and send it to my directory. I have never done this before so I do need a lot of help.

I would appreciate it.

Tal

talfighel is offline   Reply With Quote
Unread 15th Jul 2009, 12:35 PM   #2
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 2,776
Thanks: 6,161
Thanked 2,625 Times in 1,763 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

It's real simple as far as to unzip the zipped file on your hard drive

(assume you have at least the free evaluation version of WinZip - if not go to winzip.com and get it.)

Then you merely double-click the zip file and the unzip will happen. Be sure to unzip it to your desktop so you can find it.

Then log in to Host4Profit and go to the file manager.

Go down to the bottom to the boxes that say upload file

Browse your hard drive to get the file and then upload it. Name it with an .html extension.

I can't believe you don't know this as you are an 'old hand', Tal - so I suspect maybe I am missing the point of your question with the comment form which I have never done.

Pat

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote
Unread 15th Jul 2009, 12:44 PM   #3
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

I have never done this thing before so I have no clue how to do it. Just like 4 years, I had no clue how to make a full time income online, I had to learn it.

This is new to me and after what you wrote Pat, I still can not figure it out and how to do this. Maybe I will just let it go.

Tal

talfighel is offline   Reply With Quote
Unread 15th Jul 2009, 12:46 PM   #4
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

So I did what you said Pat. I now have 3 php files. Now what?

Tal

talfighel is offline   Reply With Quote
Unread 15th Jul 2009, 12:54 PM   #5
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

So I added the code that says:

10 Easy Ways To Earn More Money Online

But the code is showing JS-Kit Comments widget

Is there anyway I can get rid of that?

Tal

talfighel is offline   Reply With Quote
Unread 15th Jul 2009, 01:03 PM   #6
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

Ok, so I have saved the zip file and had to get 3 files for this.

One file is called 1comments.php and contains this inside:


<?php
$the_permalink = $post->guid;
ereg('^(\s*([a-z]{1,6}):\/\/)?(www\.)?(([a-z0-9-]{1,63}\.)+[a-z]{2,10})(:[0-9]{1,5})?(\/[~a-z0-9_ \.-\?\/]+)',$the_permalink,$regs);
$tmp_path = $regs[7];
$path = ereg_replace('\?','',$tmp_path);
?>
<script type="text/javascript" id="js-kit-wordpressPluginTemplate" src="http://js-kit.com/tmpl/wp.cgi?path=<?php echo urlencode($path) ?>&permalink=<?php echo urlencode(get_permalink())?>"></script>



2nd file that I have is called 1js-kit.php and contains this html in it:


<?php
/*
Plugin Name: JS-Kit Comment System
Plugin URI: JS-Kit: Comments, ratings, polls and surveys, Navigator, chat and more...
Description: JS-Kit Comments is a fully-featured commenting system with powerful pre- and post- moderation capabilities, automatic spam blocking, RSS feeds, threading, pagination and sorting of comments, and much more. This plugin enables seamless integration with JS-Kit Comments by exporting existing WordPress comments into JS-Kit and instantly synchronizing new comments.
Author: js-kit.com <support@js-kit.com>
Version: 2.0.6
Author URI: JS-Kit: Comments, ratings, polls and surveys, Navigator, chat and more...
*/

global $error;
include(ABSPATH . 'wp-config.php');
include_once( ABSPATH . WPINC . '/class-IXR.php');

function escape(&$array) {
global $wpdb;

if(!is_array($array)) {
return($wpdb->escape($array));
}
else {
foreach ( (array) $array as $k => $v ) {
if (is_array($v)) {
$this->escape($array[$k]);
} else if (is_object($v)) {
//skip
} else {
$array[$k] = $wpdb->escape($v);
}
}
}
}

function jskit_add_page() {
global $menu,$submenu;
add_submenu_page('edit-comments.php', 'JS-Kit', 'JS-Kit', 10, 'js-kit.php', jskit_manage);
if ($submenu['options-general.php'])
foreach ($submenu['options-general.php'] as $key => $elem){
if ($elem[1] =="manage_options" && $elem[2] == "options-discussion.php")
unset($submenu['edit-comments.php'][$key]);
}
if ($submenu['edit-comments.php'])
foreach ($submenu['edit-comments.php'] as $key => $elem){
if ($elem[1] =="edit_posts" && ($elem[2] == "edit-comments.php" ||
$elem[2] == "moderation.php")){
unset($submenu['edit-comments.php'][$key]);
}
}
add_submenu_page('options-general.php', __('Discussion'), __('Discussion'), 8, get_option('siteurl')."/wp-content/plugins/js-kit/option_menu.php");
}

function jskit_manage() {
$user = wp_get_current_user();
?>
<form method="POST" rel="nofollow" target="ifr" action="http://js-kit.com/import.cgi">
<div class="wrap">
<h2>JS-Kit Comments</h2>
<input name="server" type="hidden" value="<?php echo get_option('siteurl')?>"/>
<input name="service" type="hidden" value="wordpress"/>
<input name="target" type="hidden" value="plugin"/>
<div id="js-kitIntegrateForm" style="padding-left: 20px">
<table cellspacing="5">
<tr><td colspan="2">
<h3>Thank you for using JS-Kit Comments</h3>
<p>
The form below provides possibility to initiate import of
comments data from your blog to JS-Kit system.
</p>
<p>
<em>Please specify credentials of a Wordpress user which has administrative rights on this blog</em>.
</p>
</td></tr>
<tr>
<td width="80">Login:</td>
<td><input type="text" name="login" value="<?php echo $user->user_login; ?>"/></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password"/></td>
</tr>
<tr>
<td>Blog URL:</td>
<td><?php echo get_option('siteurl')?></td>
</tr>
<tr>
<td></td><td><input type="submit" value="Integrate" /></td>
</tr>
</table>
</div>
</div>
<iframe name="ifr" width="0" height="0" style="border: none;"></iframe>
</form>
<?php
}

function jskit_comments_template($value) {
return dirname(__FILE__) . '/comments.php';
}

function attach_xmlrpc_comment_methods($methods) {
$methods['wp.getComment'] = 'wp_getComment';
$methods['wp.getComments'] = 'wp_getComments';
$methods['wp.newComment'] = 'wp_newComment';
$methods['wp.setAuthKey'] = 'wp_setAuthKey';
$methods['wp.setStatus'] = 'wp_setStatus';
return $methods;
}

function login_pass_ok($user_login, $user_pass) {

if (!user_pass_ok($user_login, $user_pass)) {
$error = new IXR_Error(403, __('Bad login/pass combination.'));
return false;
}
return true;
}

function try_login($args){
$user_login = $args[1];
$user_pass = $args[2];

if (!strcmp($user_login, "authKey") && strcmp(get_option("jskit-authKey"), "")) {
if (!strcmp($user_pass, get_option("jskit-authKey"))) return 1;
}
if (!login_pass_ok($user_login, $user_pass)) {
return 0;
}
return 1;
}

function wp_setStatus($args){
if (!try_login($args)) return $error;
$comment_id = $args[0];
$status = $args[3];
switch ($status) {
case 'A':
$rez = wp_set_comment_status($comment_id, 'approve');
break;
case 'S':
$rez = wp_set_comment_status($commnet_id, 'spam');
break;
case 'D':
if (get_comment($comment_id)) $rez = wp_delete_comment($comment_id);
else return 1;
break;
}
return ($rez) ? 1 : -1 ;
}

function err($a){
$STDERR = fopen('php://stderr', 'w+');
fwrite($STDERR, $a."\n");
}

function dis($arg){
echo "<pre>";echo print_r($arg); echo "</pre>";
}

function wp_newComment($args) {
if (!try_login($args)) return $error;
$comment = $args[0];
ereg('(.+)(p=)([0-9]+)',$comment['path'],$regs);
$comment_post_ID = $regs[3];
$comment_author = $comment['author'];
$comment_author_email = $comment['email'];
$comment_content = $comment['text'];
$comment_author_IP = $comment['IP'];
$comment_date_gtm = date('Y-m-d H:i:s',(int) $comment['TS']);
$comment_date = date('Y-m-d H:i:s', (int) $comment['TS']);
$commentdata = compact( 'comment_post_ID', 'comment_author',
'comment_author_email', 'comment_content',
'comment_author_IP', 'comment_date_gtm', 'comment_date');
foreach ($commentdata as $key => $elem){
$commentdata[$key] = conv2native_enc($elem, 'UTF-8', get_option('blog_charset'));
};
$commentdata['comment_agent'] = $_SERVER['HTTP_USER_AGENT'];
$commentdata = wp_filter_comment($commentdata);
$all_in_post = get_approved_comments($comment_post_ID);
foreach($all_in_post as $value)
if (!strcmp($comment_author, $value->comment_author) &&
!strcmp($comment_content, $value->comment_content)
)
return $value->comment_ID;

$comment_id = wp_insert_comment($commentdata);
$sParam = $args;
$sParam[0] = $comment_id;
$sParam[3] = $comment['status'];
$rez = wp_setStatus($sParam);
return $rez ? $comment_id : -1;

}

function wp_setAuthKey($args) {
if (!try_login($args)) return $error;
update_option('jskit-authKey',$args[0]);
return 1;
}

function wp_getComment($args) {

if (!try_login($args)) return $error;
$comment_ID = (int) $args[0];

$Comment = get_comment($comment_ID);
if (!$Comment) return 0;
$post = get_post($Comment->comment_post_ID);

$Result['comment_author_email'] = $Comment->comment_author_email;
$Result['comment_author_IP'] = $Comment->comment_author_IP;
$Result['comment_id'] = $comment_ID;
$Result['comment_date'] = new IXR_Date(mysql2date("Ymd\TH:i:s", $Comment->comment_date));
$Result['comment_content'] = $Comment->comment_content;
$Result['guid'] = $post->guid;
$Result['comment_author'] = $Comment->comment_author;

return $Result;
}

function conv2native_enc($str, $from, $to){

if ((!strcmp($to ,"UTF-8") && seems_utf8($str) == false) || !strcmp($from ,"UTF-8")){
if (function_exists("mb_convert_encoding")) {
return (mb_convert_encoding($str, $to, $from));
} elseif (function_exists("iconv")) {
return iconv($from, $to, $str);
} else {
return utf8_encode($str);
}
}
return $str;
}

function wp_getComments($args) {
global $wpdb;
escape($args);
if (!try_login($args)) return $error;
$Comments= $wpdb->get_results("SELECT a.comment_id, a.comment_content, a.comment_approved, a.comment_author, a.comment_author_email, a.comment_date, a.comment_author_IP, b.guid FROM $wpdb->comments a, $wpdb->posts b WHERE a.comment_post_id = b.id");
foreach ($Comments as $key => $elem){
$Comments[$key]->comment_date = new IXR_Date(mysql2date("Ymd\TH:i:s", $elem->comment_date));
}
foreach ($Comments as $exkey => $elem){
foreach ($Comments[$exkey] as $key => $s) {
$Cmt[$key] = $s;
if (!strcmp(gettype($s), "string")) $Cmt[$key] = conv2native_enc($s, get_option('blog_charset'), "UTF-8");
}
$Cmts[$exkey] = $Cmt;
}
return $Cmts;
}

function getPermalink() {
ob_start();
the_permalink();
$the_permalink = ob_get_contents();
ob_end_clean();
return $the_permalink;
}

function jskit_comments_number() {
global $post;
$the_permalink = $post->guid;
ereg('^(\s*([a-z]{1,6}):\/\/)?(www\.)?(([a-z0-9-]{1,63}\.)+[a-z]{2,10})(:[0-9]{1,5})?(\/[~a-z0-9_ \.-\?\/]+)',$the_permalink,$regs);
$tmp_path = $regs[7];
$path = ereg_replace('\?','',$tmp_path);
$number = "<span id=\"jskit-commtentCountSpan\" class=\"js-kit-comments-count\" path=\"".$path."\">0</span> Comments";
return $number;
}

function deactivate(){
delete_option('jskit-authKey');
return 0;
}

function jskit_getPath(){
global $post;
$the_permalink = $post->guid;
ereg('^(\s*([a-z]{1,6}):\/\/)?(www\.)?(([a-z0-9-]{1,63}\.)+[a-z]{2,10})(:[0-9]{1,5})?(\/[~a-z0-9_ \.-\?\/]+)',$the_permalink,$regs);
$tmp_path = $regs[7];
$host = $regs[4];
$path = ereg_replace('\?','',$tmp_path);
return $host.$path;
}

function jskit_trackback_link(){
$path = jskit_getPath();
return "http://js-kit.com/trackback/".$path;
}

function jskit_rss_link(){
$path = jskit_getPath();
return "http://js-kit.com/rss/".$path;
}

function jskit_header(){
?>
<script type="text/javascript">
if(!window.JSKitLib) JSKitLib = {vars:{ } };
JSKitLib.addLoadEvent = function(newLoadEvent) {
var origLoadEvent = window.onload;
if (typeof origLoadEvent == "function") {
window.onload = function() {
origLoadEvent();
newLoadEvent();
}
} else {
window.onload = newLoadEvent;
}
}

var elemArr = ["awaiting-mod", "dashboard_recent_comments"];
JSKitLib.addLoadEvent(function() {
for (var i in elemArr){
var elem = document.getElementById(elemArr[i]);
if (elem) elem.style.display = "none";
}
});
</script>
<?php
}

function jskit_footer(){
?>
<script type="text/javascript">
JSKitLib.addLoadEvent(function(){
var span = document.getElementById("jskit-commtentCountSpan");
if (span){
var sc = document.createElement("script");
sc.type ="text/javascript";
sc.src = "http://js-kit.com/comments-count.js";
document.body.appendChild(sc);
}

var jskitFooter = document.getElementById("footer");
if(jskitFooter) {
var as = jskitFooter.getElementsByTagName('a');
for (var i in as){
if (as[i].href && as[i].href.match("feed=comments-rss2")) as[i].innerHTML = "";
}
}
});
</script>
<?php
}

function jskit_all(){
jskit_header();
jskit_footer();
}

function comment_flood_filter(){
return true;
}

add_action('admin_menu', 'jskit_add_page');
add_filter('xmlrpc_methods', 'attach_xmlrpc_comment_methods');
add_action('deactivate_js-kit/js-kit.php', 'deactivate');
add_filter('post_comments_feed_link', 'jskit_rss_link');
add_filter('trackback_url', 'jskit_trackback_link');
add_filter('comments_template', 'jskit_comments_template');
add_filter('comments_number', 'jskit_comments_number');
add_action('get_footer', 'jskit_all');
add_action('admin_footer', 'jskit_footer');
add_action('admin_head', 'jskit_header');
remove_filter('comment_flood_filter', 'wp_throttle_comment_flood', 10, 3);
?>



I have the 3rd file which is called 1option_menu.php and has this inside:


<div class="wrap">
<h2><?php _e('Discussion Options') ?></h2>
<form method="post" action="<?php echo get_option('siteurl'). "/wp-admin/"; ?>options.php">
<?php wp_nonce_field('update-options') ?>
<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>
<fieldset class="options">
<legend><?php echo __('Usual settings for an article:').'<br /><small><em>('.__('These settings may be overridden for individu
al artic
les.').')</em></small>'; ?></legend>
<ul>
<li>
<label for="default_pingback_flag">
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> />
<?php _e('Attempt to notify any blogs linked to from the article (slows down posting.)') ?></label>
</li>
<li>
<label for="default_ping_status">
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_option('default_ping_status')); ?> />
<?php _e('Allow link notifications from other blogs (pingbacks and trackbacks.)') ?></label>
</li>
<li>
<label for="default_comment_status">
<input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_option('default_comment_status')); ?> />
<?php _e('Allow people to post comments on the article') ?></label>
</li>
</form>
</div>


Do I need to add all 3?

Tal

talfighel is offline   Reply With Quote
Unread 15th Jul 2009, 01:43 PM   #7
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 2,776
Thanks: 6,161
Thanked 2,625 Times in 1,763 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

OMG - well as I said I have no clue about the form.

As for what I said to save the files with .html extension -

I take that back, they should have a .php extension.

As I said the only thing I could help with was unzip and upload.

There must be some documentation on that form thing.

PHP is pretty much a foreign language to me although some things are similar to HTML...

Good luck I am clueless - sorry.

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote
Unread 16th Jul 2009, 06:55 AM   #8
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

So I asked David from H4P and he sent me a simple HTML form that I can post it and I did. This was very simple but the form did not really do what I wanted it to do which is when someone posts their name, email, website, and comments it sends me that message through email.

This is not what I wanted. I wanted people's name, email, website, and comments posted on that page for others to see.

Emailed David at H4P and will see what he sends me next.

Great customer service from H4P. They are great, aren't they?

Tal

talfighel is offline   Reply With Quote
Unread 16th Jul 2009, 11:32 AM   #9
New Warrior Member
War Room Member
 
cfriesen's Avatar
 
Join Date: 2004
Location: Abbotsford, Canada
Posts: 15
Thanks: 2
Thanked 1 Time in 1 Post
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

Hi Tal,

One possibility mighit be to copy and modify the code that is used for the newsletter on your own pips page?

Or do a Google search for html comment forms or such like. There are I'm sure scads of free form builders out there...haven't researched for myself but I tend to modify what is in my hands to suit my needs.

PHP is tougher than HTML as Pat already indicated. I have the same problems with my blogs as they tend to use php in their coding rather than html.

So rather than trying to fiddle with a PHP form, look for an HTML one...in fact I'd lean towards searching for "html forms tutorial" -- I came up with more than 3 million results so one of them from first page should help

Craig Friesen - TopAffiliateProgramsMakeMoney.com
Articles, reviews and resources for Top Affiliate Programs.
cfriesen is offline   Reply With Quote
Unread 16th Jul 2009, 03:01 PM   #10
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 2,776
Thanks: 6,161
Thanked 2,625 Times in 1,763 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

Yes Craig agree with you.

... and that is why I thank God for the upgrades at WordPress that include 'Widgets' - so many struggles I was having with PHP are just eliminated with the widgets.

(having said that, had some problems with double trouble where I had made stuff by mocking up PHP and then added widgets) ... 'too much of a good thing.'

oh well, another example of my motto, 'I know just enough to be dangerous'...

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote
Unread 16th Jul 2009, 04:29 PM   #11
GT
VIP Warrior
War Room Member
 
GT's Avatar
 
Join Date: 2007
Location: Northern Alberta , Canada.
Posts: 1,888
Thanks: 2,392
Thanked 600 Times in 415 Posts
Blog Entries: 357
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

Hi, Tal:

I don't have an answer or solution for you - just want to let you know that I feel your pain!

I don't know how many times I've had a technical question (NOT here in the PIPS forum) that seemed like it should have a simple answer, only to be given a long list of instrucrions that didn't work (and often created a bigger problem), only to be given a LONGER list of instructions that confused things even worse. And eventually to be told either that there was no solution (which I couldn't believe) or that (finally) here was the solution and it turned out to be something quite simple (which is what I expected in the first place).

Okay. Now that that rant is over. Let me also say that I don't know how to do what you are asking, but I too would like to learn how. In fact, I don't remember actually seeing what you have described.

Can you point me to an example on an existing website?

Thanks.

GT

* You Can Begin Earning Affiliate Income HereDirect Commissions and Residual Income!
* Home Business Resources and Affiliate Opportunities
* Visit This Library to Expand Your KnowledgeBlog Post
* Reinventing Your Life - Make the Rest of Your Life the BEST of Your Life!
* Follow Me On Twitter ===> MyPowerSite <===| gtbulmer | StarrBizzcom
GT is offline   Reply With Quote
Unread 16th Jul 2009, 04:58 PM   #12
VIP Warrior
War Room Member
 
talfighel's Avatar
 
Join Date: 2004
Location: Ontario, Canada.
Posts: 6,896
Thanks: 168
Thanked 1,535 Times in 1,249 Posts
Default
Re: Guys, I need your help...
Share on: 
fb share twitter share gplus share more share

Originally Posted by GT View Post

Hi, Tal:

I don't have an answer or solution for you - just want to let you know that I feel your pain!

I don't know how many times I've had a technical question (NOT here in the PIPS forum) that seemed like it should have a simple answer, only to be given a long list of instrucrions that didn't work (and often created a bigger problem), only to be given a LONGER list of instructions that confused things even worse. And eventually to be told either that there was no solution (which I couldn't believe) or that (finally) here was the solution and it turned out to be something quite simple (which is what I expected in the first place).

Okay. Now that that rant is over. Let me also say that I don't know how to do what you are asking, but I too would like to learn how. In fact, I don't remember actually seeing what you have described.

Can you point me to an example on an existing website?

Thanks.

GT
GT,

If you take a look at Terry Dean's site, this is what I wanted to do:
Overcoming Fear : Internet Business Coaching by Terry Dean

Look at the bottom and look at all the replies. That is what I wanted to do.

Tal

talfighel is offline   Reply With Quote


Bookmarks

Tags
guys


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:54 PM.