Will Haynes
Forum Replies Created
-
Furthermore,
wpua_get_attachment_img_src
doesn’t take type array() for the size param.Forum: Hacks
In reply to: Creating a cookieA slightly more secure method would be to provide a key and a hash.
1. key: a random number and/or string (example “hello34”)
2. hash: a hash of this key with a secret salt. (examplemd5( $mysalt . "hello34" )
)Store and retrieve both of these values from the $_SESSION variable.
Then, before providing any data back to the user, use the key to check that the users hash is valid.
Forum: Hacks
In reply to: Creating a cookieJust want to point out that in general, creating a table for every user is not considered a good solution.
Instead, create one table to be shared by all users, and add an “identifier” column to distinguish which values belong to which user. Store that identifier value in a $_SESSION variable.
Regardless of method, you’ll also want to make sure the identifier is some form of unique hash such that any user can’t change their $_SESSION cookie value and access data created by another user. In particular, naming them 1,2,3… would be a security concern.
wjh.
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Hi Pepe,
While hackish, it seems to be working relatively consistently. I’ve pushed it to our production server, and users seem to be doing ok with it so far.
The only issue that remains is that when inserting into the visual editor, weird stuff happens with the the credit short tag handling. I’ve told users to always switch to the text editor before inserting.
Will
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Hey Peter,
Curious if you were able to replicate, or find a problem. If not, I’ll have to get my hands dirty and dig into the (I assume) javascript.
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Yep!
After inserting:
https://www.dropbox.com/s/qusvqyp89b4g153/Screenshot%202013-10-05%2013.14.10.pngSwitching to text now:
https://www.dropbox.com/s/kmn2picrj1mzlok/Screenshot%202013-10-05%2013.22.12.pngInserting the same image below the next paragraph now in the text editor:
https://www.dropbox.com/s/rchhuiqhyl6volv/Screenshot%202013-10-05%2013.24.40.pngIf we save the post and update now, the first image has a caption of
[/media-credit] this is a caption
. The second displays the media credit correctly.But if we go back into the visual editor and back, the second opening
[media-credit]
tag disappears.Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Using 1.2.0, (with the additional function that was added) with a fresh install of WP 3.6.1. I’ve cleared the cache on multiple browsers, and switched back to the default theme. Still doesn’t seem to be working.
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Hi Pepe,
Slight bug I’ve found. When inserting the media in visual editor, the initial
[media-credit]
tag is not inserted. (however, the[/media-credit]
is). In the text editor, this is not a problem. Additionally, if you switch from text editor, to visual, and back the first[media-credit]
seems to disappear.Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Sorry Pepe,
I fully intend on revisiting this project, but I have a ton of projects on my plate right now. I’ll see if I can’t do some beta testing for my particular situation this weekend.
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Tomorrow, I’m going to be importing a bunch of posts into WordPress from our old CMS. I’ll be using media credit. Since I don’t yet have media credit working, it’s hard for me to test that my import is working correctly. Could someone let me know if the syntax I have is correct?
I added line breaks to make it easier to read. I need it to work correctly with and without an included caption:
With Caption
[caption id="attachment_54842" align="alignnone" width="648"] [media-credit name='John Doe' align='alignnone' width='648'] <img src="https://example.com/" width="648" height="206" /> Caption here: Vestibulum id ligula porta felis euismod semper. [/media-credit] [/caption]
Without Caption:
[caption id='attachment_54765' align='alignnone' width='648'] [media-credit name='John Doe' align='alignnone' width='648'] <img src='https://example.com/kitty.png' width='648' height='405' /> [/media-credit] [/caption]
My main questions are:
– is the caption tag still included when there is no caption?
– Do I start/end the media-credit tag in the correct place?Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Still looking for a solution here.
We’re going live with our new website early next week. My final import will probably include the double tag version, and I’ll just hide them in functions.php until I have time to tackle a patch myself.
Pepe, looks like you just posted a diff here. Do you have a repo somewhere so I can get at the code?
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)This is great news, guys. As I said, I’m rebuilding my databases, so generating the media credit tag structure is as simple as rerunning my script.
However, It would be great if a double tag/single tag decision was made so that I could start pulling things together (even if it didn’t quite work on the front end yet).
Forum: Plugins
In reply to: [Media Credit] WP 3.5 Compatible version (download here)Trying to use your plugin, but it doesn’t seem to be working with the lastest nightly builds. The issue appears to be that the media credit doesn’t parse within the caption shortcode once again.
Is this something you’re working on, or should I fork and get my hands dirty?
Forum: Everything else WordPress
In reply to: Newsroom workflow ? To multisite or not? ? Large install.I appreciate your feedback.
After taking your suggestions, and talking to some other system admins at news organizations, I’ve decided multisite is not the right approach.
If anyone still has any suggestions for great plugins/additions (other than role scooper – which I’ll look into) for a newsroom workflow, I’d love to hear them. I’ve found some old resources for this, but I’d love to hear others.
@wpyogi – I’ll think about custom post types, although I’m not sure we’ll necessarily need them. Would it be a better solution than just leaving the category “stub” as “./” to blank out that part of the URL, for our main categories?
Thanks
Will
Forum: Fixing WordPress
In reply to: Cant see index.htmlOdd, I seem to have found your homepage at: https://www.ash-builders.org/wp-admin/
Are you trying to install wordpress in a different location? Or running a normal install?
If just a normal install some files appear to be in the wrong place.