Title: Sam's Replies | WordPress.org

---

# Sam

  [  ](https://wordpress.org/support/users/thinkink/)

 *   [Profile](https://wordpress.org/support/users/thinkink/)
 *   [Topics Started](https://wordpress.org/support/users/thinkink/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thinkink/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thinkink/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thinkink/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thinkink/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thinkink/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Integration with facebook and twitter creates wrong links](https://wordpress.org/support/topic/integration-with-facebook-and-twitter-creates-wrong-links-1/)
 *  [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/integration-with-facebook-and-twitter-creates-wrong-links-1/#post-4031480)
 * Yup – Jetpack adds /?fb_source=pubv1 to the end of facebook urls. Have disconnected/
   reconnected, deleted jetpack/re-installed jetpack. Still same problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Convert Post Types] Tag to Format conversion wiped out database.](https://wordpress.org/support/topic/tag-to-format-conversion-wiped-out-database/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/tag-to-format-conversion-wiped-out-database/#post-4011499)
 * No worries, alls well that ends well. And it was just my personal blog, not a
   clients!
 * Thanks for the link.
 * cheers,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Convert Post Types] Tag to Format conversion wiped out database.](https://wordpress.org/support/topic/tag-to-format-conversion-wiped-out-database/)
 *  Thread Starter [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/tag-to-format-conversion-wiped-out-database/#post-4011497)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tools for Twitter] [Plugin: Twitter Tools] Not creating posts from tweets.](https://wordpress.org/support/topic/plugin-twitter-tools-not-creating-posts-from-tweets/)
 *  [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-twitter-tools-not-creating-posts-from-tweets/#post-2671023)
 * 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?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random background image](https://wordpress.org/support/topic/random-background-image-2/)
 *  [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/random-background-image-2/#post-741688)
 * 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,
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Random background image](https://wordpress.org/support/topic/random-background-image-2/)
 *  [Sam](https://wordpress.org/support/users/thinkink/)
 * (@thinkink)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/random-background-image-2/#post-741686)
 * 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)