coldpumpkin
Forum Replies Created
-
Forum: Plugins
In reply to: [AdRotate Banner Manager] "Select Banner" button is not workingI’m not receiving any errors other than this
Use of getUserData() or setUserData() is deprecated. Use WeakMap or element.dataset instead.Forum: Plugins
In reply to: [AdRotate Banner Manager] "Select Banner" button is not workingHello there and thanks for your answer.
I installed a fresh new WordPress and the plugin aswell, the issue persists.
Tried Chrome aswell and nothing.
May I ask what were the solutions to the other people?
Thanks again.
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonIt’s ok, I’m sorry too, I just thought you didn’t notice my reply.
That works like a charm and I can’t thank you enough 🙂 This nooblet cheers you!
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonnickohm you still there?
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonI know it can be used for usability purposes but for now I’ll exclude it. The href and the src are supposed to be the same, yes.
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonAlright 🙂 What I want is:
<a href="link" class="fancybox-img"><img src="link"></a>Simple as that 😀
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonThat’s nice! What about the
<a>tag? How can I change it? 🙂 Sorry.Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonI don’t really know much of PHP, I just work along with what I have.
I’m sure that what you said makes sense, however I have no clue how to make it work.
Let’s say the current tag being sent to the editor is
<a href="link"><img src="link"></a>and I want to change it to<p>miaumiau you can't insert images</p>How exactly would the function be? Like I said, from your code I understood I could change the
$contenthowever I wanted, but that just adds content to the end. How can I change the whole?Basically from the core files we have this:
107 function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') { 108 109 $html = get_image_tag($id, $alt, '', $align, $size); 110 111 $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : ''; 112 113 if ( $url ) 114 $html = '<a href="' . esc_attr($url) . "\"$rel>$html</a>"; 115 116 $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt ); 117 118 return $html;228 function get_image_tag($id, $alt, $title, $align, $size='medium') { 229 230 list( $img_src, $width, $height ) = image_downsize($id, $size); 231 $hwstring = image_hwstring($width, $height); 232 233 $title = $title ? 'title="' . esc_attr( $title ) . '" ' : ''; 234 235 $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id; 236 $class = apply_filters('get_image_tag_class', $class, $id, $align, $size); 237 238 $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" ' . $title . $hwstring . 'class="' . $class . '" />'; 239 240 $html = apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size ); 241 242 return $html; 243 }And I know how to change it accordingly to how I want, because the content is there.
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonHello there nickohm.
That’s good to hear and that’s exactly the problem – whenever WordPress updates, it resets to default.
I tried inserting that code in the functions file and it indeed adds the
<p>Unicorns are awesome</p>to the end of the tags. However, it adds to the end, instead of replacing everything.Is there a way to rewrite/replace the text coming out?
Forum: Fixing WordPress
In reply to: Can't update via admin panel, FTP connection failedSeems like it was a server-side error.
Forum: Hacks
In reply to: Change generated HTML code from "Add Media" buttonI’d like to bump in this thread because I wonder if there’s another solution that doesn’t include hacking the original WordPress files. Can it be done through the theme’s functions.php?
Thanks.
Forum: Fixing WordPress
In reply to: How to fetch post image medium size urlViamultimedia: That worked! Thanks very much 🙂
Forum: Fixing WordPress
In reply to: How to fetch post image medium size urlHi greyparrots,
I think everything’s alright with the settings. Here: http://s12.postimg.org/5nn2amfel/screen.jpg
Forum: Fixing WordPress
In reply to: How to fetch post image medium size urlHi Viamultimedia.
I appreciate your try to help but that doesn’t work. I know it says “thumbnail” but it doesn’t even echo the thumbnail URL, it echoes the normal size URL.
Changing it to medium or large or full doesn’t change anything.
Forum: Fixing WordPress
In reply to: Problems accessing Login / Admin pageNotice that copying the folders from FTP doesn’t save the websites’ contents! You need to do that via phpmyadmin.