Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ritso

    (@ritso)

    <div id=”useful-banner-manager-banners-rotation-n1″ class=”useful_banner_manager_banners_rotation” style=”overflow: hidden; width: randpx; height: 180px;”><div id=”10_useful_banner_manager_banner” class=”useful_banner_manager_rotating_banner” style=”display: none;”>……..</div>

    This is the div concerned in the HTML.

    Seeing this the rand operator is being picked up as the width instead of the random. I see from the code that the deaults are set to 180 if no values are entered.

    Is it possible to use the rand operator but also have your ads render at their actual sizes?

    Thread Starter ritso

    (@ritso)

    I forgot to add that the CSS on the page seemed to be indicating this was something inline rather than CSS controlled. I checked in the plugin editor and found some references to ‘180’ but I’m reluctant to alter these.

    I think this is possible as I’ve just had a play around in the PHP and seem to have done this by adding two more rows to the settings page.

    If you go into Plugins > Editor and find the plugin in the dropdown list you will need to make three changes:

    include_once(‘simple-text-replace_hooks.php’);
    if(get_option(‘str_title_enabled’)){
    if(get_option(‘str_content_enabled’)){

    include_once(‘simple-text-replace_options.php’);
    // Title replace
    // Text replace

    check_regex(‘title’, ’10’);
    check_regex(‘content’, ’10’);

    There are two PHP files involved and the lines to look for are above, one for the title section and one for the post section. They’re pretty easy to spot as they are big blocks of repeating code and you just copy and past the bottom one and change the number from 10 to 11, 12, etc.

    I hope this helps somebody.

    Thread Starter ritso

    (@ritso)

    I’ve been wondering, if templates are even possible would they also store the content in the WP to Twitter box added to the post page?

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