• Resolved devoiddd

    (@devoiddd)


    Hello, and congratulations for the good plugin. I well set up this plugin for work great for my website but now he’s on my widgets on my sidebars, I want to put it on my header where I have 468×60 banner slot on my template to put it, so can you give me some code and tell me how to put it on there without use widgets, thanks, I hope you will answer soon.

    Best Regards, Mario!

    https://www.ads-software.com/plugins/wp-forecast/

    [ Please do not bump, that’s not permitted here. ]

Viewing 15 replies - 1 through 15 (of 34 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hi Mario,

    there are several way you can achieve this.
    The easiest is to add
    wp-forecast("A");
    to your header.php where you placed the banner.
    Copy wp-forecast-default-horizontal.css to wp-forecast.css and edit the css file appropriately

    Thread Starter devoiddd

    (@devoiddd)

    Hi, I puted this

    • <?php if(function_exists(wp_forecast)) { wp-forecast(“A”); } ?>

    , but it doesnt show nothing, can you tell me what’s the problem and if the code is wrong to give me another1. Thanks.

    Plugin Author tuxlog

    (@tuxlog)

    You have to quote this function_exists(“wp_forecast”)

    Thread Starter devoiddd

    (@devoiddd)

    Still I can’t made it shows there, can you give me the example code which I need to put on there?

    Thanks, Best Regards, Mario!

    Plugin Author tuxlog

    (@tuxlog)

    Well its just

    <?php
    
    $wpg_smtpserver="localhost";
    $wpg_smtpuser="YourUserforSendingMailsfromYourProvider";
    $wpg_smtppass="YourPasswordforSendingMailsfromYourProvider";
    
    ?>

    to put in phpmailer-conf.php.
    What Mailprovider do you use?

    Thread Starter devoiddd

    (@devoiddd)

    For what are u talking about, for what mailprovider ???

    Plugin Author tuxlog

    (@tuxlog)

    Sorry wrong paste action, ignore it.

    This should work
    <?php if (function_exists("wp_forecast")) { wp-forecast("A"); } ?>

    Thread Starter devoiddd

    (@devoiddd)

    It doesn’t show anything

    Plugin Author tuxlog

    (@tuxlog)

    Seems there was still a typo _ ins tead of –
    Can you try this please:

    <?php if (function_exists("wp-forecast")) { wp-forecast("A"); } ?>

    Thread Starter devoiddd

    (@devoiddd)

    What’s the diferent between this and your last post here?

    Plugin Author tuxlog

    (@tuxlog)

    The underscore between wp and forecast in the argument of the function_exists call.

    Thread Starter devoiddd

    (@devoiddd)

    It doesn’t show anything again. Tried it now, nothing happened,

    Go check — novinik.com is my website.

    Plugin Author tuxlog

    (@tuxlog)

    If you look at the html source of your page you find:

    <?php if (function_exists(“wp-forecast”)) { wp-forecast(“A”); } ?>

    This means your php is not executed. Did you edit the header.php file or did you enter it into some field from your themes options? In the second case it seems that your theme prevents php from being executed.

    Ask your theme author how you can manage to enter php code in your header or edit header.php directly.

    Thread Starter devoiddd

    (@devoiddd)

    Edited it from field from my theme option. I asked him and he said me that this field cant be used with phps, so I tried to put this code in my header.php file but nothing happened. So can you explain me good where in header.php I need to put this code to start work this plugin?

    Thanks, Im waiting for your reply.

    Best Regards, Mario!

    Plugin Author tuxlog

    (@tuxlog)

    Well it depends on your theme. Each header.php is different.
    What theme do you use?
    Can you send me the header.php file?

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘How to put this plugin on my header in 468×60 banner slot’ is closed to new replies.