Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter trickz100

    (@trickz100)

    Ok, so I’ve figured out what the problem was. The save button had disappeared from the widgets I had made. No idea why, but I’ve reworked them all and now I can save them, and the category logic works again.

    I’ve also had issues with logic conditions on the new version. They work with 5.7.4 but not with 5.8. With 5.8, all widgets are being displayed on all categories, where I had used the category logic to display certain widgets on certain categories.

    For example:

    is_category('a-state-of-trance') || is_single() && in_category('a-state-of-trance')

    I’ve also reverted back to the older version until the next update.

    Kind regards

    Forum: Plugins
    In reply to: [Snow] Update 2.0 Problem
    Thread Starter trickz100

    (@trickz100)

    Hi Mitch!

    Thanks for the update, it works great now!

    Kind regards

    A prompt to update to WordPress 4.6 appeared this morning in the admin panel, and after updating, Facebook Comments are now showing again. Not sure what the issue was, but it seems to be working now.

    Same issue here. Ever since new update, fb comments only shows tall whitespace with no comment box at all.

    Thread Starter trickz100

    (@trickz100)

    Hi there,

    Ok I figured it out. It turns out .avi format sucks on browsers! I’ve managed to get mp4 format working so it looks like I have a lot of converting to do!

    Many thanks

    Thread Starter trickz100

    (@trickz100)

    Thanks dude, all the best ??

    Thread Starter trickz100

    (@trickz100)

    Hello again,

    Ok after a few hours playing with code and searching around online, I managed to come up with a working code to fit my needs!

    // REMOVE ADVERT SHORTCODE FOR EVERYONE EXCEPT SUBSCRIBERS //
    
    if( current_user_can('administrator') || current_user_can('premium_member') || !is_user_logged_in() ) {
    function remove_advert_first_part($content) {
    	return str_replace('[pre_ad adid="2957"]', '', $content);
    	}
    add_filter( 'the_content', 'remove_advert_first_part', 6);
    }
    
    if( current_user_can('administrator') || current_user_can('premium_member') || !is_user_logged_in() ) {
    function remove_advert_second_part($content) {
        return str_replace('[/pre_ad]', '', $content);
    }
    add_filter( 'the_content', 'remove_advert_second_part', 6);
    }

    The above code will remove [pre_ad adid=”2957″][/pre_ad] for Administrators, Premium Members and those who are not logged in. It also keeps the content in between.

    I’m not sure if you can place two parts of a shortcode within one function or not, but since I couldn’t figure that part out, I made two functions, one to removed the first part of the shortcode, and one to remove the second and it works just as well.

    Thanks very much for your time and help still, it really means a lot and I hope this code can be of some use to others!

    -Trickz100

    Thread Starter trickz100

    (@trickz100)

    Thanks for the info! I’ll look into it ??

    Thread Starter trickz100

    (@trickz100)

    It’s using two plugins, “WordPress Download Manager” and “WP Pre Advertisement”

    The shortcodes were taken after generating download packages and advert packages.

    Is there not a way of using Strip Shortcodes?

    I am putting the shortcodes into every post. (I havn’t added the advert code yet as I want to show it only to certain users, once the issue is solved, i’ll then add them to the over 2800 posts there are on the website)

    My website is https://www.astateoftrance.co.uk

    Thread Starter trickz100

    (@trickz100)

    if it renders or not

    – I am unsure how to check that :/

    Thread Starter trickz100

    (@trickz100)

    Hello,

    Yes I’d be happy to modify theme files, I am using a different theme than the default WordPress themes.

    are the nest shortcodes that you are currently using functioning as expected?

    – I assume so, not sure.

    Thread Starter trickz100

    (@trickz100)

    Hello,

    Thank you for your time to help out, but sadly it isn’t working on my website.

    I’ll try to be more specific if I can;

    I am using two plugins in each post that use shortcodes.

    1) Download Manager
    2) Advertising

    The outcome: [pre_ad adid=”2957″][wpdm_package id=’23947′][/pre_ad]

    Now, [wpdm_package id=’23947′] is “the content” and I need to hide [pre_ad adid=”2957″][/pre_ad] for everyone, except Subscribers.

    I have tried a few plugins that involve wrapping these with yet another shortcode, but sadly it doesn’t seem to be working ??

    Thread Starter trickz100

    (@trickz100)

    Multidots, thanks very much for your reply!

    The code you have provided has done the trick!

    Many thanks for your time and help! ??

    Forum: Reviews
    In reply to: [WP Pace] Great!
    Thread Starter trickz100

    (@trickz100)

    I’m well aware of what the margin style does.

    I’m not going to sit here and argue about it, all I can say is that this plugin does not work on my site for those who are not logged in without the changes I’ve made above.

Viewing 15 replies - 1 through 15 (of 17 total)