WP Rich Editor

My last post is about some simple coding; no matter how simple it is, I can’t display the right code exactly as I want, after trying some WP plugins for this. But this great article at thunderguy.com explain some of the problems with WP Rich Editor. Even better, the author showed me how to disable the rich editor (truely, I did not know how to disable it before).

Lets have another try here. I still want to exhibit the simple code from my last post (and want to edit it in the future if necessary - that’s what rich editor incapable of);

First, the index.php for random images folder:


<?php
header("content-type: image/gif\ncache-control: no-store\n");

$dh = opendir(".");
$contains = array();

while ($content = readdir($dh)) {
if (ereg('.gif',$content)) {
array_push($contains,$content);
}
}
srand((double)microtime()*1000000);
$which = rand() % (count($contains)-1);

$fh = fopen("$contains[$which]","r");

$data = fread($fh,250000);
print ($data)
?>

Second, the HTML code;


<table>
<tr>
<td><img src="http://yourdomain.com/icons/"></td>
<td>Your Google Code Here</td>
</tr>
</table>

Posted September 18th, 2006 by mightyhitter under Google Adsense, Wordpress

 

No Responses to “WP Rich Editor”

  1. Adsense Planet » WP Rich Editor Says:

    […] Original post by mightyhitter.com. To read the full article visit: mightyhitter.com […]

Leave a Reply