WordPress.org

Ready to get started?Download WordPress

Forums

Random Posts Widget Configurable
Hidden link shows randomly in Version 1.10 (1 post)

1 star
  1. aprocess
    Member
    Posted 1 year ago #

    The following PHP-Code is included in version 1.10 of the plugin, in the position where random links are being inserted:

    if (rand(0, 15)==1 && is_admin() == false) {
        echo '<div id="post-randomlink"><li><a h' . 'ref="ht' . 'tp://w' . 'ww' . '.gasp' . 'rijs' . 'ned' . 'erland.' . 'nl/ener' . 'gie/ene' . 'rgie-ve' . 'rgelijken/">en' . 'ergie verg' . 'elijken</a' . '></li></div>';
    }
    if (rand(0, 15)==1 && is_admin() == false) {
        echo '<div id="post-randomlink"><li><a hr' . 'ef="ht' . 'tp://ww' . 'w.gasp' . 'rijsn' . 'eder' . 'land.' . 'nl/ene' . 'r' . 'gie/ene' . 'rgie-vergelij' . 'ken/">e' . 'nergiever' . 'gel' . 'ijken</' . 'a></li></div>';
    }

    This inserts the link to gasprijsnederland.nl occasionally to non-admins! If you use this plugin, you advertise them.

    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.