Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
mrixnewaccount
Regular
Regular



Joined: May 06, 2013
Posts: 50

PostPosted: Wed Jan 22, 2014 7:31 am Reply with quote

Hello all, after my upgrade my custom google ad links changed position.
Here is a screenshot I took [ Only registered users can see links on this board! Get registered or login! ]
Basically it used to have a dark grey line running along below the add but that`s now vanished.
I was wondering if anyone can tell me what files I would have to check to rectify the ad placement from the position I have shown from the screenshot ?
I can fully understand its not stock but I just need some idea`s where to look, its been years since that ad position was created and I have no idea.
Thanks for any help all
mrix
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Wed Jan 22, 2014 10:26 am Reply with quote

You can check the theme.php of your used theme in the function themeheader(). In older themes it could be you have also a separate file like footer.html in your theme-folder.

_________________
Github: RavenNuke 
View user's profile Send private message
mrixnewaccount







PostPosted: Wed Jan 22, 2014 11:44 am Reply with quote

Thanks for the reply and idea`s neralex, I will take a look Very Happy
Cheers
mrix
 
mrixnewaccount







PostPosted: Wed Jan 22, 2014 12:07 pm Reply with quote

Hello I have managed to find the piece of code someone made for me within the theme.php as you explained and the code looks like this...

Code:
echo "<body>";

    include("themes/ClanMtS/header.php");
        include("themes/ClanMtS/adds.html");


and finding the adds.html file the code looks like this...

Code:
 <table width="100%" border="0" cellpadding="0" cellspacing="0">

   <tr>
      <td rowspan="4"><img src="themes/ClanMtS/images/footer/ClanMts-foot1_01b.gif" width="22" height="53" alt="" /></td>
      <td rowspan="4" style="background:url(themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif); width:50%; height:53;">
<script type="text/javascript"><!--
google_ad_client = "pub-9962528216889586";
/* 728x15, Sea Fishing Links */
google_ad_slot = "0562371611";
google_ad_width= 728;
google_ad_height= 15;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</td>
      <td colspan="3" style="background:url(themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif); width:480; height:56;" align="center" valign="bottom" ></td>
      <td rowspan="4" style="background:url(themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif); width:50%; height:56;" ></td>
      <td rowspan="4"><img src="themes/ClanMtS/images/footer/ClanMts-foot1_06b.gif" width="50" height="56" alt="" /></td>
      <td rowspan="4"><img src="themes/ClanMtS/images/footer/ClanMts-foot1_07b.gif" width="25" height="56" alt="" /></td>
   </tr>
</table>


Now before the upgrade the adds had a dark grey line that was the same height as the adds which spread across the page to the other side just under the blue header but as you can see something has gone wrong Confused
Can anyone see the possible mistake????

Thanks all
mrix
 
mrixnewaccount







PostPosted: Wed Jan 22, 2014 12:14 pm Reply with quote

Actually if you put this link in your browser you can see the grey / brown line that was originally there [ Only registered users can see links on this board! Get registered or login! ]
Any ideas greatly appreciated.
Thanks
mrix
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Jan 22, 2014 12:26 pm Reply with quote

Have you checked to see if it is browser related? In firefox and chrome, the bar is there.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
mrixnewaccount







PostPosted: Wed Jan 22, 2014 12:31 pm Reply with quote

Blimey nuken, your not wrong it is there Shocked
I have been using Google chrome for the past few years and never seen this before on my sea fishing site Shocked
It does appear to be google chrome related Sad
Not much I can do then I guess ?
Thanks for that
mrix
 
mrixnewaccount







PostPosted: Wed Jan 22, 2014 1:48 pm Reply with quote

Hello all, if at any point anyone has an idea to tweak the code so that it will appear ok in Google Chrome please let me know as it would be hugely appreciated.
Thanks all
mrix
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Wed Jan 22, 2014 5:29 pm Reply with quote

hi mrixnewaccount.

Try this one, I don't know if it is going to work good, but it should be something like this.

u need to open your style.css and at the end copy the css files.


style.css
Code:
.ts-1 {

   border: none;
   height: 56px;
   position: relative;
   text-align: left;
   width: 992px;
}

.ts-1-1 {
   border: none;
   height: 54px;
   left: 0px;
   padding: 1px;
   position: absolute;
   top: 0px;
   width: 20px;
}

.ts-1-2 {
   background: url('themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif');
   border: none;
   height: 27px;
   left: 22px;
   padding-bottom: 1px;
   padding-left: 1px;
   padding-right: 1px;
   padding-top: 28px;
   position: absolute;
   top: 0px;
   width: 446px;
}

.ts-1-3 {
   background: url('themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif');
   border: none;
   height: 54px;
   left: 470px;
   overflow: hidden;
   padding: 1px;
   position: absolute;
   text-align: center;
   top: 0px;
   width: 0px;
}

.ts-1-4 {
   background: url('themes/ClanMtS/images/footer/ClanMts-foot_rtb.gif');
   border: none;
   height: 54px;
   left: 470px;
   overflow: hidden;
   padding: 1px;
   position: absolute;
   top: 0px;
   width: 445px;
}

.ts-1-5 {
   border: none;
   height: 54px;
   left: 917px;
   padding: 1px;
   position: absolute;
   top: 0px;
   width: 48px;
}

.ts-1-6 {
   border: none;
   height: 54px;
   left: 967px;
   padding: 1px;
   position: absolute;
   top: 0px;
   width: 23px;
}


ads.html

Code:
      <div class="ts-1">

         <div class="ts-1-1"><img width="22" height="53" alt="" src="themes/ClanMtS/images/footer/ClanMts-foot1_01b.gif"></div>
         <div class="ts-1-2">
            
            <script type="text/javascript"><!--
google_ad_client = "pub-9962528216889586";
/* 728x15, Sea Fishing Links */
google_ad_slot = "0562371611";
google_ad_width= 728;
google_ad_height= 15;
//-->
</script>
            
            <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
            
         </div>
         <div align="center" class="ts-1-3"></div>
         <div class="ts-1-4"></div>
         <div class="ts-1-5"><img width="50" height="56" alt="" src="themes/ClanMtS/images/footer/ClanMts-foot1_06b.gif"></div>
         <div class="ts-1-6"><img width="25" height="56" alt="" src="themes/ClanMtS/images/footer/ClanMts-foot1_07b.gif"></div>
      </div>
 
View user's profile Send private message
mrixnewaccount







PostPosted: Thu Jan 23, 2014 5:11 am Reply with quote

Quote:
hi mrixnewaccount.

Try this one, I don't know if it is going to work good, but it should be something like this.

u need to open your style.css and at the end copy the css files.


Huge thanks for your time on this, I will give it a try and see what happens.
Thanks
mrix
 
neralex







PostPosted: Thu Jan 23, 2014 8:18 am Reply with quote

mrixnewaccount, you must only add 'px' to your height values of the <td>'s, where you have added the background styles. No more changes needed:

open your adds.html ...

search:
html Code:
height:53;


change it to:
html Code:
height:53px;


search:
html Code:
height:56;


change it to:
html Code:
height:56px;



hicuxunicorniobestbuildpc, a lot of uneeded code for a simple issue with the height-values in his td's with the background css styles. BTW A position value absolute to get div containers side by side is not needed. You can float it, you can also use the display inline-block or the best way, you are using elements like a td of a table, as mrixnewaccount has it done. To convert all to divs and add so many css classes is too much.
 
mrixnewaccount







PostPosted: Thu Jan 23, 2014 2:22 pm Reply with quote

That really is fantastic and done the job a real treat, its all back to normal even in Google chrome.
Very pleased
Thanks for all the help guys and neralex for those simplistic changes that worked so well Cool
Cheers
mrix
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©