ac1969
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Raindrops: How to increase font of header text on banner image?As a temporary workaround I just added the text in the jpg image itself, and re-uploaded it. Still would like to have a better flexibility though to do this via the style sheet and/or functions.
Forum: Fixing WordPress
In reply to: Raindrops themeHi drumzonfire, did you manage to find a solution to change the black content background in this theme? I would like to change it to gray, but did not yet find a way how to do this.
Apart from that, I love the theme.
Thanks,
ACIt’s not really recommended to modify the core wordpress files. Firstly because of the risk of breaking something, secondly because your changes will get lost the next time you do an WP upgrade.
I found another way to remove the word Protected from the beginning of the post name.
Credits don’t go to me, I just found the work from someone else (can’t find the data right now, to provide credits to the one who owns it, sorry).
It’s less elegant than the PPP plugin, but at least provides a workaround for now.Deactivate the plugin.
Insert in the below code in your theme’s function.php file (not the core file):function the_title_trim($title) { // Might aswell make use of this function to escape attributes $title = attribute_escape($title); // What to find in the title $findthese = array( '#Protected:#', // # is just the delimeter '#Private:#' ); // What to replace it with $replacewith = array( '', // What to replace protected with '' // What to replace private with ); // Items replace by array key $title = preg_replace($findthese, $replacewith, $title); return $title; } add_filter('the_title', 'the_title_trim');
If I have some more time I will try to fix the plugin if the original creator should not be supporting it any longer.
Forum: Hacks
In reply to: Display protected posts to logged in usersAlthough not the most pretty way to achieve what I wanted, I managed to find a “work-around”. Inside the Facebook Connect plugin I’m now just setting the cookie after a succesful FB login
setcookie('wp-postpass_' . COOKIEHASH, 'post_password', time() + 3600, COOKIEPATH);
It does the trick what I was looking for.
I now either provide the protected page password to visitors (without facebook), or my friends can login through facebook and are not bothered by a password request.
The post remains closed for the general public.It’s not so much about the security, but I would like to have some control who can access the onfo. Visitors coming through FB are logged.
Forum: Hacks
In reply to: Display protected posts to logged in usersI’ll have to dig a little into this. I realized I was editing core files (and taking the risk to loose this again after the next upgrade), something I would prefer to avoid. Didn’t see another option though…
It seems however that the decision to replace content by the password request form is made in the core of WP. The theme only deals with how it is being presented, I noticed $content was replaced by the password form on protected posts. With the theme (or some plugin) you can just manipulate a little how the password required message and form look like.
But, I’ll continue searching.Using private posts is an alternative, but I would for the time being prefer to use protection as well. That way I can just share the password with some friends and family, without requiring them to use a userid and login (of course, this does have advantages for me, because it allows site-visits to be tracked much more detailed)
I’m a little surprised not more people asked for this (or at least, I could not find it).
Anyway, thanks for your support. I’ll try to search further. When (if….) I find a solution I’ll share it through this post.
Forum: Hacks
In reply to: Display protected posts to logged in usersHi Mark, thanks for your reply. I indeed found post_password_required() in my template (wp-includes/post-template.php).
Modified it at several places to read the below, but still not the desired effect ??// If post password required and it doesn't match the cookie. if (!is_user_logged_in() ){ if ( post_password_required($post) ) { $output = get_the_password_form(); return $output; } }
Forum: Fixing WordPress
In reply to: NextGen Gallery: Galleries don’t display after 2.8!Same here. Just noticed this post, after having submitting one myself. I just did the upgrade to WP 2.8
The galleries on my posts do show the thumbnails fine, but clicking on them brings you straight to the jpg file, rather than showing them in the effect box format I was used to when running 2.7.Forum: Plugins
In reply to: [nggallery] Password protection ?Thanks for the advice. I’ll try that for the time being.