dc5ala
Forum Replies Created
-
Forum: Plugins
In reply to: [EU Cookie Law for GDPR/CCPA] Message does not disappear now with upgradeI don’t think this is resolved. If you delete the cookie the popup should be visible again but it doesn’t?
Forum: Plugins
In reply to: [Timeline Express] Cannot use object of type WP_ErrorYou are not handling the WP_Error case that wp_get_remote() can return instead an array.
$response = wp_remote_get( 'http://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css' ); $split_dat_response = explode( 'icons */' , $response['body'] );And somehow a WP_Error object is returned and explode gets issues.
Forum: Plugins
In reply to: [FancyBox for WordPress] Possible malwarewpwalker,
i just took a quick look. The issue is not part of fancybox itself, so other plugins using fancybox are not affected by this (unless they have their own security issues of course). It’s just the result of not properly checking who is reseting the plugin options.Forum: Plugins
In reply to: [FancyBox for WordPress] Possible malwareDB Backup from 28.01.2015:
a:2:{s:10:"extraCalls";s:1:" ";s:16:"extraCallsEnable";s:2:"on";}DB Backup from 14.12.2014:
a:38:{s:11:"borderColor";s:7:"#BBBBBB";s:15:"showCloseButton";s:2:"on";s:11:"closeHorPos";s:5:"right";s:11:"closeVerPos";s:3:"top";s:12:"paddingColor";s:7:"#FFFFFF";s:7:"padding";s:2:"10";s:11:"overlayShow";s:2:"on";s:12:"overlayColor";s:7:"#666666";s:14:"overlayOpacity";s:3:"0.3";s:9:"titleShow";s:2:"on";s:13:"titlePosition";s:6:"inside";s:10:"titleColor";s:7:"#333333";s:13:"showNavArrows";s:2:"on";s:11:"zoomOpacity";s:2:"on";s:11:"zoomSpeedIn";s:3:"500";s:12:"zoomSpeedOut";s:3:"500";s:15:"zoomSpeedChange";s:3:"300";s:12:"transitionIn";s:4:"fade";s:13:"transitionOut";s:4:"fade";s:8:"easingIn";s:11:"easeOutBack";s:9:"easingOut";s:10:"easeInBack";s:12:"easingChange";s:14:"easeInOutQuart";s:10:"imageScale";s:2:"on";s:14:"centerOnScroll";s:2:"on";s:18:"hideOnOverlayClick";s:2:"on";s:18:"enableEscapeButton";s:2:"on";s:11:"galleryType";s:3:"all";s:16:"customExpression";s:74:"jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();";s:14:"autoDimensions";s:2:"on";s:10:"frameWidth";s:3:"560";s:11:"frameHeight";s:3:"340";s:15:"callbackOnStart";s:0:"";s:16:"callbackOnCancel";s:32:"function() { alert("Cancel!"); }";s:18:"callbackOnComplete";s:0:"";s:17:"callbackOnCleanup";s:33:"function() { alert("CleanUp!"); }";s:15:"callbackOnClose";s:0:"";s:16:"extraCallsEnable";s:2:"on";s:10:"extraCalls";s:171:"var arr = jQuery("a.fancybox"); jQuery.each(arr, function() { var title = jQuery(this).children("img").attr("alt"); beforeLoad: jQuery(this).attr('title',title); });";}Not sure if that helps, though. Just looks like some cleaned up options.
Forum: Plugins
In reply to: [Oculolinctus] Audioso i’ve heard you need more votes?
Forum: Hacks
In reply to: 3.5 Media uploader post paramsThanks for the reply. That is not what i am trying to do.
There are hooks like ‘pre-upload-ui’ and ‘post-upload-ui’ which i would like to use. For the old uploader i found something where you got a uploader object and could add post parameters. Now i would like to do similar with the new uploader.
Forum: Hacks
In reply to: PHP call to repeat posts annually?Not exactly sure what you have in mind. Write a plugin that automatically re-publish those posts? In a WP_Query there are query vars for day, month etc. which could be used in a hook like ‘pre_get_posts‘.
Here’s an example if you want to query all posts that have the same day and month as today:
<?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'day' => date('j'), // Current day 'monthnum' => date('n'), // Current month 'posts_per_page' => 25, // Number of posts to show ); $myQuery = new WP_Query( $args ); if ( $myQuery->have_posts() ) { while( $myQuery->have_posts() ) { $myQuery->the_post(); echo get_the_date() . '<br />'; // As example just output the date } } wp_reset_query(); wp_reset_postdata(); ?>If you want this to be automated, you could add a post meta information and provide a checkbox in a meta-box that marks this post to be repeated every year.
Forum: Fixing WordPress
In reply to: 'HTTP ERROR' when uploading imagesYou can enable WP_DEBUG and WP_DEBUG_LOG in your wp-config.php to log it to a file to get further informations. This kind of message can appear when there is an unexpected output happening to the http request, e.g. a plugin outputs an error message directly.
Forum: Hacks
In reply to: Change description for a Plugin requestJust wait till you have access to your plugin repository.
Forum: Hacks
In reply to: Code for htaccess to limit ADMIN by IP (but not subscribers)Code like this you have to add to your themes “functions.php” file. You can find that here: wp-content/themes/<MY-THEME>/functions.php.
Forum: Hacks
In reply to: Code for htaccess to limit ADMIN by IP (but not subscribers)I doubt you can do that with .htaccess. There is no direct relation between user roles and ip addresses. There is no separate login form for admins, which means there is no way to tell whether the current ip address will login as admin or as subscriber.
The only way i see you could do something like this is, let the user login and when you got the information about the role you can check for ip address and immediately logout the user if it does not match. You could try to hook into ‘authenticate’ filter and intercept the login procedure. You have to write a few lines of code for this (possible) solution.
Forum: Hacks
In reply to: Submit data into mysql database using wordpress?Hard to tell without more informations. Is $address really a decimal number? Do you get any error (hint: set WP_DEBUG to true)? Do you get an id via $wpdb->insert_id? Have you tried $wpdb->print_error()? …
Forum: Hacks
In reply to: possible to activate a theme through a plugin ?Though i haven’t tried something like that myself, there is a function called switch_theme().
When you hover your mouse in the Design/Themes menu on a activation link, you can see the two parameters passed to this function, namely ‘template’ and ‘stylesheet’.
You can have a look at the file wp-admin/themes.php where this function is being used.
Forum: Hacks
In reply to: Passphrase for registered users (not password)First part of your concerns can be automated. Always entering a passphrase can be indeed annoying.
Another way, while still keeping the original registration process, is to write a plugin providing a widget for logged in users where they can enter the current passphrase to unlock posts. You could store the state of this in a session or user meta and your plugin just filters the_content based on this information.
In this case you also have to write a (fairly simple) plugin.
Forum: Hacks
In reply to: Passphrase for registered users (not password)For me it looks like you want to restrict content and not registration.
To limit access to some content, you could use use something WordPress already provides instead messing with the login. You can password protect individual posts. If you want to change that on a regular basis you could write a plugin for that job.