Tessisamess

How to Automate Journal Entries


Post entries with a button click!



POSTING THE SAME ENTRY MULTIPLE TIMES IS TEDIOUS, RIGHT?

Posting an entry monthly or more frequently, like game updates, welcome wagons, etc, can get kind of annoying when you have a lot of other things you need to do. Making every aspect of your game run as automatically as possible frees you up to focus on the parts of the game you want to, like writing your characters and keeping gamewide plot running. So what if I told you that the same concept that gives us a friending/unfriending one-click button can also give us auto-posting entries? Yes, really.

You can use this method to keep a whole entry of one-click buttons that will take you to an update journal page for: the right community, with tags, with a subject, and with the shell information you need in the entry. Follow this tutorial and you'll be one button click away from much faster game updating! You could also use this to store your game's application in if you'd like your players to be able to click and be taken to an update page with the app already in place.

A NOTE FOR CHROME USERS: Chrome has implemented new security measures, which is great, but it also makes it impossible to do this trick on Chrome now lmao. If you have an alternate browser installed remember to use that for the actual posting of your finished code into an entry for use. For example: I wrote all of this up in my code tester on Chrome but I hopped over to Firefox to post the entry. The actual sending of the content is what Chrome will halt. (This also applies to friending buttons, I'm willing to bet, though I haven't made one in a while so I don't know firsthand. So if those haven't been working for you lately that's why!)

OKAY, SO WHERE DO WE START?

First we need to create a form that mirrors the update entry form and we're going to want to hide it for the one-click to look nice and compact so that it saves space! It's also going to need a button to make it fire off! What we're creating here is essentially just a copy of the form on the update.bml page that we're hiding with a little extra CSS.

If you want your submit button to have fancy styling you can do that too!

<center><form method="post" action="http://www.insanejournal.com/update.bml">
    	<div style="height:0;overflow:hidden;">

    	 	The guts are going to go here!

	</div>

	<input value="BUTTONTEXT" type="submit" style="cursor:pointer;">

</form></center>


ADDING A SUBJECT

Now that we have our shell, let's start adding the content we need the entry to have ready to go, starting with the subject:

<center><form method="post" action="http://www.insanejournal.com/update.bml">
    	<div style="height:0;overflow:hidden;">

		<input type="text" name="subject" value="YOURSUBJECT">

	</div>

	<input value="BUTTONTEXT" type="submit" style="cursor:pointer;">

</form></center>


ADDING YOUR CONTENT

Your entry's text can be anything you would usually put into an entry, so go nuts! Please note that the textarea tag needs to be on the same line as your content. The inner content does not need to all be run onto one line, however.

The most important thing to note is that if you're going to input forms or form elements (like textareas) into this hidden form for the entry you want to post you will need to replace your entry content's textarea left brackets ( < ) with &lt; or else the textarea HOLDING that information will get confused about where it's supposed to end.

<center><form method="post" action="http://www.insanejournal.com/update.bml">
    	<div style="height:0;overflow:hidden;">

		<input type="text" name="subject" value="YOURSUBJECT">

		<textarea name="event">Your entry text here; you can use any entry-friendly coding you like if desired!

		Line breaks INSIDE the content are fine!</textarea>

	</div>

	<input value="BUTTONTEXT" type="submit" style="cursor:pointer;">

</form></center>


ADDING THE ENTRY TAGS

Finally, we're probably going to need some tags. If you need multiple tags just go ahead and comma separate them the way you normally would.

<center><form method="post" action="http://www.insanejournal.com/update.bml">
    	<div style="height:0;overflow:hidden;">

		<input type="text" name="subject" value="YOURSUBJECT">

		<textarea name="event">Your entry text here!</textarea>

		<input type="text" name="prop_taglist" value="YOURTAGS">

	</div>

	<input value="BUTTONTEXT" type="submit" style="cursor:pointer;">

</form></center>


THE WHOLE ENCHILADA: A COLOR CODED BREAKDOWN

<center><form method="post" action="http://www.insanejournal.com/update.bml?usejournal=JOURNALNAME">
    	<div style="height:0;overflow:hidden;">

		<input type="text" name="subject" value="YOURSUBJECT">

		<textarea name="event">Your entry text here; you can use any entry-friendly coding you like if desired!

		Line breaks INSIDE the content are fine!</textarea>

		<input type="text" name="prop_taglist" value="YOURTAGS">

	</div>

	<input value="BUTTONTEXT" type="submit" style="cursor:pointer;">

</form></center>


JOURNAL SPECIFICATION You can delete this string if you plan to have it post directly to your journal and not to a community your journal posts to (ex. a monthly post on Mod vs a weekly post on the OOC community)

FORM ACTION You must have what page you want to be updated specified or it won't know where to go.

FORM FUNCTION You must have these elements specified or it won't know what to do with its information.

FORM ELEMENTS These fields fill in the site's update journal form; you must have the names of the fields to input your text into the right areas.

EDITABLE FIELDS These fields can say anything you like, just like if you were on the Update Journal page. To leave blank just delete the placeholder text! PLEASE NOTE: If you're going to input forms or form elements (like textareas) into this hidden form you will need to replace your left bracket < with &lt; or else the textarea HOLDING that information will get confused about where it's supposed to end.

BUTTON STYLE Add whatever CSS you want to style your clickable button!

YOUR END RESULT

Want to give the working button a try? Just give it a click! (This does not send the post through and post it to your journal, don't worry!)



And that's it! Now if you have any recurring posts that need a lot of the same information from post to post you can automate the base post!


♡ You're Done! ♡

Tags:

Comments

From:
( )Anonymous- this user has disabled anonymous posting.
( )OpenID
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
  
Message:
 
Notice! This user has turned on the option that logs your IP address when posting.