Jump to content

phpvox

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

Posts posted by phpvox

  1. can someone explain this to me ? .....1 + 2 ....im having hard time understanding it, thanks

     

    If you have multiple products, sale.php expects them in the format sale.php?prod=X1*N1,X2*N2,X3*N3 (and so forth), where the Xs are the product IDs and the Ns are their quantities. The script can process arbitrarily many products in this fashion.

     

    You can route the customer through this script in a couple of ways:

     

      1. By using this script as the return page for your payment gateway. After processing the sale, it will return the user to the URL that you have associated with the product.

      2. By including it discreetly on the return page as a one-pixel image:

     

          <img src="http://YOUR-BASE-WEBAFFILIATE-URL/SALE-PHP-URL" alt="" height="1" width="1" border="0" />

     

          In this case, no image will be seen, and only the processing occurs "in the background."

     

  2. I have this php affiliate script, im trying to configure it to credit the affiliates when a sale is made, I did everything right, but its not crediting them.

     

    I have 5 pruducts, 1,2,3,4,5 ID's and the return page is payment_sucsess.html.......any idea what im doing wrong ? please help me , I realy need help with this and this is the only forum that im loyal to........thanks

     

    here is the instructions

     

    In order to have the webAffiliate™ system properly credit a commission and sale, you will need to route a customer who has successfully completed a sale through http://YOUR-BASE-WEBAFFILIATE-URL/sale.php?prod=X, where YOUR-BASE-WEBAFFILIATE-URL is the URL to the directory that houses the main webAffiliate™ script, and X is the ID of the product sold (you can obtain the product ID for each product by viewing the Products screen in the administrative backend).

     

    If you have multiple products, sale.php expects them in the format sale.php?prod=X1*N1,X2*N2,X3*N3 (and so forth), where the Xs are the product IDs and the Ns are their quantities. The script can process arbitrarily many products in this fashion.

     

    You can route the customer through this script in a couple of ways:

     

      1. By using this script as the return page for your payment gateway. After processing the sale, it will return the user to the URL that you have associated with the product.

      2. By including it discreetly on the return page as a one-pixel image:

     

          < i m g src="http://YOUR-BASE-WEBAFFILIATE-URL/SALE-PHP-URL" alt="" height="1" width="1" border="0" />

     

          In this case, no image will be seen, and only the processing occurs "in the background."

     

    In either case, remember that you have to have the appropriate ID(s) sent to sale.php for each sale. Otherwise, your sales and commissions will not work!

     

    end of instruction

     

    i did put spaces where < i m g .....cause i couldnt past it here

  3. This code is from my social networking script send_message.pml", this is the file that "sends your email" to user.........it checks to see if you are a paid member or not, if yes, then it sends your email to user, if not, then it will take you to the billings page to pay.  Here is the problem

     

    users when they buy contact stamps fails to let them send emails, it dosent function..... it still takes them to the billing page even tho they have stamps......it shouldnt do that, it should send your email to the other users. heres the code. any help would be nice......thanks

     

    <?php
        if($action == send)
    {
            $fBlocked = f(q("SELECT id FROM dt_blocked WHERE member_id = '$rid' and blocked_id = '$fMember[id]'"));
            if ($fBlocked[id] != "")
            {
                 $errors_num++;
                 $errors_string .= "$errors_num. You have been blocked by this user!<br>\n";
            }
            if ($rid =="")
            {
                 $errors_num++;
                 $errors_string .= "$errors_num. Please enter a recepient.<br>\n";
            }
            if ($subject =="")
            {
                 $errors_num++;
                 $errors_string .= "$errors_num. Please enter a subject.<br>\n";
            }
            if ($message =="")
            {
                 $errors_num++;
                 $errors_string .= "$errors_num. Please enter a message.<br>\n";
            }
            if ($errors_num)
            {
               $r_records = q("SELECT * FROM dt_address_book WHERE member_id='$fMember[id]'");
               include "templates/send_message.ihtml";
            }
            else
            {
    		q("INSERT INTO dt_messages (sid, rid, subject, message, timesent) VALUES (".$fMember[id].", $rid, '$subject', '$message', ".(strtotime(date("d M Y H:i:s"))).")");
    
    		// Begin New Code
    		$action = "add";
    		$owner_member_id = $fMember[id];
    		$member_id = $rid;
    		$hotlist_type = "messaged";
    		include "engine/pages/hot_lists.pml";
    		// End New Code
    
    		include "templates/message_sent.ihtml";
    
    		$query = "select * from dt_members where id = '$rid'";
    		$user_info = f(q($query));
    		$login = $user_info["login"];
    		$generated_link = $root_host."index.php?page=sign_in";
    		mailSend($user_info["email"], "new_mail");
            }
    }
    else if($action == "new")
    {
      		$f_balance = f(q("SELECT balance FROM dt_stamps_balance WHERE member_id='$fMember[id]'"));
    	$action = "";
    	$free_profile = 0;
    	$can_contact = 0;
    	$valid = 0;
    
    	if($fMember[id] == "") return;
    
    	if(($fMember[ unlimited ] && $fMember[ unlimited_end ] > strtotime(date("d M Y H:i:s"))) || $free_initiate) $free_profile = 1;
    	else if($f_balance[ balance ] >= 1) $can_contact = 1;
    
    
    	if(!$free_profile && !$can_contact)
    	{
    		include "templates/cannot_contact.ihtml";
    		return;
    	}
    
    	if($free_profile)
    	{
    		$valid = 1;
    		include "engine/pages/send_message.pml";
    		return;
    	}
    
    	if($can_contact)
    	{
    		q("UPDATE dt_stamps_balance SET balance=balance-1 WHERE member_id='$fMember[id]'");
    		$valid = 1;
    		include "engine/pages/send_message.pml";
    		return;
    	}
    }
        else
        {
            if((($reply == "") && (!$valid)) || (!$free_reply && $fMember[unlimited] != 1))
            {
    
    		include "templates/cannot_contact.ihtml";
                return;
            }
            if ($reply != "")
            {
                $r_records = q("SELECT * FROM dt_messages WHERE id=$reply");
            }
            elseif ($mid != "")
            {
                $f_record = f(q("SELECT * FROM dt_address_book WHERE (member_id='$fMember[id]' AND contact_profile_id = '$mid')"));
            }
            elseif ($pid != "")
            {
                $f_record = f(q("SELECT * FROM dt_address_book WHERE (member_id='$fMember[id]' AND contact_profile_id = '$pid')"));
            }
            else
            {
                $r_records = q("SELECT * FROM dt_address_book WHERE member_id='$fMember[id]'");
            }
    
            include "templates/send_message.ihtml";
        }
    ?>
    

     

  4. that plugin is encoded too, it will only dispaly the server info.l..such as php ver....plugin version ect

     

    it says to to contact "system adminisrator" .......so is it server side issue ????  i have access to the server, what should i change ?

  5. I have a php and mysql based script, when I click on the system information link, i get the bellow error....the script is zend coded so i cant do much with it......IT WORKS FINE ON A SHARED HOSTING....but not on my virtual host server.....any ideas ? thanks

     

    Execution failed

     

    You do not have access on execution of plug-in named "sysinfo".

    For more information about this error, please contact our system administrator.

  6. php.ini

     

    mysql

     

    Directive             Local Value Master Value

     

    mysql.allow_persistent   On             On

    mysql.connect_timeout 60           60

    mysql.default_host   no value no value

    mysql.default_password no value no value

    mysql.default_port     no value no value

    mysql.default_socket   no value no value

    mysql.default_user   no value no value

    mysql.max_links             Unlimited Unlimited

    mysql.max_persistent Unlimited Unlimited

    mysql.trace_mode Off Off

     

    mysqli

    MysqlI Support enabled

    Client API version 4.1.20

    MYSQLI_SOCKET /var/lib/mysql/mysql.sock

     

    Directive Local Value Master Value

     

    mysqli.default_host no value no value

    mysqli.default_port 3306 3306

    mysqli.default_pw no value no value

    mysqli.default_socket no value no value

    mysqli.default_user no value no value

    mysqli.max_links Unlimited Unlimited

    mysqli.reconnect Off Off

  7. okay what about this code, i found this in a diffrent folder

     

    <?

      function c ()

      {

        global $db_host;

        global $db_login;

        global $db_pswd;

        $db = @mysql_connect ($db_host, $db_login, $db_pswd);

        $connected = true;

        return $db;

      }

     

      function q ($q_str)

      {

        global $db_name;

        global $connected;

        global $query_count;

        global $show_debug_info;

        global $queries_str;

        if (!$connected)

        {

          c ();

        }

     

        $r = mysql ($db_name, $q_str);

        if ((ee () AND $show_debug_info))

        {

          echo '' . ': ' . $q_str;

        }

     

        if (!$query_count)

        {

          $query_count = 0;

        }

     

        $queries_str .= '' . $q_str . '<br />';

        ++$query_count;

        return $r;

      }

     

      function d ($db)

      {

        @mysql_close ($db);

      }

     

      function e ($r)

      {

        if (@mysql_numrows ($r))

        {

          return 0;

        }

        else

        {

          return 1;

        }

     

      }

     

      function ee ()

      {

        global $show_debug_info;

        $err = mysql_error ();

        if ($show_debug_info)

        {

          echo $err;

        }

     

        return ($err ? true : false);

      }

     

      function f ($r)

      {

        return @mysql_fetch_array ($r);

      }

     

      function fr ($r)

      {

        return @mysql_fetch_row ($r);

      }

     

      function nr ($r)

      {

        return @mysql_num_rows ($r);

      }

     

      $connected = false;

    ?>

  8. I havent done anything yet, but this is the problem:

     

    Warning: mysql() [function.mysql]: Access denied for user 'apache'@'localhost' (using password: NO)

     

    this is not due to incorrect database info.....the info is correct, this is a compatibility issue from PHP4 to PHP5

     

    I can downgrade to php4 in ONE click from the cpanel, and it works fine

     

    but when i click on using PHP5...then i get the above error

     

    please dont post telling me to check database info, because it is correct....... something has changed in PHP5 that the script dosent connect to database.

     

    this only happenes when i upgrade to php5

     

    >: thanks

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.