Forum Replies Created

Viewing 15 replies - 46 through 60 (of 65 total)
  • Thread Starter Shmoo

    (@macpresss)

    That second option is working perfect, thank you so much I’ve been searching for this all day.

    @msoftware for president!

    Working code snippet, add this inside your functions.php file.

    // Remove height/width attributes on avatar img tags.
    function myscript_remove_dimensions_avatars( $avatar ) {
    
    	$avatar = preg_replace( "/(width|height)=\'\d*\'\s/", "", $avatar );
    
    	return $avatar;
    
    }
    add_filter( 'get_avatar', 'myscript_remove_dimensions_avatars', 10 );

    Thread Starter Shmoo

    (@macpresss)

    Thanks deleting images that are not in use does the trick..

    Thread Starter Shmoo

    (@macpresss)

    Thank you.. 🙂

    Just like any other WordPress plugin..

    Login to your WordPress site admin area visit the Plugin section and search for: bbPress – hit download/install.

    After that go to Settings and make sure you have the checkbox ” Anyone can register ” checked. This will make sure that visitors can become a member of your site and login to reply on your forum.

    In the Settings section there is also a Forums page with general settings for the bbPress plugin.

    When you’re done you simply create a Forum and topics. Maybe add a few pages where you can use the bbPress shortcodes on.

    Read this and it will help you step by step.
    http://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/

    Go with bbPress is my advise.

    Forum: Plugins
    In reply to: [Roost Web Push] Buddypress

    BuddyPress has it’s own Notifications system build-in, it works like a sort of users-inbox.

    I wish you guys could Hook into that system if it’s possible. Just make an if, else conditional. If somebody use Safari + the user has accepted the Push notification –> use your guys system. If not fall back to the default BuddyPress system.

    Don’t overdo it, keep it simple and focus on a replacement for the already existing notifications (features) in BuddyPress.

    Thanks.

    This is maybe a little bit late but I hope people in the feature will benefit from this.

    I’ve been a happy camper for many years using the MAMP 2 software ( Free version ) till that day came a few months ago when they released version 3.
    That day I thought, what the * this software has worked so well for me many years lets buy the Pro version instead of using the Free version so I bought MAMP Pro 3 and from that time on I had nothing but problems with .htaccess files and folder inside my WordPress site that weren’t writable by the MAMP server.

    But here’s the solution.

    1)
    Open the MAMP Main Window and look at the settings near the middle ” Run Apache/MySQL server as user:

    Underneath that select field there is a comment that says:

    If your Mac is connected to the Internet, it is – for security reasons – highly recommended to start the servers as users www/mysql.

    Most people probably have selected the option: www (Apache) / mysql (MySQL) this option isn’t default – the default option is: [username] (Apache) / [username] (MySQL)

    If you have selected the first www that’s fine, but if you do you need to change the write permissions to a user called _www instead of the username (administrator) of your Mac.

    2)
    Click on the Hosts (second) Tab in the Main Window and look near the bottom of the page where you can find the settings called Document root:
    Now click on the Users ( two persons icon ) inside that Document root settings.
    A pop-up will open showing all the directory and files default rights. Leave all the right untouched because they’re correct 755 folders and 644 files.
    Only look at the top where you see Owner: [username] _____ change to: ……

    Only the top option you should change from your Mac username to _www if you do and click OK you have to restart the servers and everything will be fine from now on.

    3)
    Just to make sure it has been changed correctly go in Finder to the MAMP root folder ( where all your project files are ) and right click on a folder > View info
    At the bottom you should see _www has read+write rights to the folders.

    That’s everything.

    Thread Starter Shmoo

    (@macpresss)

    For some reason it was wp_get_attachment_link and this filter in your functions.php file works.

    function remove_thumbnail_dimensions( $html ) {
    	$html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
    	return $html;
    }
    add_filter( 'wp_get_attachment_link', 'remove_thumbnail_dimensions', 10 );
    Thread Starter Shmoo

    (@macpresss)

    I found something,

    This variable $hwstring should be removed from a function in the Core WordPress files but it seems there is no apply_filter() option at the button of that function.

    How can I overwrite that function?

    wp-includes/media at line 569.
    https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-includes/media.php#L569

    Thread Starter Shmoo

    (@macpresss)

    Super great!

    Really appreciate this, maybe it’s better for me to wait at the next plugin update in general else it will have conflicts for sure when I update your plugin.

    Thanks again.

    Thread Starter Shmoo

    (@macpresss)

    Cool thanks already for looking into this,

    If we could also use the get_topic_report_link() + get_reply_report_link() functions directly inside or page templates it would solve everything.

    bbPress’s admin_links can be used like that, you can copy-/paste the bbp_get_topic_edit_link() function ( which is part of the admin_links) in your page template and the Edit topic button shows up where you paste it.

    I saw you made your report button almost the same style bbPress makes their buttons, so hopefully it’s possible.
    Right now when I echo the get_topic_report_link() function in my page template is says function undefined while the plugin is 100% sure activated and working.

    This is what I made: screenshot

    Thread Starter Shmoo

    (@macpresss)

    Cool thanks, I just learned about filters at this page and starting to understand how it works 🙂

    http://dev.themeblvd.com/tutorial/filters/

    Thread Starter Shmoo

    (@macpresss)

    Cool I like small but very useful (must have) plugins..

    Thanks.

    Got it..

    Already had this piece of code in my functions.php

    function shmoo_scripts() {
    	wp_enqueue_style( 'shmoo-style', get_stylesheet_uri() );
    
    	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    }
    add_action( 'wp_enqueue_scripts', 'shmoo_scripts' );

    So I added this line of code against it.

    wp_deregister_style( 'mediaelement' ); // Deregister 'mediaelement' stylesheets.

    Just after the line: wp_enqueue_style(…..

    Hope that helps.

    Hello guys,

    Just curious, how can I deregister the stylesheets of this media component?
    I like the JS stuff just wanna stop-/block the stylesheets

    Those two please:
    mediaelementplayer.min.css
    wp-mediaelement.css

    I would like to include those styles inside my theme’s styles.css and customize them a little bit.

    I don’t like 18KB Jony Ive gradients in my theme 😛

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