white04004
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Alpha/Beta/RC
In reply to: 3.5 Beta 3 – Access ForbiddenI’ve installed RC 1. And I’m facing the same problem. I can’t access the dashboard of the new site I created. It gives me 403 Access forbidden.
I used the code by macgamer
// return photon server to use based on url function static_counter( $url ) { srand( crc32( basename( $url ) ) ); $static_counter = rand( 0, 2 ); srand(); // this resets everything that relies on this, like array_rand() and shuffle() return $static_counter; } // fetch photon equivalent url function photon_url($url) { if (strpos($url,'http://') !== false) { $url=str_replace('http://','',$url); } return "http://i".static_counter($url).".wp.com/".$url; }and I replaced the_post_thumbnail(); with
$featured_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID)); // get thumbnail image url $photon_featured_image = photon_url($featured_image[0]); echo "<img src='".$photon_featured_image."' class='wp-post-image'> ";Thanks
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataHi,
I’d like to know the reason to use unserialize function in my code.
Viewing 4 replies - 1 through 4 (of 4 total)