Exstension Help

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri May 31, 2013 2:09 pm
Reply with quote
Report this post
I have spent numerous hours looking for a module on Joomla exstensions but with no luck.

What I was looking for was a banner/advert that runs down the left and right hand side of a website, and while you scroll down the website the banner/advert moves with you.

Can someone point me in the right direction?

Thanks
User avatar
Gold Boarder

GK User
Fri May 31, 2013 2:13 pm
Reply with quote
Report this post
You could achieve that with simple css rule that "fixes" background image on body element:
Code: Select all
body {background: #fff url(http://sample.com/banner.jpg) no-repeat fixed 50% 0;}

(50% will center image vertically if You have centered layout.)
User avatar
Moderator

GK User
Fri May 31, 2013 2:41 pm
Reply with quote
Report this post
Were do I put that css code?
User avatar
Gold Boarder

GK User
Fri May 31, 2013 2:43 pm
Reply with quote
Report this post
Please edit: /templates/gk_news/css/override.css and add the code at its end.

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Fri May 31, 2013 3:04 pm
Reply with quote
Report this post
http://ringnews24.com/ Can you look here please.

It works with your code but its in the middle of the website.

I need it to be left and right hand side.

Thanks.
User avatar
Gold Boarder

GK User
Fri May 31, 2013 3:38 pm
Reply with quote
Report this post
body {background: #fff url(http://ringnews24.com/images/sponsor%20us.gif) no-repeat fixed 92.5% 0;}

I changed the % number. The image need to be linkable as well.

1/2 the image is hidden when on the front page.

Thanks.
User avatar
Gold Boarder

GK User
Fri May 31, 2013 4:01 pm
Reply with quote
Report this post
If You would like it to be clickable - then You need to code quite a lot of stuff and its a customization job that we doesnt support.
User avatar
Moderator

GK User
Fri May 31, 2013 4:05 pm
Reply with quote
Report this post
How do I show the part of the image that is missing?
User avatar
Gold Boarder

GK User
Fri May 31, 2013 6:34 pm
Reply with quote
Report this post
Code: Select all
#gkPageTop {background: transparent}
User avatar
Moderator

GK User
Sat Jun 01, 2013 10:33 am
Reply with quote
Report this post
Can you type out the full new code to use please. Were do I put #gkPageTop {background: transparent}

Thanks.
User avatar
Gold Boarder

GK User
Sat Jun 01, 2013 11:17 am
Reply with quote
Report this post
to override.css at its end - same way as You did previous changes :)
User avatar
Moderator

GK User
Sat Jun 01, 2013 11:42 am
Reply with quote
Report this post
Would it be possible to make it start further down the page and not at the very top?
User avatar
Gold Boarder

GK User
Sat Jun 01, 2013 1:31 pm
Reply with quote
Report this post
With the previous code:
Code: Select all
body {background: #fff url(http://ringnews24.com/images/sponsor%20us.gif) no-repeat fixed 92.5% 0;}


second parameter (0) is used to move in vertical position. Place there 50px for example to see how it affect layout.
User avatar
Moderator

GK User
Sat Jun 01, 2013 2:56 pm
Reply with quote
Report this post
That worked perfect Cyberek, Thanks.

Is there anyway to get the same image on the opposite side?
User avatar
Gold Boarder

GK User
Sun Jun 02, 2013 11:17 am
Reply with quote
Report this post
Yes, as I have told You - You create a big image, that is wider than Your site (it has empty space in middle with width of that space equals to width of center column of Your site), then You place two images on sides of this empty column and use 50% as first parameter of background position to center it horizontally.

But still this way You will not be able to create "clickable" area.
User avatar
Moderator

GK User
Fri Jun 28, 2013 6:38 pm
Reply with quote
Report this post
I manged to get some CCS code and HTML from a friend http://jsfiddle.net/A4TWj/1/ But we are not sure what files to put the code in, can you please tell us were the html and css must go?

Thanks
User avatar
Gold Boarder

GK User
Sat Jun 29, 2013 7:57 am
Reply with quote
Report this post
Css as usuall - to override.css.
Html - You should either create new module position:
http://www.gavick.com/documentation/joo ... -position/
Or add it to /layouts/default.php
User avatar
Moderator

GK User
Sat Jun 29, 2013 5:11 pm
Reply with quote
Report this post
Cyberek wrote:Css as usuall - to override.css.
Html - You should either create new module position:
http://www.gavick.com/documentation/joo ... -position/
Or add it to /layouts/default.php


Hi Cyberek,
I have added the Css to overide.css.

Were about do I add the code in the Default.php file?

Thanks
User avatar
Gold Boarder

GK User
Mon Jul 01, 2013 8:45 am
Reply with quote
Report this post
The code on jsfiddle is not prepared to work with column centered content. You could try to paste it here:
Code: Select all
    <?php if(count($app->getMessageQueue())) : ?>
    <jdoc:include type="message" />
    <?php endif; ?>
PASTE YOUR CODE HERE   
    <section id="gkPageTop" <?php if($header_nobg): ?> class="nobg"<?php endif; ?>>

but I'm afraid it wont give You result You want.
User avatar
Moderator


cron