PDA


View Full Version : Help needed with a new module


AndyA
07-22-2005, 10:21 AM
Hi,
I want to add a module to my vba cmps 2 and I've found some rss content which I'd like to show in that new module. I think it's just a case of adding some code but if someone can take a look here (file:///c:/Documents%20and%20Settings/Andy/Desktop/rss.htm) then you'll get a better idea.

I'm a total novice when it comes to modules so a simple lo-tech response would be great. :D

vb 3.0.7 www.throttlejockey.co.uk

pedigree
07-22-2005, 12:33 PM
No, we cant look at it there as you linked us to a file on your harddrive.

file: //c:/Documents%20and%20Settings/Andy/Desktop/ rss.htm

isnt much good

mholtum
07-22-2005, 12:39 PM
No, we cant look at it there as you linked us to a file on your harddrive.

file: //c:/Documents%20and%20Settings/Andy/Desktop/ rss.htm

isnt much goodHe did warn us that he was a n00b.. ;)

smackLAN
07-22-2005, 12:44 PM
I am sorry but.... :D :D :D :D

AndyA
07-22-2005, 02:26 PM
Oops ! :o

Will get that sorted. :D

xtremeoff-road
07-22-2005, 03:02 PM
Hi,
I want to add a module to my vba cmps 2 and I've found some rss content which I'd like to show in that new module. I think it's just a case of adding some code but if someone can take a look here (file:///c:/Documents%20and%20Settings/Andy/Desktop/rss.htm) then you'll get a better idea.

I'm a total novice when it comes to modules so a simple lo-tech response would be great. :D

vb 3.0.7 www.throttlejockey.co.uk

I am assuming you want to run it like our news feed on our home page??

www.weapondepot.com

AndyA
07-22-2005, 03:06 PM
The content can be of 2 different types, hope this makes sense ?

JavaScript code

<script language="JavaScript" src="http://ns2.bigbold.com/digest/382d9b259ac7/af458d997426.js"></script>


or

PHP include code

<?php
include 'http://ns2.bigbold.com/digest/382d9b259ac7/af458d997426.html';
?>

It's created using this http://www.bigbold.com/rssdigest/index.html

virtualburn
07-30-2005, 05:03 PM
I was looking for some feeds etc for a while and I found this to be a good idea.

I am using ads to make members subscribe to advanced board services, this will make the ads appear after the first post in any thread. this is placed at the very bottom of postbit or postbit_legacy template, I used google ads.
<if condition="$post[postcount] == 1">
<if condition="in_array($bbuserinfo[usergroupid], array(1,2,6))">
$spacer_open
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-4403342228823268";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "142C4D";
google_color_bg = "333E65";
google_color_link = "F7E91D";
google_color_url = "CFEC0B";
google_color_text = "A6A9B4";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
<if condition="$bbuserinfo[usergroupid] == 2"><span class="smallfont">Remove these ads become a Premium Member</a>?</span><br></if>
</center>
$spacer_close
</if></if>
To make this appear after the second and third posts( I have 3 different ads after each) change the 1 to 2 in:]<if condition="$post[postcount] == 1">
To use it with the bigbold one mentioned use:<if condition="$post[postcount] == 1">
<if condition="in_array($bbuserinfo[usergroupid], array(1,2,6))">
$spacer_open
<center>
<script language="JavaScript" src="http://ns2.bigbold.com/digest/382d9b259ac7/af458d997426.js"></script><br>
</center>
$spacer_close
</if></if>

Hope this helps.

~vb