Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yup – Jetpack adds /?fb_source=pubv1 to the end of facebook urls. Have disconnected/reconnected, deleted jetpack/re-installed jetpack. Still same problem.

    Thread Starter Sam

    (@thinkink)

    No worries, alls well that ends well. And it was just my personal blog, not a clients!

    Thanks for the link.

    cheers,

    Thread Starter Sam

    (@thinkink)

    Well yes, I fixed it by going to PHP MyAdmin.

    The post_type column in mysql was showing ‘-1’?
    So I googled sql commands and finally managed a find/replace on the database:
    update wp_posts set post_type = replace(post_type,'-1','post');
    which changed -1 back to post.

    Got everything back. Was scary for a bit, but worked out in the end.

    Anyway I had wanted to convert posts tagged ‘Video’ to become post-format ‘video’) – but after this error, I never figured out how to use the plugin anyway.

    Hi…my WP and plugins all at latest versions, and Twitter Tools has suddenly stopped creating posts from Tweets.

    I didn’t notice until now, but my last tweet made into a post was from 3 weeks ago – 14 Jun…

    So, it was working fine, and now its suddenly not working – maybe a WP incompatibility?

    Hi t31os,

    As a WordPress novice, my php knowledge is quite zero. I use what works most easily, and this does the job pretty much all of the time.

    Working with just 4 images, i did notice the randomness was not even across all 4 images, as you say.

    However, i expect with more images, as i add them, it will even out. Also, this amount of randomness is ‘ok’ given the site requirement.

    Its not mathematically exact, but its essentially functional.
    Given its ease of use, which is most important, I can live with it.

    A better, perfect solution is always welcome, of course. Where would the rest of us be if others like you did’nt get deep into the details, and show the way.

    cheers,

    Here is a dramatically simple, astonishingly clean solution to pretty much every issue mentioned on this page.
    There is no need for wordpress functions, arrays, complicated code editing, rotator.php files or ANYTHING. It also avoids having to manually <shift>+”Refresh” to load a new background image.

    Here it is – to use, simply put the div ID and image folder paths for your site inside this:….

    <div id="anyID" style="background:url(/yourimagefolderpath/<?= "img".rand(0,50).".jpg"; ?>) no-repeat left top;"> Your site text or other content </div>

    0,50 in the code only means it will show up from img0 to img50.jpg at random, in the final url produced by the php snippet. if you have only 5 image files, replace 0,50 with 0,4

    (Also, i think If you dont want ‘img’ as a prefix, just leave it empty. It should work.)

    It works beautifully – This is free of any page-caching issues, since the url changes each time the page is called, and the page is reloaded since it has changed since the last time.The more images you have, the more ‘random’ it is.

    I found this great solution by a google search for ‘random css background’, on the ‘page 2 results’ ?? . Am sharing it here in case anyone finds it useful, and this thread can be hopefuly closed.

Viewing 6 replies - 1 through 6 (of 6 total)