Forum Replies Created

Viewing 15 replies - 16 through 30 (of 54 total)
  • Thread Starter webmaestro

    (@webmaestro)

    Whoop! Deleted a double-post.

    Thread Starter webmaestro

    (@webmaestro)

    Good… I really like the idea of adding a hook giving a heads up when the slug is changed.

    Another potential location for help here is adding some help on the Permalink page. Even better, adding some logic to the permalink page that *optionally* and automagically creates the redirects when the permalink is changed.

    I would think that these types of redirects *shouldn’t* be changed (did I just should on someone here? ;-).

    You could expose the ability to export a list of 301 redirects (for Quick Redirect import) that would be useful if a permalink change is made. I don’t recall how to get ‘all’ of the URLs available, but I imagine it’s available w minimal effort?

    So the /wp-admin/options-permalink.php would look like this:

    Common Settings

    (  ) Default	https://domain.com/?p=123   [Output redirects CSV for this]
    (  )  Day and name	https://domain.com/2015/09/18/sample-post/   [Output redirects CSV for this]
    (o)  Month and name	https://domain.com/2015/09/sample-post/   [Output redirects CSV for this]
    (  )  Numeric	https://domain.com/archives/123   [Output redirects CSV for this]
    (  )  Post name	https://domain.com/sample-post/   [Output redirects CSV for this]
    (  )  Custom Structure	https://domain.com/%year%/%monthnum%/%postname%/     [Output redirects CSV for this]

    (NOTE: Custom Structure would be dynamic based on the structure in the <input .. /> ??

    Thread Starter webmaestro

    (@webmaestro)

    Thanks for the speedy reply.

    You might want to mention an FAQ or in the ‘Help’ that trailing slash should be added?

    Thanks for a great plugin!

    Web Maestro Clay

    Thread Starter webmaestro

    (@webmaestro)

    I ended up adding a HACK:

    <script>
    jQuery(“dt:contains(‘Shipping’)”).hide();
    jQuery(“dt:contains(‘Shipping’)”).next().hide();
    jQuery(“dt:contains(‘Sku’)”).hide();
    jQuery(“dt:contains(‘Sku’)”).next().hide();
    jQuery(“dt:contains(‘Description’)”).hide();
    jQuery(“dt:contains(‘Description’)”).next().hide();
    </script>

    That said, I’d love to see an option to HIDE the following eShop elements:

    • SKU (BONUS: autohide if empty)
    • Description (BONUS: autohide if empty)
    • Shipping

    Here is another request for this.

    I’m adding yours plugin for a restaurant, and I’ve got the Hotels near by as placemarks.

    But I want to show my restaurant open.

    The Codex has a page on editing the wp-config.php file, which includes a section called Disabling Post Revisions by adding this:

    define('WP_POST_REVISIONS', false );
    Thread Starter webmaestro

    (@webmaestro)

    D’oh! It went in the wrong forum. I could of sworn I selected Plugins and Hacks… argh! Sorry…

    Thread Starter webmaestro

    (@webmaestro)

    I should read the documentation more… It looks like I need to figure out a combination of the add_action and do_action functions… Will report back when I’ve got it working…

    Thread Starter webmaestro

    (@webmaestro)

    BTW, I need to be able to pass the randomly generated div id ($rssfeedme_rand = 'rssfeedme_'.rand(0, 999999);), because I may have more than one. Also, I suspect doing a global $rssfeedme_rand; won’t work, because I may not reliably get the unique values…

    Yeah, I had/have the same issue, and deactivating Akismet ‘fixed’ the problem. After making my change, I re-enabled Akismet and all seems good again.

    I’d like to ‘vote’ for adding a checkbox to insert the Bad Behavior fix, if it’s not too egregious:

    Edit the wp-content/plugins/wp-cache/wp-cache-phase1.php or wp-content/plugins/wp-super-cache/wp-cache-phase1.php file and find the following two lines at around line 34 (line 56 in WP Super Cache):

    if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )
        return;

    Immediately after this, insert the following line:

    require_once( ABSPATH . 'wp-content/plugins/bad-behavior/bad-behavior-generic.php');

    I suspect putting in a cache_action so other plugin writers can write their own plugins to get around the cache would be more elegant as well. However, it might make sense to do both (although it’d likely require some extra code to ensure folks don’t somehow activate both measures).

    Thread Starter webmaestro

    (@webmaestro)

    OK… I was hoping that you could hide the WP-Widget cache options in the widgets themselves, for non Admin (or in the case of WordPressMU non-Site Admin) users… That way, the Admin/Site Admin could set the caching options, and not worry about lower-level users monkeying around with the settings (‘helping’). ??

    Thread Starter webmaestro

    (@webmaestro)

    I would prefer not to add/modify code, for plugins and CORE components I use where possible. More preferable (for me at least) is to have the code updated so my edits won’t have to be re-merged for each release.

    Thread Starter webmaestro

    (@webmaestro)

    Sorry… My question wasn’t clear:

    Does WP Widget Cache behave differently depending on the User Level? For example, does it ‘hide’ options for Editor or Author, that it displays for Administrator?

    Thread Starter webmaestro

    (@webmaestro)

    You could also do what I’ve done (of course you should use WordPress-specific configuration instead of the WordPressMU stuff I have), and configure WP Super Cache using the virtual CONF files (the initial purpose of this thread…).

    Following is the end result of my Virtual/vhost httpd CONF file. I’d be grateful for additional tips on improving my httpd CONF file… Here’s my permalink: /%year%/%monthnum%/%day%/%postname%/%post_id%/

    <VirtualHost *>
      ServerName www.mydomain.com
      ServerAlias mydomain.com
      ServerAdmin [email protected]
      DocumentRoot /path/to/wordpress-mu-X.Y.Z/
    
      LogLevel warn
      #OLD SCHOOL: Simple Logging
      #ErrorLog /path/to/apache/logs/my_error_log
      #CustomLog /path/to/apache/logs/my_access_log combined
    
      #NEW HOTNESS: Rotate Logs
      ErrorLog "|/path/to/apache/bin/rotatelogs /path/to/apache/logs/my_error_log.%Y%m%d 86400"
      CustomLog "|/path/to/apache/bin/rotatelogs /path/to/apache/logs/my_access_log.%Y%m%d 86400" combined
    
      #RewriteLog /path/to/apache/logs/my_rewrite.log
      #RewriteLogLevel 0
    
      <Directory "/path/to/wordpress-mu-X.Y.Z">
        #DISALLOW/IGNORE .htaccess files
        AllowOverride None
    
        Order Deny,Allow
        Allow from all
    
        FileETag INode MTime Size
        #ExpiresActive On
        #ExpiresDefault "modification plus 30 minutes"
        #<FilesMatch "\\.(html|htm|php|jpg|gif|txt)$">
        #Header set Cache-Control "max-age=1h, only-if-cached"
        #</FilesMatch>  
    
        RewriteEngine On
        RewriteBase /
    
        # BEGIN WPSuperCache
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} !.*=.*
        RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
        RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
    
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} !.*=.*
        RewriteCond %{QUERY_STRING} !.*attachment_id=.*
        RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
        RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
        RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
        # END WPSuperCache
    
        #uploaded files
        RewriteRule ^(.*/)?files/$ index.php [L]
        RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
        RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    
        # add a trailing slash to /wp-admin
        RewriteCond %{REQUEST_URI} ^.*/wp-admin$
        RewriteRule ^(.+)$ $1/ [R=301,L]
    
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule . - [L]
        RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
        RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
        RewriteRule . index.php [L]
    
        #RewriteCond %{REQUEST_FILENAME} !-f
        #RewriteCond %{REQUEST_FILENAME} !-d
        #RewriteRule . /index.php [L]
    
        #<IfModule mod_security.c>
        #       <Files async-upload.php>
        #         SecFilterEngine Off
        #         SecFilterScanPOST Off
        #       </Files>
        #</IfModule>
      </Directory>
    
      # BEGIN supercache
      <Directory "/path/to/wordpress-mu-X.Y.Z/wp-content/cache">
        <IfModule mod_mime.c>
          AddEncoding gzip .gz
          AddType text/html .gz
        </IfModule>
        <IfModule mod_deflate.c>
          SetEnvIfNoCase Request_URI \.gz$ no-gzip
        </IfModule>
        <IfModule mod_headers.c>
          Header set Cache-Control 'max-age=300, must-revalidate'
        </IfModule>
        <IfModule mod_expires.c>
          ExpiresActive On
          ExpiresByType text/html A300
        </IfModule>
      </Directory>
      # END supercache
    
    </VirtualHost>

    IMPORTANT:
    If you’re using WordPressMU, you’ll want to compare your CONF entries with the trunk/htaccess.dist file for each release.

Viewing 15 replies - 16 through 30 (of 54 total)