| Admin | | Welcome to IAM.BMEzine.com This user is an automated IAM account. It will be updated shortly! |  BMEzine.com ... 
|
|
| WordPress plugin made public | |
| 2006/06/16 10:39 This entry details the basics of how to make your IAM page also power a Wordpress blog, in the same way that IAM:modblog powers modblog.bmezine.com. If you don't know or care what WordPress is, you can skip this entry.
I think I'm ready to make the WordPress plugins public access. They're still kind of alpha test (I just use them to maintain ModBlog), and you will need a small number of technical skills. First of all, the settings are stored in your FTP setup. You Just have to scroll down to the part where it says "WordPress Integration Settings" (all other features can be ignored).
Setting it up: IAM end
Here are the options you'll need to fill out:
- WP Image Dir: This is the URL prefix used in front of images when generating the HTML for entries. For ModBlog, I use "/wp-content/uploads/".
- WP Default Keyword: This is the default keyword that will be used if you don't manually specify any. For Modblog, I use "Body Modification".
- WP FTP Server: This is generally your domain name. For ModBlog, I use "modblog.bmezine.com".
- WP FTP username, password: These two settings are the login via FTP to your WordPress server. IAM uses it in order to FTP images across.
- WP FTP Image Dir: This is the directory that IAM will try and FTP your images and thumbnails into. Make sure it exists and is writable of course. A sample default setting would be "/wp-content/uploads/". It's usually the same as the image directory above assuming you FTP into your home web directory.
- WP Posting Link: This is the URL to the RSS import page on your WP server, ending with "feed=". For example, the default setting, and the one I use on ModBlog is "/wp-admin/admin.php?import=rss&step=1&feed=".
Setting it up: WordPress end
First of all, make sure that all the FTP settings you've entered above work (just try them manually in an FTP program). Second, you have to replace the RSS importer. In a default installation, this is stored at "/wp-admin/import/rss.php" with this version. The only difference is that this version allows import of a hosted feed rather than just a local one (code updated by Jon).
Limitations
- The transfer of the entry is a one time deal. If you need to edit an entry, you will either need to edit it in both places, or delete it from WordPress, edit it on IAM, and then re-post it automatically.
- To post, you must be logged in to your WordPress blog (with "remember me" turned on), and must have Admin access. While only admins are able to post, multiple admins can also post, meaning this feature can be used to power groups blogs in some situations.
Usage
After you make a post, just click the text that says "WordPress It" and any images in your entry will be FTP'd to that server, and then click the "Autopost It" link to add the entry to the blog. Alternately, if you are unabel to make the modifications to the import RSS, you can grab the single entry RSS feed provided and post it manually if you'd prefer.
|
|
| Thumbnail/fullsize mixing | |
| 2005/02/13 16:47 I've made two changes to the main IAM code in terms of how it processes images. First of all, I'm no longer automatically including the image dimensions. This will make loading of pages look a little difference (as you've probably noticed on the front page), but won't really change functionality. It will however reduce the CPU and filesystem load slightly which I believe will cut back on server freezes and other problems that appear to be load-related.
I've also added the ability to mix and match full-size (ie. **PIXFULL** type) images and thumbnail images in a single method. You know how you can use **PIX1**, **PIX2**, and so on to place images? Now if you'd like you can also use **PIX1FULL**, **PIX2FULL**, and so on to place full size images. If you use the **PIXFULL** tag it will override and make them all full-size, but if not, you can now mix and match. This will allow you to do things like put in a full-sized "title image" and then a normal gallery below it, and many other layout tricks. |
|
| Pre-IM/Away Message Upgrade | |
| 2004/12/13 17:06 So I've been trying to draw a cartoon Corvette (you'll see why later) for a little while and it's stressing me out so I took a break to do a little programming. I've noted this in the FAQ as well, but many of the macros that you can use in your diary entries now work in your iam.alive pre-IM and away messages. From the FAQ:
What's with away messages and pre-IM messages?
The Pre-IM message is displayed as a part of the form people use when they send you a message. Presumeably they will read it immediately before contacting you. The Away message (which is not very well named), is displayed as a part of the "message sent" dialog, so people will see it immediately after sending you a message. You can use any HTML you'd like in either message, and the following live functions are also supported:
phrase
This randomly chooses one of the specified phrases to display. You can use whole blocks of HTML (not just simple single line phrases), although you'll have to exclude '|' and '**' characters of course.
Inside segment is only shown to the listed usernames.
blah blah blah
Inside segment is only shown to users OTHER than the listed ones.
whatever
If you are currently online (active on IAM within the last five minutes), whatever will be displayed.
If you are currently offline (not active on IAM within the last five minutes), whatever will be displayed.
If you've been inactive for somewhere inside the specified range of minutes, blah blah blah will be displayed.
This special macro creates an HTML color code that fades between a specified six digit hex HTML color code. FOr example, 00FF00 would output a color that fades from bright green. You can also specify multiple ranges using the NOOVER and/or NOUNDER to create no output if the input is out of range. If you don't use these, an out of range input will be snapped to the maximum. For example, if you were to have the HTML fragment <font color="#00FF00"> the text color would change as you became dormant. From zero to two minutes it would be bright green. Then from two minutes to ten minutes it would fade from green to red, and then down to black over the next ten minutes.
For the time-related macros above, you can use the FAKEMINUTES setting to override your actual dormant time to x minutes (since when you're testing it will always be 0 minutes).
Please note that nesting these macros does not currently work (ie. you can't put them inside each other), but other than that you can use multiple macros and you can use them in conjunction. In addition to the above macros, in your away message (only), you can use **OFFLINE** to display it only when you are not active on IAM (ie. when you are offline).
|
|
| 2004/05/26 10:49 I've added two new commands for the purposes of creating permanent links to diary entries. I've used the first one in this diary entry to illustrate what it does. Both of these are dynamicly generated and will compensate for date changes you make for resorting of entries and so on (although doing that will break links on other people's pages of course).
**ALINK**
If you enter this in the body of a diary entry, the timestamp of the entry will be turned into a link which represents a permalink to that entry (useful for if you have something important to say and you think others might like to link to it).
**LINK**
This is similar to **ALINK**, but is not automatic. It generates just the URL for the entry link, so you'll have to use it in a context like this:
<a href="iams.exe?cmd=find&username=admin&datematch=200405261049">Permalink</a>
|
|
|