News:

Wondering if this will always be free?  See why free is better.

Main Menu

banner script needed

Started by nomic, May 31, 2012, 02:18:58 PM

Previous topic - Next topic

nomic

i am looking for a banner script i have tried the rotating banner it loads fin the option appears in the admin but the banner bar and banners dont show up

smf 2.0.2
theme = anecdota_20g

has anyone got any suggestions ???

Tony Reid

Are you using bbcode or html for the image tag?
Tony Reid

TheListener

Have you looked at the simple ad rotator mod?

Works perfect on 2.0.2

nomic

this is the mod i have loaded it loads through the package manager

Mod Name:
    Random Forum Banner/Logo
Created By:
    ɔɔɔɔɔɔuɥoɾ
Type:
    New Feature
First Created:
    June 18, 2010, 11:36:55 PM
Last Modified:
    July 28, 2010, 12:26:13 AM
Latest Version:
    0.6
Compatible With:
    2.0 RC3
Total Downloads:
    1708
Notifications:
    Notify me of updates.


TheListener

One forum I belong to had it installed but decided to uninstall the mod due to there being errors with the mod.


nomic

simple add rotator gave me all these errors for my themes

      2ExtremeBlue
*       Execute Modification    ./Themes/2ExtremeBlue/index.template.php    Test failed
      1.    Replace    ./Themes/2ExtremeBlue/index.template.php    Test failed
      2.    Replace    ./Themes/2ExtremeBlue/index.template.php    Test failed
      Anecdota
*       Execute Modification    ./Themes/Anecdota_20g/index.template.php    Test failed
      1.    Replace    ./Themes/Anecdota_20g/index.template.php    Test failed
      2.    Replace    ./Themes/Anecdota_20g/index.template.php    Test failed
      Anecdota
*       Execute Modification    ./Themes/Anecdota_20g/index.template.php    Test failed
      1.    Replace    ./Themes/Anecdota_20g/index.template.php    Test failed
      2.    Replace    ./Themes/Anecdota_20g/index.template.php    Test failed

    SMF 2.0.2 | SMF © 2011, Simple Machines

TheListener

nomic have a look at the mod emulate link in my signature.

As said previously the mod works on a 2.0.2 forum

nomic

Quote from: Tony Reid on May 31, 2012, 02:20:28 PM
Are you using bbcode or html for the image tag?

im just loading through package manager mate direct from zip to site like i say it adds the feature to my admin but doesnt show on my webpage

nomic

ok i changed to emulate mode i installed the ad its in the admin panel ith options but still nothing showing on the site have u got some sample code i can add see if im adding it wrong ?

TheListener

Will have a quick look if ya want to send a temp admin account via pm.

nomic


nomic

ok tried just about everything and its not showing up the settings appear for both installs in the admin panel  but nothing shows on the actual web page

Tony Reid

edit ./Themes/Anecdota_20g/index.template.php

Find...


function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;


And add this straight after it (Check its not already there - I suspect it is not.)

  if (!empty ($modSettings['randombannerlogoOnOff']))       
        echo '
    <div id="random_banner"><a href="'. $scripturl .'"><img src="' . $settings['images_url'] .'/LogoImages/random_logo.php" alt=""/></a></div>';
        else '';


Tony Reid

nomic

it wasn't there the first time round i did add it afterwards but it still isnt showing

Tony Reid

Can you provide a weblink to your forum?
Tony Reid


Tony Reid

It looks like a configuration issue - you actually have two image subdirectories in the path to the random_logo.php file -

http://fishrescueandwelfare.com/Themes/Anecdota_20g/images/images/LogoImages/random_logo.php

The correct url should be

http://fishrescueandwelfare.com/Themes/Anecdota_20g/images/LogoImages/random_logo.php

However, that random_logo.php file has an error and needs to be checked...

QuoteParse error: syntax error, unexpected '<', expecting ')' in /home/www/fishrescueandwelfare.com/Themes/Anecdota_20g/images/LogoImages/random_logo.php on line 96
Tony Reid

nomic


nomic

and where is that path i need to change what file

Tony Reid


Line 96 in that file should be

$extList = array();

Tony Reid

Advertisement: