Jump to content


- - - - -

RESOLVED: Where can I add this code?


  • Please log in to reply
9 replies to this topic

#1 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 17 August 2010 - 04:37 PM

Hi Guys :)

I have a html affiliates code which I used on my previous 2.3.6 forum. Anyway, I can't find where I can add it on the board index. I've tried a few times but it all goes weird.

I'm wanting to place it on the board footer, any ideas?

#2 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 17 August 2010 - 04:54 PM

Have you tried the ad-code integration ? :)

ACP > Tools / Setings > Ad Code Integration >

Switch it on (top setting) then about the fourth option down 'Footer Code' put it there.

Not sure how it will look (depends on your code) but worth a quick try first before doing skin edits ;)


If its not right there, I'll suggest a couple of places to try it if needed.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#3 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 17 August 2010 - 05:04 PM

View PostAndyF, on 17 August 2010 - 04:54 PM, said:

Have you tried the ad-code integration ? :)

ACP > Tools / Setings > Ad Code Integration >

Switch it on (top setting) then about the fourth option down 'Footer Code' put it there.

Not sure how it will look (depends on your code) but worth a quick try first before doing skin edits ;)


If its not right there, I'll suggest a couple of places to try it if needed.

Many thanks about that Andy. :D

I didn't know about that. I just tried it and it worked which is great. The only problem I have with my code is that it doesn't intergrate into any colour of the skin theme like this:

http://img.photobuck...nboardindex.jpg

This is the code that I am using:

<table border="1" cellpadding="5" cellspacing="5" width="100%">
<tr>
<th><center><b><font size=3>Affiliates</font></b></center></th>
</tr>
<tr>
<td width="100%"><center><b><font size=2>
</font></b>
</center> </td>
</tr>
</table>

I've removed all the affiliate links from there.

If possible I wanted to add a bit of the skin theme into where the header of Affiliates is, if possible.

#4 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 17 August 2010 - 05:20 PM

Try this (not really tested) :)

<br />
<div class='general_box'>
<h3><img src='{$this->settings['img_url']}/comment_new.png' alt='' /> &nbsp;Affiliates</h3>
<br />

**** PUT YOUR CODE HERE ****

<br />
</div>
<br />

I think the image code (the comment_new.png, its this > Posted Image might not parse properly in there, but you can simply link to a suitable image if needed. The one you want is /public/style_images/master/comment_new.png

Edited by AndyF, 17 August 2010 - 05:23 PM.
Typo :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#5 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 18 August 2010 - 08:41 AM

That coding worked. Thank you!  :thumbsup:

I removed the br tags as I was trying to move it to fit in closer to the icon legends and the skin menu underneath but haven't quite got that far like this:

http://img.photobuck...affiliates2.jpg

Is there a way to tighten that gap at all? :)

#6 SteveH

SteveH

    Member

  • IM Supporters
  • PipPipPip
  • 27 posts
  • IPB Version:v3.1.x

Posted 18 August 2010 - 09:27 AM

Is there any particular </br> in the GlobalTemplate above the board footer for the skin you are using.

#7 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 18 August 2010 - 02:50 PM

There's nothing in the global template to remove the gap unfortunately, its just
{$items['adFooterCode']}
, I cannot see anything elsewhere either, and not sure if (attempting) to chop it out of a source file would be a good idea (although I've not checked to see if a linebreak is added there)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#8 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 18 August 2010 - 03:06 PM

That's fine then and thanks for looking.  :thumbsup:

One last thing, which part of my code would I need to remove to get rid of the black border?

Edit: Forget that, I just changed the 1 border size to 0 and that worked.

Thanks Andy for your help, much appreciated.  :D :thumbsup:

#9 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 18 August 2010 - 05:39 PM

You're welcome.

Changing Border to 0 usually removes said border ;)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#10 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 18 August 2010 - 05:40 PM

The issue this topic was opened for has now been resolved. :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users