Wanna ad the three banners 200x60 to my header. Help please. Example: http://widescreenwallpapers.org/
Thanks.
Wallpaper Script Forum » Announcements
Wanna ad the three banners 200x60 to my header.
(33 posts)-
Posted 4 years ago #
-
I ll give u code in a short while, tell about your site please, give url.
Posted 4 years ago # -
Thanks! I actually figured it out sort of.
My site is: http://appledeco.org/Regards
Posted 4 years ago # -
P.S.- If anyone else needs to know how to do this, let me know.
Posted 4 years ago # -
hi cde010 plz let me know
Posted 4 years ago # -
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.
Posted 4 years ago # -
thanx a lot cde010 u r genius i am going to try it now..
Posted 4 years ago # -
Posted 4 years ago #
-
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 # -
Posted 4 years ago #
-
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 # -
Posted 4 years ago # -
Posted 4 years ago # -
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
Posted 4 years ago # -
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 # -
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}
{/literal}
</div>
<div class="logo-back2">
{literal}
{/literal}
</div>
<div class="logo-back3">
{literal}
{/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 # -
The code i posted is messed, but u can understand, u ve to place banner code in between literal tags....
Posted 4 years ago # -
Outstanding....
Thank you.Posted 4 years ago # -
thanx a lot nikhil that was really cool thanx alot ..
& cde010 thanx lot to u for your efforts man..
Posted 4 years ago # -
hey nikhil plz help me out here..
http://wallpaperscript.com/forum/topic/getting-error-on-add-wallpaper-038-delete-wallpaper
Posted 4 years ago # -
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 # -
Cant get it work yet!!! Im not that strong @ design... :(
Posted 4 years ago # -
How to add tweets updates like http://appledeco.org/ ?
Posted 3 years ago # -
so, what is complete process,
Nikil can you please sort this out in easy steps,
I am completely lost here.Posted 3 years ago # -
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 # -
can anyone please sort this topic in easy steps that what to do first and then vice versa
Posted 3 years ago # -
@ ahowo
Please share your success when done with us.Posted 3 years ago # -
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 # -
Posted 3 years ago #
-
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 #
Reply »
You must log in to post.



