Wallpaper Script Forum » Announcements

Wanna ad the three banners 200x60 to my header.

(33 posts)
  • Started 4 years ago by cde010
  • Latest reply from prateekj
  • 2 Members Subscribed To Topic
  1. Wanna ad the three banners 200x60 to my header. Help please. Example: http://widescreenwallpapers.org/
    Thanks.

    Posted 4 years ago #
  2. I ll give u code in a short while, tell about your site please, give url.

    Posted 4 years ago #
  3. Thanks! I actually figured it out sort of.
    My site is: http://appledeco.org/

    Regards

    Posted 4 years ago #
  4. P.S.- If anyone else needs to know how to do this, let me know.

    Posted 4 years ago #
  5. sweet16
    Member

    hi cde010 plz let me know

    Posted 4 years ago #
  6. 1.) First, I created a new file called "ads.tpl" This is the file where I made a table and and placed my "advertise here" images. This is also where I will place the code for that ad banners. My ads.tpl code is attached. Replace the "advertise here" image with yours. You will need to use the full image url here, i.e. "http://your-domain\templates\default\images\ads.jpg"

    Ads.tpl should be placed in the \templates\default directory.

    2.) Open \templates\default\main.tpl. Include the ads.tpl file here. Find the following code in main.tpl around line 165:

    {/dynamic}

    3.) Directly after this code paste the following:

    <div>{include file="ads.tpl"}</div>

    4.) Upload everything.

    I hope that I didn't miss any steps.

    Attachments

    1. ads.txt (0.5 KB, 49 downloads) 4 years old
    Posted 4 years ago #
  7. sweet16
    Member

    thanx a lot cde010 u r genius i am going to try it now..

    Posted 4 years ago #
  8. sweet16
    Member

    not working for me any another way ..??

    take alook here

    & i want like this

    Attachments

    1. untitledw.JPG (16.5 KB, 10 downloads) 4 years old
    2. untitled.JPG (12 KB, 10 downloads) 4 years old
    Posted 4 years ago #
  9. OK. In step 3 when you pasted this:

    <div>{include file="ads.tpl"}</div>

    Replace it with this:

    <div class="top-header">{include file="ads.tpl"}</div>

    That should work. :)

    Posted 4 years ago #
  10. sweet16
    Member

    still not working dear...

    take a look

    Attachments

    1. untitled.JPG (30.7 KB, 9 downloads) 4 years old
    Posted 4 years ago #
  11. OK. What's happening is that I removed a table from my header and this table is what is making your ads get covered up. In order for my fix to work, this table has to go. The problem is, that this is the table where your logo and site name is displayed. For example look at the demo site: http://wallpaperscript.com/demo/
    In this case, I am referring to the the table the contains that orange box and the "Wallpaper Script Demo" link. On my site, all that is gone. And I use the style sheet to display my apple logo. If you still want to use this fix, read below.

    1.) You might want to make a back-up copy these files first. Open \templates\default\style.css Find this code around line 58:

    .top-header{
    width:980px;
    height:20px;
    background:url("images/header-back.png") no-repeat 0 0;

    and replace it with this:

    .top-header{
    width:980px;
    height:80px;
    margin-top: 15px;
    text-align: right;
    background:url("images/header-back.png") no-repeat 0 0;

    In this case, "header-back" is my apple logo.

    2.) Open templates\default\header and delete this code around line 3:

    <div class="logo-back">
    < a href="{''|url}" title="{$smarty.const.SITE_NAME}"><span class="logo-img" title="{$smarty.const.SITE_NAME}"></span></ a>
    </ div>

    Let me know how this works for you.

    Posted 4 years ago #

  12. Posted 4 years ago #

  13. Posted 4 years ago #
  14. sweet16
    Member

    hi i am very greatfull that u r helping me out but seems likes its not working for me ..

    can plz tell me how excatly this web site did this that will be vry help ful

    http://pozenet.ro/

    Attachments

    1. Untitled-1.jpg (52.7 KB, 4 downloads) 4 years old
    Posted 4 years ago #
  15. We are getting close. Ok, look at my last post...Step 2 i said to delete:

    <div class="logo">
    <div class="logo-back">
    < a href="{''|url}" title="{$smarty.const.SITE_NAME}"><span class="logo-img" title="{$smarty.const.SITE_NAME}"></span></ a>
    </div>
    < a href="{''|url}" title="{$smarty.const.SITE_NAME}"><span class="logo-text">{$smarty.const.SITE_NAME}</span></ a>

    I meant for you to delete this:

    <div class="logo">
    <div class="logo-back">
    < a href="{''|url}" title="{$smarty.const.SITE_NAME}"><span class="logo-img" title="{$smarty.const.SITE_NAME}"></span></ a>
    </div>
    < a href="{''|url}" title="{$smarty.const.SITE_NAME}"><span class="logo-text">{$smarty.const.SITE_NAME}</span></ a>

    {$_HOOK_HEADER_}
    </div>

    Sorry about that...I didn't get all of it. I needed you to delete this: <div class="logo">
    and this {$_HOOK_HEADER_} </div> also.

    As far as that extra space; Just adjust the height in the style.css from 80px to something smaller:

    .top-header{
    width:980px;
    height:80px;
    margin-top: 15px;
    text-align: right;
    background:url("images/header-back.png") no-repeat 0 0;

    I really don't know how http://pozenet.ro/ did their site. I'd have to have access to their template files. Sorry.

    Posted 4 years ago #
  16. In style.css add

    .logo-back1 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    }
    .logo-back2 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    }
    .logo-back3 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    In header.tpl add:

    <div class="logo-back1">
    {literal}Wallpapers{/literal}
    </div>
    <div class="logo-back2">
    {literal}Wallpapers{/literal}
    </div>
    <div class="logo-back3">
    {literal}Wallpapers{/literal}
    </div>

    customise as per yr choice, literal tags u can do without fr simple banners, but those using javascript codes etc to render banners, literal tags are must... hope this helps

    Posted 4 years ago #
  17. The code i posted is messed, but u can understand, u ve to place banner code in between literal tags....

    Posted 4 years ago #
  18. Outstanding....
    Thank you.

    Posted 4 years ago #
  19. sweet16
    Member

    thanx a lot nikhil that was really cool thanx alot ..

    & cde010 thanx lot to u for your efforts man..

    Posted 4 years ago #
  20. sweet16
    Member

  21. Nikhil is not well, I came across the site just surfing opened sites on his pc , he always hibernates system u know.. I m his sister....

    Posted 4 years ago #
  22. Cant get it work yet!!! Im not that strong @ design... :(

    Posted 4 years ago #
  23. david
    Member

    How to add tweets updates like http://appledeco.org/ ?

    Posted 3 years ago #
  24. david
    Member

    so, what is complete process,
    Nikil can you please sort this out in easy steps,
    I am completely lost here.

    Posted 3 years ago #
  25. its work but a single line in top header comes when i put code in style.css i am using white back round help please

    Posted 3 years ago #
  26. david
    Member

    can anyone please sort this topic in easy steps that what to do first and then vice versa

    Posted 3 years ago #
  27. david
    Member

    @ ahowo
    Please share your success when done with us.

    Posted 3 years ago #
  28. where please tell me line number where we add this code ?

    .logo-back1 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    }
    .logo-back2 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    }
    .logo-back3 {
    float: right;
    width:205px;
    height:60px;
    margin-top:2px;

    In header.tpl add:

    <div class="logo-back1">
    {literal}Wallpapers{/literal}
    </div>
    <div class="logo-back2">
    {literal}Wallpapers{/literal}
    </div>
    <div class="logo-back3">
    {literal}Wallpapers{/literal}
    </div>

    Posted 3 years ago #
  29. every thing correct but i am little error if any one help me please check pic

    Attachments

    1. error.JPG (87.5 KB, 7 downloads) 3 years old
    Posted 3 years ago #
  30. david
    Member

    anyone please sort this issue out, i am waiting for this modification to be sorted out in easy steps and should be working. Where are seniors like Nikil to help us out.

    Posted 3 years ago #

RSS feed for this topic

Reply »

You must log in to post.