1
modkid
Advertisements in articles module
  • 2005/3/4 17:18

  • modkid

  • Just popping in

  • Posts: 60

  • Since: 2004/3/23


Is there a module for advertisements to show up in articles? like a cube of 250x250 ad in the middle to the right, like seen on most popular hardware review sites such as toms hardware etc etc?

2
ackbarr
Re: Advertisements in articles module

I believe AMS can do this. Mithy or Brash, can you correct me if I'm wrong?

3
limecity
Re: Advertisements in articles module
  • 2005/3/4 17:22

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


i did ask the same question few days ago.
Brash said the AMS module is able to do that. but in cube.. MmMm not very sure. I haven't test it out yet.

So far, I don't think there are any other module that you can add "ads" script into it.

4
Mithrandir
Re: Advertisements in articles module

AMS has that "banner" feature where you can add custom code (HTML allowed) to either show an ad or pull an add from a banner management script such as PHPAdsNew.

The positioning of the output is controlled in the article template.

5
newkey04
Re: Advertisements in articles module
  • 2005/3/4 17:32

  • newkey04

  • Just popping in

  • Posts: 3

  • Since: 2005/2/26


I have done this with xfsection. I just layed out the article using HTML and pasted it into the article text box.

That uses an iframe with content provided by Amazon but I am sure you could just reference the image in the HTML you past in there to get what you are after. There are probably other ways using the built in image handling of XOOPS but I already had the article written in HTML so havn't tried.

6
modkid
Re: Advertisements in articles module
  • 2005/3/5 1:12

  • modkid

  • Just popping in

  • Posts: 60

  • Since: 2004/3/23


using phpads 2.0.3. It has the features like geocities annoying banners, but not something like an extra for placement in articles or news.

7
suzkaw
Re: Advertisements in articles module
  • 2005/3/19 22:42

  • suzkaw

  • Just popping in

  • Posts: 1

  • Since: 2003/8/21


I just manually added this by opening the file modules/new/article.php and finding this:
$story['text'] = $article->hometext();


Then replace with something like this:
$story['text'] = '<div style="float: right">
    <script type="text/javascript"><!--
google_ad_client = "";
google_alternate_color = "FFFFFF";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "";
google_color_bg = "";
google_color_link = "";
google_color_url = "";
google_color_text = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>'
;
$story['text'] .= $article->hometext();


Hope this helps someone.

Login

Who's Online

176 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits