A major update of SWIFT to solve problems with thumbnail and file permissions

If you check the support forum and the comments on this blog, One question that’s asked again and again, One thing that most of the Swiftler’s have trouble with is thumbnails, which in turn is due to file permissions.

version5.1.0 solves the above problem by moving the cache folder and the custom-style.css to uploads/swift_custom folder with appropriate permissions. From now there are no post installation steps, just upload the theme activate.

Other new additions and changes to SWIFT are

  • Added an option to add your own search code in the navigation menu.
  • Reduced the font size of blockquote and post title.

According to reviewer at theme directory on WordPress, themes are not allowed to modify core tables. They don’t have any proper reason for such a restriction, I can’t understand why a theme shouldn’t alter wp tables when a plugin can do so. They wont accept SWIFT until I remove those two features,I’m forced to remove them :(.

I integrated My Page Order and My Category Order into the theme. If any of the two plugins are installed pages /categories in navigation menu will be ordered accordingly.

[download id="1"]

69 thoughts on “A major update of SWIFT to solve problems with thumbnail and file permissions

  1. Hello, We just launched http://www.newbernnow.com/NC/ and it looks great on mac and pc browsers… but on the ipad, the right-sidebar doesn’t fully display and crops the images. We need the side-bar not to be cropped when it is displayed on the ipad. Please help. Thanks!

  2. Is there any way to have the four small thumbnails under the main header to be centered? Whenever I upload a jpeg for a thumbnail, they are all off to the right. Any help would be appreciated.

    Thanks,
    Ryan

  3. [...] This post was mentioned on Twitter by Kathaleenwhd76, laurelgle12 afa123. laurelgle12 afa123 said: http://ping.fm/SkFKR Most human beings know that a terrible driving record can affect automobile insurance rates, however did you know that [...]

  4. Hey Guys,

    I’m having a complete other problem. When I look at my website from my home PC or iPad, it shows me the most recent posts from the homepage.

    But when I use other people their computers, Swift shows very old blogposts. (Samsung Galaxy is the newest, while I already published a whole lot more new posts)

    When people click the archive, they do see the newer posts…

    Can anyone help me out?

    Thanks in advance.

    Ow, the website is: http://www.gebrokenpennen.nl

    The Swift theme is awesome, but this is becoming quiet a problem for me since I’m recieving more and more visitors on my website (7000 a month)

  5. hello. I have problems with the thumbnails, it do not work.. what can id o? i see the “image” custom fiedl, i changed the permissions of cache etc…
     
    thanks a lot

  6. Hey Thumbnails doesnt Work On my Blog http://TechPaparazzi.com
    I am using Swift 5.25, Shared BlueHost Hosting,
     
    Some say its a host side problem, But they dont exactly what is the problem , Satish can you tell me….?

  7. Hey Thumbnails doesnt Work On my Blog http://TechPaparazzi.com
    I am using Swift 5.25, Shared BlueHost Hosting,
     
    Some say its a host side problem, But they dont exactly what is the problem , Satish can you tell me….?

  8. I don’t understand how to put my picture on the slide, please tell me how my friend, thanks.

  9. Still having thumbnail viewing problem even i’ve tried all different version including the latest 5.25. WordPress 2.9.2.
    http://www.latestmoviepreview.com/wp-content/uploads/swift_custom/timthumb.php?src=http://www.latestmoviepreview.com/wp-content/uploads/swift_custom/127.jpg&h=90&w=176&zc=1
    Any advice?

  10. Thanks for the nice themes, can anyone help me for the thumbnails at my homepage.
    this my blog http://www.idea-internet.com
    i used wordpress 2.9.1

  11. I just installed Swift on my new blog. Actually it’s an amazing theme, besides the thumbnail problem. Does the beta version fix the homepage thumbnail too?

  12. Helow satish,
    Great and nice themes, but i had a problem using your themes the swift Popular Post the title was double instead of once and the thumbnails not appearing..how to fix this bug..help….thank you

  13. I’ve found some errors and warnings when validating a blog. While it still doesn’t validade due to some bad-behaved plugins, I made a small list of things that if changed in Swift will cause its output to validate (provided the user isn’t running one of said plugins, of course):

    a) At /footer.php , there are two sets of this:

    <!–End of main-container started in header.php–>
    </div><!–/main-container–>

    What causes one extra </div> to be present in the page. Removing the second set worked.

    b) At /searchform-nav.php , a form cannot be included in a span:

    <span class=”nav-search”>
    <form …..>
    </form>
    </span>

    Changing it to a div solves this:

    <div class=”nav-search”>
    <form …..>
    </form>
    </div>

    c) At /admin/admin-header.php , the line

    <a href=”http://swiftthemes.com” target=”_blank”><img src=”<?php bloginfo(‘template_url’)?>/admin/images/swift-logo.png” /></a>

    Should be written thus:

    <a href=”http://swiftthemes.com” rel=”external”><img src=”<?php bloginfo(‘template_url’)?>/admin/images/swift-logo.png” alt=”” /></a>

    Well, not that target=”_blank” doesn’t work in XHTML Transitional, but rel=”external” is sooo much more configurable. :-)

    d) At /includes/featured-slider.php , the line:

    <img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_
    content());?>&h=130&w=250&zc=1″  class=”slide-thumbnail”>

    Should be written thus:

    <img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_
    content());?>&amp;h=130&amp;w=250&amp;zc=1″ alt=”” class=”slide-thumbnail” />

    e) At /includes/related-posts-n-author-info.php , the line:

    <a href=”http://twitter.com/home/?status=<?php the_title(); ?> : <?php echo get_tiny_url(get_permalink($post->ID)); ?>” title=”Tweet this!”><img src=”<?php bloginfo(‘template_url’)?>/images/icons/twitter.png”alt=”Tweet this!” /></a>

    Needs a space between ‘.png”‘ and ‘alt=”‘:

    <a href=”http://twitter.com/home/?status=<?php the_title(); ?> : <?php echo get_tiny_url(get_permalink($post->ID)); ?>” title=”Tweet this!”><img src=”<?php bloginfo(‘template_url’)?>/images/icons/twitter.png” alt=”Tweet this!” /></a>

    f) At /layouts/blog-loop.php , the line:

    <a href=”<?php the_permalink() ?>” rel=”bookmark”><img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_content());?>&h=90&w=176&zc=1″  class=”mag-thumb”></a>

    Should be written thus:

    <a href=”<?php the_permalink() ?>” rel=”bookmark”><img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_content());?>&amp;h=90&amp;w=176&amp;zc=1″ alt=”” class=”mag-thumb” /></a>

    g) At /layouts/mag-loop.php , the line:

    <img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_content());?>&h=90&w=176&zc=1″  class=”mag-thumb”>

    Should be written thus:

    <img src=”<?php echo U_URL.’/swift_custom’;?>/timthumb.php?src=<?php echo thumb(get_the_ID(),get_the_content());?>&amp;h=90&amp;w=176&amp;zc=1″ alt=”” class=”mag-thumb” />

    h) At /widgets/widgets.php , the line:

    <img src=”http://feeds.feedburner.com/~fc/<?php echo $feedId ?>?bg=<?php echo get_option(‘swift_chicklet_bg’);?>&fg=<?php echo get_option(‘swift_chicklet’);?>&anim=0″ class=”alignright” style=”margin:.3em 0 .2em 0″/></a>

    Should be written thus:

    <img src=”http://feeds.feedburner.com/~fc/<?php echo $feedId ?>?bg=<?php echo get_option(‘swift_chicklet_bg’);?>&amp;fg=<?php echo get_option(‘swift_chicklet’);?>&amp;anim=0″ class=”alignright” style=”margin:.3em 0 .2em 0″ alt=”Feedburner counter” /></a>

    i) At /widgets/widget-functions.php , the line:

    <a href=”<?php echo get_option(‘swift_banner2destination’);?>” ><img src=”<?php echo get_option(‘swift_banner2image’); ?>” class=”banner125″/></a>

    Should have a space between ‘”banner124″‘ and ‘/>’:

    <a href=”<?php echo get_option(‘swift_banner2destination’);?>” ><img src=”<?php echo get_option(‘swift_banner2image’); ?>” class=”banner125″ /></a>

    I hope this helps!

    • Seriously, how do you get so deep in to the code?
      “a” was taken care long back, I corrected the rest of the things.
      “C” I dont really care about the back end, but now that you have mentioned I corrected that to.

      Thanks for the help :)

      • You’re welcome. :-)
        But that’s not getting deep into the code. In fact I know almost nothing of PHP. What I do know how to use somewhat is the Unix shell. It makes finding things like this quite easy. It’s just a matter of validating the site on validator.w3.org, seeing what it complains about, typing this:
        $ grep -R –include=\*.php “what-the-validator-complained-about” ./wp-content/themes/swift-v5.15 >> ~/results.txt
        And then doing some copying and pasting.
        Besides, I also have a somewhat compulsive-obsessive side. ;-)

  14. A small problem I noticed: I’ve tried adding a header line using the General Options -> General -> Header Scripts field, but it didn’t work, its contents wasn’t being pasted into generated pages. I worked around this by installing the General Headers & Footers plugin and using it instead, but I’d pretty much prefer using Swift’s own feature instead. :-)

  15. Dear Satish,
    I just upgraded my old version of Swift to the new version of swift 5.1.3
    And still everything goes blank.
    And i cant get the old version 4.2.1 back.
    So now i cant use swift as a theme anymore.
    I have also tried to install it as a second theme.
    Could you please help me get an older version of Swift our help me so i can use the new version of Swift?

  16. I have have a cache folder or custom-style.css in my uploads/swift_custom folder. The custom-style.css file is found under “includes”, but can’t find the cache folder at all. I’m using the newest release (5.1.3?).

  17. I was getting a blank page in Firefox, it would show the page, then white out.
    Fixed by disabeling the featured post slider, no  problems in Chrome,
    A lot of users couldn’t access my page, but I would like to fix it again.
    I tried to go back to old theme, but that didn’t work either!
    Can you look at it some time on http://green.cx?
    It works right now because I disabled the featured post slider….

    • Even i noticed that on your blog before, Forgot to inform you.
      There was a redirection script on your blog, some malicious plugin might have added that or you should have added that to any of your post unknowingly.

  18. Dear Satish,
    Thanks for your great theme.
    Ik tried to upgrade the theme to 5.1.2 and everything goes blank.
    My whole website including my backend is white.
    Do you have any idea how to solve this?

  19. After installing the latest version my thumpnails are no longer showing. V5.0 shows my thumpnails but this new version completly screws it up…How do I fix this?

    • Deactivate and then activate the theme.

      • I’ve noticed that pressing Ctrl-F5 (forced reload) on a page where thumbnails are missing causes them to appear. Well, at least on the hosting provider I use, which employs a lot of behind-the-scenes caching. I dunno whether this also works elsewhere.

      • I did that and still nothing, it’s not showing any thumbnails…the other versions show my thumbnails except versions 5.01 and 5.02…Something is really wrong in this new versions…what can it be?

        • deactivate the theme and activate it again.

        • or copy swift/includes/timthumb.php to wp-content/uploads/swift_custom/timthumb.php

          • Swift 5.01 has duplicate copies, one in /includes/timthump.php and another in uploads/swift_custom/timthumb.php
            I deleted the copy in includes/timthumb.php and left the one in the uploads folder and it still didn’t change anything

            • is /wp-content/uploads/swift_custom/cache wriatble??

              • Yes, infact I just changed the permission to 777. Still no difference.

              • This is what I am seeing after transfering the timthumb.php from the swift folder to the uploads folder
                Warning: fopen(/home/celenco/public_html/headphonescity.com/wp-content/themes/swift-v5.1.2/includes/timthumb.php) [function.fopen]: failed to open stream: No such file or directory in /home/celenco/public_html/headphonescity.com/wp-content/themes/swift-v5.1.2/admin/admin-core.php on line 84

                Warning: filesize() [function.filesize]: stat failed for /home/celenco/public_html/headphonescity.com/wp-content/themes/swift-v5.1.2/includes/timthumb.php in/home/celenco/public_html/headphonescity.com/wp-content/themes/swift-v5.1.2/admin/admin-core.php on line 85

                Warning: fread(): supplied argument is not a valid stream resource in /home/celenco/public_html/headphonescity.com/wp-content/themes/swift-v5.1.2/admin/admin-core.php on line 85

              • I even just re-installed the theme…There is no change.

                • Got it fixed, had to call my hosting company and they had to run a script which fixed all the permissions in the site, the problem is, because it was a script, I still don’t know what folder held it from showing

                  • Can you ask you hosting company what caused the problem?
                    That will help other swiftler’s

                    • The permission of some files were not right. They had to change some of the folder’s permissions and some of the files too…Then I had go back and individually delete the old custom fields of each of my articles, thereby forcing swift to find the create a new path to the thumbnails. The path of the old swift theme is different from this one. So 5.1.2 cannot find the location and deactivating and reactivating could not force it to. I had to manually do it. Hope that helps.

  20. A request: I’d like to have options under “Home Page & Archive’s” to enable/disable showing recent posts, similar and in addition to the featured posts ones (let’s say, “ENABLE recent posts on homepage”, “Number of Recent posts”), so that the Swift theme could be fine tuned for a more typical time-oriented blog as much as it is for popularity-oriented ones.
    By the way: in 5.0 the home page showed recent posts on the home page, while on 5.1.2 it doesn’t. Well, actually I’m not sure it did, but I have a new blog with no comments, meaning everything has popularity zero, and posts showed in there, as if they were popular. Was showing recent/popularity-0 posts on the home page a bug of 5.0, or is it not showing them a bug on 5.1.2?
    In any case, the above suggested options would make that blog’s home page way more populated with content (and predictably so), as right now it’s only showing the slider. :-)

  21. 2 questions- how do I get the footer to span 1 row across the bottom and not in 4 separate footer chunks?   
    And- how do I get the new option mentioned for changing font size in post titles?

  22. Same problem here

  23. this is the error/public_html/wp-content/themes/swift-v5.1.1/admin/admin-core.php on line 93

  24. i got error when i was update this theme

Leave a Reply

Your email address will not be published. Required fields are marked *