Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter t567

    (@t567)

    thanx, it can be so easy…

    @muttybay it is sufficient to remove the script from your webspace.

    What is https://sharebutton.net/? This website doesn’t seem to be malicious ??

    i think any webmaster should be aware of the potential danger of this bogus site. the main issue discussed in this post is how to block the crawler, which is absolutely ok. neither does the referral spam issue mean a concrete threat.

    imho the danger is in the fact that a webmaster might be tempted to paste the offered code snippet into his site.

    <script>
    document.write('<script src="//sharebutton.net/plugin/sharebutton.php?type=vertical&u=' + encodeURIComponent(document.location.href) + '"></scr' + 'ipt>');
    </script>

    the snippet doesn’t do anything else but pointing to a code on src=”//sharebutton.net/plugin inserting share buttons, as shown on sharebutton.net, yet.

    but hence the actual code is located on a distant server, it would be easy to replace it with another code – and this new code certainly would do something else but just showing nicely coloured share buttons. regarding the fact that the domain owner is disguising his identity via a who is service, to me it looks like an attempt to preparing a bot net or similar…

    although german you might want to have a look at an article of mine trying to point out the backgrounds of sharebutton.net or buttons-for-website.com – i’m sure you’ll get the point!

    https://www.website-go.com/artikel/block-buttons-for-website.php

    from (old) europe merry christmas to all of you!

    Forum: Plugins
    In reply to: wp_title –> var
    Thread Starter t567

    (@t567)

    >wp_title() seems to return the string with (two) prepended space characters;

    obviously it does. your hint immediately did solve the problem. thanx a lot!

    Forum: Plugins
    In reply to: wp_title –> var
    Thread Starter t567

    (@t567)

    hm, no, doesn’t do anything else. the strcmp() works fine on a test-file but doesn’t on the index.php.

    <?php $var = wp_title('',false);
    echo "$var";  // just a test, works
    if (strcmp("$var","Mustang") == 0)
    {
    echo "bananas are somewhat smaller than mustangs.";
    }
    ?>

    maybe i shouldn’t mess around to much with wp, hence there is some more to it than bananas and mustangs ??

    Forum: Plugins
    In reply to: wp_title –> var
    Thread Starter t567

    (@t567)

    ok, i’ll give it a try…

    Forum: Plugins
    In reply to: wp_title –> var
    Thread Starter t567

    (@t567)

    hi michael,

    thnx for your reply.

    >Is $var actually “PAGE TITLE”?

    no, i guess i didn’t put it clear enough, i’m trying to use wp_title as a variable. so if wp_title i.e. is “Mustang”, hence the related page is about mustangs and called accordingly, i want to use the variable “Mustang” in the if statement in order to display some extra content only related to the page about mustangs.

    the above script works fine as it is but it does not when inserted in the index.php.

Viewing 7 replies - 1 through 7 (of 7 total)