Forum Replies Created

Viewing 15 replies - 1 through 15 (of 30 total)
  • Forum: Your WordPress
    In reply to: New Site

    You need a logo..

    You need to work on the layout. it’s not very inviting.. Also move the side bar to the right.. it feels more comfortable as the eye naturally reads left to right.. Content should be on the left unless it’s a shopping site like Amazon where the first draw is the departments.

    I could go on.. I’m in marketing so these things strike me right off the bat.

    Google, good website layout/ergonomics.

    Thread Starter kenrik

    (@kenrik)

    It works!

    If anyone is interested in a plugin.. here it is, like 6 lines of code and all uploads are served from S3.

    Just set a S3 bucket of media.yoursite.com and point a cname at amazonaws.com. put in your URL in the plugin, activate and you’re done.

    then you just need to keep your uploads folder in wordpress in sync with your uploads folder on S3.

    With something this simple even a cave man can do it..

    <?php
    /*
    Plugin Name: Rewrite
    Plugin URI: https://SudoWorks.com
    Description: Rewrites your image paths so that you can use a CDN.
    Version: 2.4
    Author: SudoWorks
    Author URI: https://SudoWorks.com/
    */
    
    function rewrite_url($rewrite)
    {
    $rewrite = str_replace('yoursite.com/wp-content/uploads/', 'media.yoursite.com/wp-content/uploads/', $rewrite);
    return $rewrite;
    }
    
    add_filter('wp_get_attachment_url', 'rewrite_url');
    
    ?>
    Forum: Hacks
    In reply to: Media submit hook?
    Thread Starter kenrik

    (@kenrik)

    Hmm… that does not seem to be working.

    Actually I was not clear enough..

    I need to call this bit of PHP when a file is uploaded, deleted or edited.

    $output = shell_exec(“bash ./upload.sh”); echo $output;

    I can’t seem to find the right code to execute this when any of the above happen. Examples and help would be greatly appreciated.

    Thanks.

    Forum: Fixing WordPress
    In reply to: .htaccess help.
    Thread Starter kenrik

    (@kenrik)

    It works!

    RewriteRule ^wp-content/uploads/(.*)$ https://media.groceryvine.com/wp-content/uploads/$1 [L,R=301]

    Now I’m serving all of my images from S3 rather than my server. All I have to do is setup a cron job to keep them and sync and I’m good to go.

    Thanks.

    Forum: Fixing WordPress
    In reply to: Editing Core files

    Make it a plugin, Why would you need to edit a core file? There are plugins out there that customize the back end without editing core files.

    Thread Starter kenrik

    (@kenrik)

    Well, basically anything I put in S3 is available at media.groceryvine.com because I pointed a cname @ S3.

    So If I have a file at “https://groceryvine.com/wp-content/uploads/file.jpg&#8221; and I upload the entire uploads folder to S3 then the same file will be at “https://media.groceryvine.com/wp-content/uploads/file.jpg&#8221;

    In theory all I have to do is add “media.” the front of any url that’s in “/wp-content/uploads” and it will pull the file from S3s massive network rather then my single?server.

    Then all I would have to do is poll my uploads folder for changes and it will automatically upload anything new. There will be a slight delay before the image goes live but I think it’s worth it for the benefits.

    I guess I’ll just try it out and see if it works as well in practice as it does in my head.

    Thanks, I’ll report back after I try my experiment.

    Thread Starter kenrik

    (@kenrik)

    I already checked out the plugins that are out there. I prefer not to rely on third parties to keep my site functional if WordPress gets updated and the plugin is not compatible I’m SOL. I’m tying the site into an iPhone App so I’m going to have traffic from every user of the App and I have no way to predict the traffic that will result so that’s a big reason for S3.

    Is there any reason that just using .htaccess to rewrite the path for the uploads folder would not work?

    Thread Starter kenrik

    (@kenrik)

    No, that’s the opposite.. I don’t want to bring content into my site.

    I want other bloggers to be able to take my content (with a credit and backlink) by giving them a embed code.

    kenrik

    (@kenrik)

    Can Someone please post a wordpress 3.1 multisite default .htaccess?

    My site will not generate a new one!

    kenrik

    (@kenrik)

    Sounds like it’s possible that some flavors of unix (including OSX) don’t play well with 3.1 and permalinks?

    We would need more input from people who have this problem as to what OS they are hosted on.

    As far as pretty permalinks go, most people don’t want their content dated and that’s why they use /%category/%postname%

    Due to that article I might add a number in there like “%time%” but nothing that the user can tell the date from. I don’t want my users to know when my content was posted and I don’t want them to know what CMS I use.

    kenrik

    (@kenrik)

    I was thinking about it and I wonder if it is a permission related issue. I have custom permissions on some of the folders (like 644 on wp-content) and maybe it did not upgrade cleanly even though it did not throw up any errors? When i get home from work i’ll manualy install the 3.1 update with stock permissions to see if that works.

    Php 5 is the only version of php i have on my server? Why would i need to define it?

    kenrik

    (@kenrik)

    Little bit of an update here. I tried 3.1 on my backup testing server (hosted by inmotion – Linux)

    permalinks work on that site with the same theme/plugins!

    Now I’m really confused! for some reason wordpress 3.1 does not like my OSX Server ??

    kenrik

    (@kenrik)

    Running OSX 10.6 Server here.. self hosting with Comcast Business and a Mac Mini Server.

    All permalinks except for “default” are borked.

    None of the fixes work. Everything worked perfect prior to the update.

    My theme is now broken on my network sub sites now too.

    This is not a production site.. (Yet) it’s in development but it still sucks to divert so much of my time to fixing things that were working perfect prior to the update.

    Thread Starter kenrik

    (@kenrik)

    Tried it… for some reason it did not regenerate the htaccess file. ?

    I don’t know why they had to go and break stuff in this new release ??

    BTW. It’s a dedicated server running OSX 10.6.

Viewing 15 replies - 1 through 15 (of 30 total)