Jump to content

Dynamic Signature Tutorial - WITH PICTURES


Tom

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 weeks later...
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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