News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

banner script needed

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

Previous topic - Next topic

nomic


Tony Reid

Perfect - now its just your path that needs fixing.

As your random_logo.php file is in the same directory as the images - you should change line 95 to


$folder = '.';


Tony Reid

nomic

anything else its still not showing the link u said had images/images where did u find that ?

Tony Reid

Did you change line 95 too?
Tony Reid

nomic


Tony Reid

Ok - your banner script is now working -

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

We now need to find that double images/images bit.

Can you upload your index.template.php for me to look at please.
Tony Reid

nomic


Tony Reid

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


Should be..

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


Tony Reid

Its working.. a bit slow - but maybe you need to reduce the size of the images.
Tony Reid

nomic

 i have specific images i want it to use do i just load them to logo images folder now and by the way your a star i cant thank you enough i do this website for the charity in my spare time but im no programmer i just learn as i go so thank you so much

Tony Reid

Your welcome :)

Yes - just upload the images you wish to use as banners into the logoimages folder :)

Tony Reid

nomic

how do i add a link to the individual images ???

Tony Reid

In what way do you mean? so you can lik to them within a post?

like this

http://fishrescueandwelfare.com/Themes/Anecdota_20g/images/LogoImages/foxs%2520aquatics%2520logo.jpg


By the way - you should turn directory indexing off within your websites hosting control panel

Users shouldn't be able to see the directory listings...
http://fishrescueandwelfare.com/Themes/Anecdota_20g/images/LogoImages/
Tony Reid

nomic

i know im being a pain i have a million questions lol

can i place it under the site logo ????
can i add links to the images ???

obviously i would have to keep the images to a specific site to not throw the template out

nomic

ok i didnt know directory indexing was off ill have to find that now lol

and no i mean if you look at the banner foxes aquatics i want to be able to click the foxs aquatics banner and it automaticaly open there web page


Tony Reid

The mod you are using to display the banners is quite simple and would need some significant changes to support links.

To move the banner - you would need to edit index.template.php and move the banner code down to the recommended place which is just above the linktree code

// Show the navigation tree.
theme_linktree();


Directly under the logo would need css changes - and I am no expert on that :)

There are other mods (smf ads) specifically aimed at advertising which might meet your needs better.
Tony Reid

nomic

that means i would have to do all this again lol r u busy lol

Tony Reid

I'm quite busy at the moment.... just working my way through developing my own advertising management system (attached screenshot)..

I might be able to do something on Monday/Tuesday.
Tony Reid

nomic

ok cool thanks for your help ill see if i can catch up with u later at least i get the sponsors banners on the site for now which was the main thing for us

thank you again

Advertisement: