Forum Replies Created

Viewing 15 replies - 46 through 60 (of 70 total)
  • Thread Starter Alyson

    (@rn2web)

    Forum: Plugins
    In reply to: Search registered Users
    Thread Starter Alyson

    (@rn2web)

    up

    someone could make a fix for this problem?

    A member try somethinq, but no have sucess
    http://www.alakhnor.com/post-thumb/bbpress/topic.php?id=109

    Thread Starter Alyson

    (@rn2web)

    my final code:

    <?php
    
    function ms_attachment_fields_to_edit($form_fields, $post) {
        if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
    
    	// align: (radio)
    	$form_fields['align']['value'] = 'aligncenter';
    	$form_fields['align']['input'] = 'hidden';
    
    	// image-size: (radio)
    	$form_fields['image-size']['value'] = 'thumbnail';
    	$form_fields['image-size']['input'] = 'hidden';
    
    	// Caption: (radio)
    	$form_fields['image-caption']['value'] = 'caption';
    	$form_fields['image-caption']['input'] = 'hidden';
    
        }
        return $form_fields;
    }
    add_filter('attachment_fields_to_edit', 'ms_attachment_fields_to_edit', 11, 2);
    
    ?>

    πŸ™‚

    Thread Starter Alyson

    (@rn2web)

    my final code:

    <?php
    
    function ms_attachment_fields_to_edit($form_fields, $post) {
        if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
    
    	// align: (radio)
    	$form_fields['align']['value'] = 'aligncenter';
    	$form_fields['align']['input'] = 'hidden';
    
    	// image-size: (radio)
    	$form_fields['image-size']['value'] = 'thumbnail';
    	$form_fields['image-size']['input'] = 'hidden';
    
    	// Caption: (radio)
    	$form_fields['image-caption']['value'] = 'caption';
    	$form_fields['image-caption']['input'] = 'hidden';
    
        }
        return $form_fields;
    }
    add_filter('attachment_fields_to_edit', 'ms_attachment_fields_to_edit', 11, 2);
    
    ?>

    πŸ™‚

    Thread Starter Alyson

    (@rn2web)

    WOW!

    i got it!!!!!!

    thanks a lot!

    I put your code in my wp-admin/includes/media.php
    In first line and all right now!

    Thread Starter Alyson

    (@rn2web)

    πŸ™

    Thread Starter Alyson

    (@rn2web)

    i found somethinq in wp-includes/js/tinymce/langs/wp-langs.php

    I try remove:

    contextmenu:{
    align:"' . mce_escape( __('Alignment') ) . '",
    left:"' . mce_escape( __('Left') ) . '",
    center:"' . mce_escape( __('Center') ) . '",
    right:"' . mce_escape( __('Right') ) . '",
    full:"' . mce_escape( __('Full') ) . '"
    },
    size:"' . mce_escape( __('Size') ) . '",

    Nothinq happen…

    Copying the code to html editor i get:

    <table cellspacing="0" cellpadding="0">
      <tr>
        <th scope="row" valign="top"><label for="attachments[11][align]">Alinhamento <br />
        </label></th>
        <td><input name="attachments[11][align]" id="image-align-none-11" value="none" checked="checked" type="radio">
            <label for="image-align-none-11">Nenhuma</label>
            <input name="attachments[11][align]" id="image-align-left-11" value="left" type="radio">
            <label for="image-align-left-11">Esquerda</label>
            <input name="attachments[11][align]" id="image-align-center-11" value="center" type="radio">
            <label for="image-align-center-11">Centro</label>
            <input name="attachments[11][align]" id="image-align-right-11" value="right" type="radio">
            <label for="image-align-right-11">Direita</label>
        </td>
      </tr>
      <tr>
        <th scope="row" valign="top"><label for="attachments[11][image-size]">Tamanho <br />
        </label></th>
        <td><input name="attachments[11][image-size]" id="image-size-thumb-11" value="thumbnail" type="radio">
            <label for="image-size-thumb-11">Miniatura</label>
            <input name="attachments[11][image-size]" id="image-size-medium-11" value="medium" checked="checked" type="radio">
            <label for="image-size-medium-11">MΓ©dio</label>
            <input name="attachments[11][image-size]" id="image-size-full-11" value="full" type="radio">
            <label for="image-size-full-11">Tamanho original</label></td>
      </tr>
    </table>
    Thread Starter Alyson

    (@rn2web)

    I thank you so much for your help michael, but not working for me, a lot of erros and conflict with outhers modifications πŸ™

    You do not know where these menus in php files?

    align

    show

    http://img165.imageshack.us/img165/7515/menusfu9.jpg

    I am search in all wp-admin files and nothinq πŸ™
    Yes, hack this menu is only way to me πŸ™

    obs: this language is portuguese
    miniatura = thunbnail
    tamanho original = full size

    we need update or fix =|

    Thread Starter Alyson

    (@rn2web)

    I am confused, look like is my themes functions.php

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebars(2, array(
            'before_widget' => '<div id="%1$s" class="sb-bot"><div class="sb-top"><div class="sb-right"><div class="sb-left"><div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">',
            'after_widget' => '</div></div></div></div></div></div></div></div>',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
    ?>
    <?php function widget_search() {
    ?><?php
    }
    if ( function_exists('register_sidebar_widget') )
        register_sidebar_widget(__('Search'), 'widget_search');
    
    ?>

    I need add this lines correct?

    <?php
    
    function ms_attachment_fields_to_edit($form_fields, $post) {
        if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
    	// align: (radio)
    	$form_fields['align']['value'] = 'aligncenter';
    	$form_fields['align']['input'] = 'hidden';
    
    	// image-size: (radio)
    	$form_fields['image-size']['value'] = 'thumbnail';
    	$form_fields['image-size']['input'] = 'hidden';
        }
        return $form_fields;
    }
    add_filter('attachment_fields_to_edit', 'ms_attachment_fields_to_edit', 11, 2);
    
    ?>

    And:

    <?php
    
    include_once('wp-config.php');
    include_once('wp-includes/wp-db.php');
    ?>

    But i get a lot of erros.
    I am trying resolve the 2 first lines.

    No, i donΒ΄t modify the plugin flexive-upload yet with your instructions

    I will try use photojar with your instructions.

    Thread Starter Alyson

    (@rn2web)

    hi michael

    I hack almost all my wordpress 2.6 , lol
    Is because my client need a personal version for your project, but ok.
    Is everythinq perfect at this moment.
    About this little problem, is last problem to finish my work ^_^

    ————————–
    The plugin i am using is to do resize big images and do a thumbnail.
    Your name: flexible-upload

    ————————–

    I will try do your new instructions

    ( yes, my english is very poor )

    Thread Starter Alyson

    (@rn2web)

    i try injet this function in functions.php of my template

    and i get this error:

    Warning: Cannot modify header information – headers already sent by (output started at /themes/Aspire/functions.php:19) in /blog/wp-includes/pluggable.php on line 770

    and i try in functions.php of wp-includes

    and:

    Fatal error: Call to undefined function add_filter() in /blog/wp-includes/functions.php on line 2339

    Thread Starter Alyson

    (@rn2web)

    ok shoe, i will test and do feedback.

    Thanks so much πŸ˜€

    Thread Starter Alyson

    (@rn2web)

    My cliente want to remove this options for registred users πŸ™

    Yes i try search in any archive , media.php, upload.php and much more and nothinq….

    thanks for your help =/

Viewing 15 replies - 46 through 60 (of 70 total)