Errors when using SQL
Is there any way to turn the oxidemod support pages back on? Not for posting but searching for answers. Most of the info i need i'm sure is in there. Not to mention the lack of displaying CODE correctly here. My problem is with understanding package names working with paypal. I'm trying to use Woo Comerce in wordpress. Will this plugin work with a shopping cart or just PayPal links and buttons?

Also while exicuting the procedure in MySQL i get an error on line #4 set email_address = REPLACE(email_address,'@@','@');

Thanks
We no longer use oxidemod.org, so it won't be open for use aside from limited archival, not to mention that posting there would be pointless as all of the same features are available here on the forums, including code that properly displays (use the code button in the post editor.)
Ok... I still need help with my problems. I think I've figured out the paypal end but I can find NO information on the SQL problem as follows:

CREATE DEFINER=`root`@`localhost` PROCEDURE oxide.claim_donation(IN email_address VARCHAR(255))
BEGIN

set email_address = REPLACE(email_address,'@@','@');

set @ID = (
select    IBN.id
from    oxide.ibn_table as IBN
where    IBN.iemail = email_address
        and IBN.claimed = 0
        and IBN.claim_date IS NULL
        and IBN.ipaymentstatus = "Completed"
ORDER BY IBN.itransaction_date DESC
LIMIT 1);

UPDATE oxide.ibn_table
SET    claimed = 1, claim_date = NOW()
WHERE id = @ID;

select    IBN.item_name
from    oxide.ibn_table as IBN
where    IBN.id = @ID;

END​
I get an error on line 4.

set email_address = REPLACE(email_address,'@@','@');

Am I supposed to change something here? If so whats the format?


Merged post

Well this really sucks. Would really like to get this plugin working. As I stated the first time it would be great if we had access to the YEARS of Knowalge now lost in the old OXIDE Forums NOT TO POST but to search for answers. I could have had this plugin running by now and not had to bother anyone. Also the CODE not displaying i'm refering to is on ALL of the main plugin pages here on UMOD, I said nothing about the forums. For referance the SQL code on the Donation Claim main page on UMOD is imposable to read has no format and wont copy paste into the SQL querry properly and fails because it lacks the proper format. I had to go to the OXIDE plugin page just to get the SQL and the PHP files in the correct format, sorry if I sound a lil pissy but you came down on me about OXIDE without taking a moment to read fully what I was asking then you ignore my problem with the plugin all together. I understand your busy but DAMN...
Sorry if I misunderstood you regarding the code, but these forums are community supported, so you may not instantly get a reply.

Per our announcements, not all plugins have been fully migrated or formatted yet, so there will be some discrepencies until then. All of the original content for plugins not yet fully migrated is still available on the old site, so I don't see the issue there.

Also, per the original support thread for this plugin, I am not that familiar with MySQL, so I am not really able to help you with your issue. If someone is able to help you, I'm sure they will reply. This plugin was taken over by me after the original author abandoned it, so support may be limited with it.
Thank you for your understanding but is there any way at all to give access to the old forums NOT for posting but looking for answers and research? That is A LOT of valuable information that many could still use and we could referance thoes pages till the forums here get built up. Please re-enable the old forums but disable signing in and signing up and no body will be able to post to them. I'm sure if you asked the community they would agree...

Thank you for your time and consideration...
In response to Mystic419 ():
Thank you for your understanding but is there any way at all to give access to the old forums NOT fo...
The forums are still there as are the content, they haven't gone anywhere. https://oxidemod.org/threads/donationclaim.18169/
OMG!!! THANK YOU! just what i needed!!!

Merged post

For thoes of you looking for a solution to the error in line 4 like the above dont use MySQL WorkBench to create the new table and stored procedure use Navicat to install them. It's a 14 day trial but you only need it once. Oh and the user account that accesses this database must have all permitions or root access. This will NOT work with shared hosting as the admin will not likly give you root access to the database.
In response to Mystic419 ():
OMG!!! THANK YOU! just what i needed!!!

Merged post

For thoes of you looking f...
Didnt seem to work for me hmm still getting line 4 error.
works perfectly fine however the SQL Statement is out of date so you will have to do this
DELIMITER $$
CREATE DEFINER=`root`@`%` PROCEDURE `claim_donation`(IN `email_address` VARCHAR(255))
BEGIN

SET
    email_address = REPLACE (email_address, '@@', '@');
SET
    @ID =(
    SELECT
        IBN.id
    FROM
        ibn_table AS IBN
    WHERE
        IBN.iemail = email_address AND IBN.claimed = 0 AND IBN.claim_date IS NULL AND IBN.ipaymentstatus = "Completed"
    ORDER BY
        IBN.itransaction_date
    DESC
LIMIT 1
);
UPDATE
    ibn_table
SET
    claimed = 1,
    claim_date = NOW()
WHERE
    id = @ID;
SELECT
    IBN.item_name
FROM
    ibn_table AS IBN
WHERE
    IBN.id = @ID;
 
END$$
DELIMITER ;​
5c2d88ae4ea06.jpg Wulf
The forums are still there as are the content, they haven't gone anywhere. https://oxidemod.org/threads/donationclaim.18169/

@Wulf is that forum link still active I am not seeing it and need to do sometroubleshooting as records are not getting inserted

It'sa saying it was moved.

5d35f1495da0a.jpg FastBurst

@Wulf is that forum link still active I am not seeing it and need to do sometroubleshooting as records are not getting inserted

It'sa saying it was moved.

I haven't archived that part of the site yet. The link was active at the time, before we had migrated fully.

So I guess the question is this plugin even still supported then since that link is no longer active? Or has it been updated or going to be updated? I got the database setup, procedure setup IPN and Paypal on configured

Doing tests and not getting an records created.
5d35f1495da0a.jpg FastBurst
So I guess the question is this plugin even still supported then since that link is no longer active? Or has it been updated or going to be updated? I got the database setup, procedure setup IPN and Paypal on configured

Doing tests and not getting an records created.
It hasn't really been supported for ages, more or less just exists at the moment. The plugin was converted as universal based on the original code, that's about my entire envolvement in it. I'm sure I'll get around to doing something with it eventually, but you know about as much about it as me in regards to the SQL and PHP aspects at the moment. Ideally I'll be making a plugin that fully integrates with PayPal's API once we are able to using uMod (not Oxide) that bypasses the need for a database.
Got it working took some time but I got it lol
$header = "POST /cgi-bin/webscr HTTP/1.1\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Host: http://www.paypal.com\r\n";
$header .= "Connection: close\r\n\r\n";
$fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);  // Change this to ssl://www.sandbox.paypal.com for testing​

for testing with sandbox it still requires the header to be the live link. if not it does nothing.

has anyone else run into this:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4