sillyname
Forum Replies Created
-
Great explanation, thank you.
That explains why a simple search and replace fails and destroys the widget. Unfortunately if you are using say 50 of these widgets, all of them with different file names, then you have 50 different string lengths.
May as well click the save button (once) on each widget, 50 clicks and you’re done. To change the string values you must count (manually I assume) each instance, then change the value on each image url string.
Unless, you have a code snippet that will count the array string and correct the the values automatically. I’d be very interested in that (respectfully), as I have much more than 50.
Again thanks for the time and explanation.
Forum: Plugins
In reply to: [Image Widget] [Plugin: Image Widget] Relative pathsThanks for the workaround, tried it but I failed.
Could you tell me exactly where you are putting your code, thanks.<?php echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } if ( !empty( $image ) ) { if ( $link ) { echo '<a class="'.$this->widget_options['classname'].'-image-link" href="'.$link.'" target="'.$linktarget.'">'; } if ( $imageurl ) { echo "<img src=\"{$imageurl}\" style=\""; if ( !empty( $width ) && is_numeric( $width ) ) { echo "max-width: {$width}px;"; }
Are you inserting it in the curly before
echo "<img src=\"{$imageurl}\" style=\"";
Or does anyone else have a solution?
Thanks Marcus, I’m not too familiar with this pluggin.
Is there a way of accomplishing this using the extensive tools this plugging supplies? Or would this best be handle using some PHP scripting?