Commodore 128 Alive!

General => General chat => Topic started by: xlar54 on December 04, 2006, 04:29 PM

Title: Ebay items in the forum
Post by: xlar54 on December 04, 2006, 04:29 PM
Lance - are you manually putting these in or do you run a script?
Title: Ebay items in the forum
Post by: Blacklord on December 05, 2006, 03:55 AM
Quote from: xlar54Lance - are you manually putting these in or do you run a script?
Manual at the mo - have partially written a PHP script that'll pull items & add 'em in - however there's a couple of odd bugs that I need to stamp out as it's pulling incorrect items as well - script is around 80% working though.

cheers,

Lance
Title: Ebay items in the forum
Post by: OzOne on December 10, 2006, 08:10 AM
Quote from: admin
Quote from: xlar54Lance - are you manually putting these in or do you run a script?
Manual at the mo - have partially written a PHP script that'll pull items & add 'em in - however there's a couple of odd bugs that I need to stamp out as it's pulling incorrect items as well - script is around 80% working though.

cheers,

Lance
Can you post the source, can have a look at it if you like. Where's it failing?

Oz
Title: Ebay items in the forum
Post by: Blacklord on December 10, 2006, 08:38 AM
I'll email it to you.

Lance
Title: Ebay items in the forum
Post by: OzOne on December 16, 2006, 10:10 AM
Quote from: adminI'll email it to you.

Lance
Got it - I've emailed back an update for you. This fixes the field for "POST_TO" & seems top work on the test SQL db I have up & running. To do that though, I've moved it out of the subject line & into the body of the post. Leaving it where it was does some screwy stuff to the subject line (as you pointed out in your email).

The From: field can only contain a valid username at the moment, else PunBB throws the post away - this doesn't happen when anonymous posting is allowed, but I can see several reasons why you wouldn't allow this.

I don't want to test on the forums - can you do this ?

Oz
Title: Ebay items in the forum
Post by: Blacklord on December 16, 2006, 10:20 AM
Quote from: OzOne
Quote from: adminI'll email it to you.

Lance
Got it - I've emailed back an update for you. This fixes the field for "POST_TO" & seems top work on the test SQL db I have up & running. To do that though, I've moved it out of the subject line & into the body of the post. Leaving it where it was does some screwy stuff to the subject line (as you pointed out in your email).

The From: field can only contain a valid username at the moment, else PunBB throws the post away - this doesn't happen when anonymous posting is allowed, but I can see several reasons why you wouldn't allow this.

I don't want to test on the forums - can you do this ?

Oz
Ok - will test this later today - code looks ok from here.

Lance
EhPortal 1.34 © 2025, WebDev