tinyMCE vs PHP
Since upgrading my Wordpress to 2.0.whatever I’ve found some very useful tools and some very, very annoying limitations.
tinyMCE, for example, is a WYSIWYG ( What you see is what you get ) text editor that comes bundled with WordPress. WYSIWYG literally means that what you type into the textbox is what you’ll see on your page when you hit submit. All the formatting is done with a press of the button rather than manually typing in the code.
This saves time, but for me the most useful part of it is that it links with the WPG2 plugin, a plugin that lets you interface with your Gallery2 gallery from within a blog post. So easy thumbnails and links to specific galleries and all that.
Unfortunately, the system currently has no command to tell it to switch off its automatic formatting, so if you try to enter some custom code of your own, it breaks it up however it feels, puts spaces where it wants, and generally fucks it up.
I like putting in my own code.
So now, if I want to have thumbnails and my own code ( say, the code at the bottom of these posts with all the numbers ) I have to first switch the tinyMCE editor on, add the thumbnails, save the post as a draft, switch the tinyMCE editor off, insert the PHP code, publish the post.
Still, faster than manually typing in;
<a href=”linkylinky”><img src=”sourcysourcy” alt=”textytexty”></a>
I just wanna whine about something ‘coz I have a bit of a cold…
echo c2c_get_custom(’percentage_remaining_p’, ‘p: ‘,’%‘);
echo “ - “;
echo c2c_get_custom(’lost_week_l’, ‘l: ‘,’‘);
echo “ - “;
echo c2c_get_custom(’expected_loss_el’, ‘el: ‘,’‘);
echo “ - “;
echo c2c_get_custom(’target_t’, ‘t: ‘,’‘);
echo “ - “;
echo c2c_get_custom(’gym_attendance_g’, ‘g: ‘,’‘);
echo “ - “;
echo c2c_get_custom(’gym_distance_gd’, ‘gd: ‘,’‘);
?]




