Jump to content

Dynamic Signature Tutorial - WITH PICTURES


Recommended Posts

Posted

Sorry, i wasn't following the thread so I didn't see your initial post. 

 

What was the problem and why do you need to generate a sig every 10 minutes?

When adding the image to my sig IPB said: "Unable to retrieve signature image dimensions, please try another image."

Tried a lot of things but it didn't work, so eventually I just outputted all images to a folder and now run a cron job every 10 min.

Posted

When adding the image to my sig IPB said: "Unable to retrieve signature image dimensions, please try another image."

Tried a lot of things but it didn't work, so eventually I just outputted all images to a folder and now run a cron job every 10 min.

 

Is your htaccess setup properly?

Posted

Yep. The image was displayed correctly in a post, it just didn't work in a signature. 

 

I noticed you have permissions setup on your web server to prevent people accessing other directories, could it be that you have denied global access to the php file that creates the image? Would make sense if OSBot can't retrieve the dimensions, if they can't load the image at all

Posted

I noticed you have permissions setup on your web server to prevent people accessing other directories, could it be that you have denied global access to the php file that creates the image? Would make sense if OSBot can't retrieve the dimensions, if they can't load the image at all

Mhm could be, but it's working so I'll just keep it this way for now :p

Thanks for this tut and your suggestion happy.png

  • Like 1
  • 2 weeks later...
Posted
URLConnection con = submit.openConnection();
instance.log("Submitting statistics...");
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
final BufferedReader rd = new BufferedReader(new InputStreamReader(con.getInputStream()));
rd.close();

You 'could' just..

submit.openStream().close();
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...