Coinbase

Author Topic: Question On Displaying JPG or GIF Banners?  (Read 10377 times)

0 Members and 1 Guest are viewing this topic.

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Question On Displaying JPG or GIF Banners?
« on: June 08, 2007, 11:16:50 pm »
Is it possible to use the SMF Ads plug-in to display banner ads which are in the form of JPG or GIF files by creating a link to the file on a server?

I installed the plug-in and tried to configure it, but it seems I can only put in HTML or PHP code for ad services like Google Adsense.

Any direction on this would be much appreciated.

Offline ITA003

  • Jr. Member
  • **
  • Posts: 63
Re: Question On Displaying JPG or GIF Banners?
« Reply #1 on: June 11, 2007, 03:25:47 am »
You can insert this HTML code for insert your image...

Code: [Select]
<a href="www.putDestUrlHere.domain/">
<img src="http://www.yourimageserver.domain/Image_Name.gif" />
</a>


Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #2 on: June 11, 2007, 05:07:10 am »
Many thanks. I tried what you sugessted, but adds don't seem to be coming up. I am attaching a screen shot of my settings. Did I possibly do something wrong?

Offline ITA003

  • Jr. Member
  • **
  • Posts: 63
Re: Question On Displaying JPG or GIF Banners?
« Reply #3 on: June 11, 2007, 11:21:55 am »
The code is right!!
Do you enable the ads in the Permissions section?
To do this look at:

Go to Admin -> Permissions -> Guests group (Click on Modify) -> Check Enable Ads permission and Save changes

You must enable Ads for every Group do you want to show the Ads.

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #4 on: June 11, 2007, 07:04:16 pm »
Thanks Again. Ad Permissions are enabled for all groups. So still not sure what the problem is  ???

Offline ITA003

  • Jr. Member
  • **
  • Posts: 63
Re: Question On Displaying JPG or GIF Banners?
« Reply #5 on: June 12, 2007, 12:13:45 pm »
But the Google Adsense ads works properly?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Question On Displaying JPG or GIF Banners?
« Reply #6 on: June 12, 2007, 05:53:41 pm »
This is what I use:

Quote
<div align=center><a href="http://www.smfhelper.info">
<img src="http://www.smfhelper.info/pic.jpg">
</a></div>

Are there any errors in your error log. ???

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #7 on: June 12, 2007, 06:47:08 pm »
Thanks, I have not tried it with Google ads yet.

I changed the code to this, which is what you have, but still not working BigGuy:

<div align=left><a href="http://www.thaitriptips.com">
<img src="http://www.thaitriptips.com/TTTbanner.jpg">
</a></div>

I checked the error log, which is registering an error every few seconds and which looks like this:

http://www.photographythailand.com/Forum/index.php?action=viewErrorLog;desc;start=0 

8: Undefined index: lang_locale
/home/marcbkk/public_html/photographythailand/Forum/Sources/Subs.php
868



Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #8 on: June 12, 2007, 06:50:09 pm »
I just tried putting in my Google Adsense code and does not work either  :(

I am wondering if it is theme related? I am using Themis.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Question On Displaying JPG or GIF Banners?
« Reply #9 on: June 12, 2007, 06:55:08 pm »
Have you done the manual edits for that theme. ??? switch to default and see if the ads show.

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #10 on: June 12, 2007, 07:05:50 pm »
Yes, thank you, it is a theme issue as the ads show with the default theme.

What change would you think I need to make to the theme possibly to get it to work?

Also, I noticed when I added the Ad under Ad Management it created two entries for the ad.

I thought maybe it didn't matter, but it does as it displays the ad twice in a row as a result. I deleted the ad and added it again, but it again created two ad entries for the same ad.

Not sure why this is happenning either, but obviously it is not a good thing as the ads will show in a repetitive way.

Thank you BigGuy.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Question On Displaying JPG or GIF Banners?
« Reply #11 on: June 12, 2007, 07:13:34 pm »
It duplicates because some of the edits are in twice. Check the index.php file in the ROOT of your SMF install and remove any duplicate code. In the "Theme Support" board stickied to the top is a list of all the edits for every ad mod. Pick the version of the ad mod you have and edit ONLY the template files in the theme you are using.

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #12 on: June 12, 2007, 07:22:23 pm »
Thanks again BigGuy. I will check the index.php file for duplicates.

Is this the sticked post you are referring to?

http://www.smfads.com/forums/index.php?topic=22.0

Just not sure which specific post to refer to for the Themis theme. Thanks!

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Question On Displaying JPG or GIF Banners?
« Reply #13 on: June 12, 2007, 07:26:12 pm »
I would imagine you are using the newest version of the ad mod and SMF 1.1.2 correct. ??? If so check this sticky out:

http://www.smfads.com/forums/index.php?topic=475.0

If the ad mod is installed all you have to do is edit the template files listed in that stickie. :)

Offline MarcBkk

  • Jr. Member
  • **
  • Posts: 16
Re: Question On Displaying JPG or GIF Banners?
« Reply #14 on: June 12, 2007, 07:36:50 pm »
Yes, thanks. I am running 1.1.2 on SMF and 2.3 on SMF Ads. Will have a look at that sticky post.

I edited the index.php file and there were 3 or so duplicate code references to ads., which I removed. This got rid of the duplicate ad entry when I add an ad.

The ad however still displays on forum pages in duplicate when testing with the default theme?

 

SMF Ads Support Forum

Re: Question On Displaying JPG or GIF Banners?
« Reply #14 on: June 12, 2007, 07:36:50 pm »
.