Super, funktioniert :)
Ich habe jetzt allerdings noch ein Problem :roll:
Und zwar habe ich versucht, den 'Insert Image'-Button nicht rechts oben zu positionieren, sondern unterhalb der Quicktags. Eine Anleitung dafür lag in einer .txt-Datei dem Mod bei:
Better placement of the "insert image" button
1. set $ib_use_hack = TRUE;
2. Edit /wp-admin/quicktags.php, add the following line to the bottom of the code:
<?php do_action(’edit_form_advanced_buttons’, ‘’); ?>
OR
------------------------------
The placement is due to some limitations of the plugin API in WP 1.2/1.3.
If you want the button at a better place, you will have to do a simple
hack on the code (this is for 1.3.?):
* Make a backup of wp-admin/edit-form-advanced.php, so if you messed up
anything, you can always go back to the original version and start
over.
* Open wp-admin/edit-form-advanced.php with your preferred editor.
Search for 'the_quicktags'. It should look like:
...
<?php the_quicktags(); ?>
...
Add a new line to make it look like:
...
<?php the_quicktags(); ?>
<?php do_action('edit_form_advanced_buttons', ''); ?>
...
This will add a new hook to the plugin API. Save the file.
* Open wp-content/plugins/iimage-browser-plugin.php and set
$ib_use_hack = TRUE; (don't forget the semicolon).
* The button will now appear just below the quick tags.
Alles anzeigen
Ich habe mich dabei an den OR Teil gehalten, weil ich zwar eine quicktags.js Datei, nicht aber eine quicktags.php Datei habe.
Meine iimage-browser-plugin.php Datei sieht jetzt wie folgt aus:
<?php
// ====( configuration options )================================================
$ib_use_hack = TRUE; // If you don't want to do the hack, set this to FALSE
// For better placement of the button please set this to
// TRUE and read the instructions in the README.txt
// ====( STOP EDITING HERE )====================================================
Meine edit-form-advanced.php Datei sieht jetzt so aus:
Zitat
<fieldset id="postdiv">
<legend>"><?php _e('Post') ?></legend>
<?php the_quicktags(); ?>
<?php do_action('edit_form_advanced_buttons', ''); ?>
<?php
$rows = get_settings('default_post_edit_rows');
if (($rows < 3) || ($rows > 100)) {
$rows = 10;
}
?>
Alles anzeigen
Ist doch soweit richtig, oder?
Der 'Insert Image' Button verschwindet jetzt aber :(
Danke für Eure Hilfe :)