yas
Forum Replies Created
-
Forum: Your WordPress
In reply to: Any Opinions?IE is the bane of my existence and I just decided screw it. But I suppose I should fix that sidebar issue… Thanks!
Forum: Plugins
In reply to: Post Icon plugin??Alternatively, you could change it to:
onclick=”document.post.’.$meta_form_value.’.value=\”.substr($dir,2).$file.’\’The substr() function in php basically cuts the ‘../’ off of the directory path.
Forum: Plugins
In reply to: Post Icon plugin??That’s strange. The path it’s giving your image appears to be correct, but for some reason the picture isn’t showing up…
Try editing the line:
onclick="document.post.'.$meta_form_value.'.value=\''.substr($dir,3).$file.'\'
To read:
onclick="document.post.'.$meta_form_value.'.value=\'https://www.postsacrifice.com/'.substr($dir,3).$file.'\'
It’s not the most robust way to fix the problem, I suppose, but it should work.
Forum: Plugins
In reply to: Post Icon plugin??That directory is the one that I keep my images in. You can change that to wherever you’d like to keep posts (relative to the plugin’s location)
The “Featured Post” is actually a separate plugin that works similarly. It stores data in the wp_postmeta table for posts that the user selects to be features. These are also separate pictures from the ones you find with the_meta_image plugin, which is why the dimensions are different. I could provide the source for that plugin as well, but it is a bit more complicated since it calls posts randomly (it has it’s own query).
If you just want to display the most recent three posts with pictures, that’s pretty easy with the new query functions in 1.5. You could just use that and use the_meta_image plugin to attach a separate image to the post (just give it a different meta key – the plugin uses ‘prepic’ by default, just change that or add another one).
Not sure if I’m making good sense.
Forum: Plugins
In reply to: NEW! Amazon Media Manager 1.5 (*Finally!*)A great plugin! This is something I’ve wanted for a while, and I’m glad I don’t have to reinvent the wheel…
Forum: Plugins
In reply to: Post Icon plugin??Source code is up: https://no.oneslistening.com/?p=151
I gave a small explanation of how it works. For those who aren’t as technically inclined, I’ll work on a readme file (maybe this will even become a real plugin someday).I’ll also see what I can do about writing in an upload function, but time is scarce this time of year, so no guarantees ??
Let me know if you have any trouble with it, or see any glaring improvements that could be made. As always, feel free to use it, take it apart, put it back together, etc – just give credit where credit is due.
Forum: Plugins
In reply to: Post Icon plugin??Sure thing. I’m always willing to share the source. I’ll revisit the issue and post the source along with some more information about how it works after the work day is over.
Forum: Plugins
In reply to: Post Icon plugin??We have something like that over at https://no.oneslistening.com It lacks the upload feature at the moment, but that would be easy enough to add. Ours just uses metadata, so any filename will do. You just call the image using a custom function that only shows the image if it actually exists, so no broken pics. Check it out here: https://no.oneslistening.com/?p=151 and https://no.oneslistening.com/?p=125
I’d be happy to post the source (and a better description) and let people have at it.