vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 10-29-2004, 12:51 AM
Roms Roms is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Adding a Rotating Banner/Ad to VBAdvanced CMPS

This will add an advertisement to all your VBAdvanced CMPS pages.

So here you go:

In the style manager edit the template "adv_portal"

Find

Code:
<body>
Replace with

Code:
<body onLoad="ranImage();window.status='YOUR SITES NAME';">
Save and Close

Add a new template named "adv_portal_advertisement"

Copy this into it and update it to link to your images and URLS:
Code:
<!-----Banner ads-------->
<SCRIPT LANGUAGE="JavaScript">
pix=new Array("http://www.YOUR-IMAGE-LINK-1","http://www.YOUR-IMAGE-LINK-2","http://www.YOUR-IMAGE-LINK-3")  ;
links=new Array("http://www.URL-FOR-IMAGE-1","http://www.URL-FOR-IMAGE-2","http://www.URL-FOR-IMAGE-3")  ;
imCt=pix.length;

function ranImage(){
ran=Math.floor(Math.random()*imCt);
document.images["image"].src=pix[ran];
document.getElementById("IMFbanner")  .href=links[ran];
}

</script>
<!-----end ads----------->
<!----- ads----------->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" 

class="tborder" width="100%">
<tr>
<td class="tcat"><b><DIV ALIGN=CENTER>Advertisement</b></div></td>
</tr>
<tr>
<td class="alt1" align="center"><BR>
<a href="http://www.URL-FOR-IMAGE-1" id="IMFbanner" target="_blank"><img src="http://www.YOUR-IMAGE-LINK-1" name="image" border="0"></a>
<BR>
</td>
</tr>
</table>
<br />
<!-----end ads----------->
Add Module in VBA CMPs

Title: Advertisement

Template to include: advertisement

Active: Yes

you MUST tick YES to updating all pages or you will get an error.
  #2  
Old 11-04-2004, 12:22 PM
CSS59 CSS59 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

do you have screen shots or a link please?
  #3  
Old 11-06-2004, 05:31 PM
MonkeyBoy MonkeyBoy is offline
Pass a Banana
 
Join Date: Oct 2004
Posts: 6
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

What if you don't have an adv_portal?
Do you just create one??
  #4  
Old 11-06-2004, 07:54 PM
Blaminator Blaminator is offline
Member
 
Join Date: Sep 2004
Posts: 64
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

Quote:
Originally Posted by MonkeyBoy
What if you don't have an adv_portal?
Do you just create one??
You have one if you installed vbacmps.
  #5  
Old 11-08-2004, 04:47 PM
Roms Roms is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

I added a pic but admin didn't approve it..


Main page near the center/bottom:
http://www.goinfantry.com
  #6  
Old 11-13-2004, 02:23 PM
Dirty Harry Dirty Harry is offline
Junior Member
 
Join Date: Sep 2004
Posts: 10
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

I'm unable to get the banners to Rotate, they show up as 2 different banners.
Could somebody post their layout that has more than one banner, so I can see what I'm doing wrong?

Thanks in advance
  #7  
Old 11-14-2004, 11:21 AM
Roms Roms is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

The top "<!-----Banner ads-------->" part of the script contains the multiple images, the bottom part "<!----- ads----------->" only has one image. the "ID" has to be the same and then the script will know to rotate that image.

So take your main image place it as the first pic in the top, add all your others after. Then place it a as the one in the bottom part. everything should work.
  #8  
Old 11-14-2004, 11:24 AM
Roms Roms is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

Dirty Harry;

If you want to post your URLs and URLS to images I'll write the code for you...
  #9  
Old 11-14-2004, 03:11 PM
Dirty Harry Dirty Harry is offline
Junior Member
 
Join Date: Sep 2004
Posts: 10
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

Thank You, the explanation was enough to help me get it going )
Now I'm tring to modify it, so it will open an e-mail with a predetermined subject line, as well as a popup text on mouseover.
  #10  
Old 11-14-2004, 07:34 PM
Roms Roms is offline
Junior Member
 
Join Date: Jun 2004
Posts: 19
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

Glad it worked for you.
  #11  
Old 12-04-2004, 12:28 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

I had the rotating adds working for a brief bit. But now it does not work again. Here is the code I am using in my adv_portal_advertisement in CMPS. Can someone look at it and see if they see anythign wrong. This is driving me crazy. I did change the body tag in my adv_portal aslo.


Code:
<!-----Banner ads-------->
<SCRIPT LANGUAGE="JavaScript">
pix=new Array("http://www.whiteblaze.net/images/WB-patchsmall.gif","http://www.whiteblaze.net/images/WB-shirtsmall.gif");

links=new Array
("http://www.whiteblaze.net/forum/wbshirt.php","http://www.whiteblaze.net/forum/wbshirt.php");

imCt=pix.length;

function ranImage(){
ran=Math.floor(Math.random()*imCt);
document.images["image"].src=pix[ran];
document.getElementById("IMFbanner")  .href=links[ran];
}

</script>
<!-----end ads----------->
<!----- ads----------->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet]$mods[title]</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<center>

<a href="http://www.whiteblaze.net/forum/wbshirt.php" id="IMFbanner" target="_blank"><img src="http://www.whiteblaze.net/logos/WB-smaller.gif" name="image" border="0"></a>


</center>
</td>
</tr>
</table>
<br />
<!-----end ads----------->
  #12  
Old 12-13-2004, 12:29 AM
CSS59 CSS59 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

so will is rotate the ads every time you refresh the page?


also I dont want any border around the banner or gradiant on top. What code do I eliminate?

Last edited by JonelZ; 12-13-2004 at 12:32 AM.
  #13  
Old 12-13-2004, 11:50 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

Another thing I noticed after I installed this is that the adds do rotate with Mozilla but not with IE. Did I do something wrong?
  #14  
Old 12-24-2004, 12:48 AM
bigcurt bigcurt is offline
Member
 
Join Date: Dec 2004
Posts: 35
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

anyone have just a quick shot of this hack? I really want it but I am slow and hate to install it and not like it lol.

Thanks
big curt
  #15  
Old 12-28-2004, 07:28 AM
burley burley is offline
Between here and oblivion
 
Join Date: Dec 2004
Posts: 71
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

great hack, but got a question.

each time you load the page, it shows the same banner, and than (quite quickly) shows different one, after which the banners wont rotate any more. Except of course if you reload the page, then it starts with the same banner again, but changes to another one..

Why is this? And can it be made that it randomly chooses the first banner and changes it only after a certain period of time?

Last edited by burley; 12-28-2004 at 07:35 AM.
  #16  
Old 01-02-2005, 03:19 PM
festivalman festivalman is offline
Junior Member
 
Join Date: Oct 2004
Posts: 6
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

What I did, was have the default picture be a clear pixel.gif, so that way it just shows the final randomized ad, instead of a full ad first and then switching it.
  #17  
Old 01-05-2005, 07:45 PM
bigcurt bigcurt is offline
Member
 
Join Date: Dec 2004
Posts: 35
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

I sort of got it to work but now like the ENTIRE page is ****ed up with firefox running...anyone got suggestions?
  #18  
Old 04-21-2005, 10:27 PM
Monica05 Monica05 is offline
Junior Member
 
Join Date: Apr 2005
Posts: 2
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

I'm sorry to bump this up, but it's relevant to this thread. I've got this installed, but i'm missing something apparently.
The advertisement box is showing up, but I can't get the banner images or link to go through.
When I open with Firefox, it just has the advertisment box.. When I open in IE, it has a red "x" where the image should be, and when i point to it it says "www.url for your image"

I've checked that I put them in the right spots, but i'm totally missing something.
  #19  
Old 04-21-2005, 10:56 PM
LEAD_WEIGHT's Avatar
LEAD_WEIGHT LEAD_WEIGHT is offline
Senior Member
 
Join Date: Mar 2005
Posts: 307
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

http://www.vbulletin.org/forum/showthread.php?t=79791
Seem to be a better version but still beta I made my own from Latest forum topics Module ex.http://www.theundergroundsource.com/ and it scrolls automatically but will replace it when Geek Advertising Banner system Beta 1 is out of beta.

This is on my site at the moment I will open site when I get a Gallery but it is hard to make a choice between vBadvanced Gallery & http://www.telekorn.de/ Photokorn Pro ? that product is due to come out in july or september 2005 until then I will open my site unofficially.

Here is the code I use right now for Ads.

Upload "fading Jscript script file" to root directory not forum directory.
  1. Admin=> Styles & Templates=> Style Manager=> Add New Template=> " adv_portal_advertise " => Copy & Paste code.
  2. Still in Admin C/panel goto vBa CMPS=> Add Modules=>

    Module Title: Advertisement
    Module Identifier: Leave blank
    File to Include: Leave as is
    OR Template to Include: advertise
    Active: Yes
    Column: Center [ Depends on size u chose for banner also ]
    Display Order: your choice
    Templates Used: leave blank
    Update All Pages? Yes

    Usergroups Here you may specifiy which usergroups will be able to view this module.
    This is up to u if u want certain usergroups not to view.

    Unregistered / Not Logged In Yes
    Registered Users Yes
    Users Awaiting Email Confirmation Yes
    (COPPA) Users Awaiting Moderation Yes
    Super Moderators Yes
    Administrators Yes
    Moderators Yes
    Banned Users Yes

    save & done!
As u can see that the colour corresponds to certain code areas
The darker blue is a part u can delete if not needed





Code:
<!-- Scrolling/Fading Links -->

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="545">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Banner Ads</strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

<SCRIPT src="fading.js"></SCRIPT>
<MARQUEE behavior= "scroll" align= "center" direction= "up" height="170" scrollamount= "2" scrolldelay= "15" onMouseOver="this.stop()" onMouseOut="this.start()">
<center>
<!-- Begin Links -->
<br><a href="http://buy.cyberscrub.com/avutility/index.php?ReferrerId=XXXX" target="_blank">
<img src="http://buy.cyberscrub.com/banners/BA_AV1_6_468x60_FT.jpg" border="0"></a>
<br><a href="</a>
<br><a href="</a>
<br><a href="</a>
<br><a href="</a>
<br><a href="</a>
<br><a href="</a>
<br><a href="</a>

<!-- End Links -->
</center>
</Marquee>
</td>
</tr>
<tr>
<td class="$getbgrow" align="center">
<img src="http://www.yourimage.com/Affiliates/foot_clan1.jpg" border="0">
<br><img src="http://www.yourimage.com/Affiliates/foot_clan2.jpg" border="0">
</td>
</tr>
<tr>
<td class="tcat" align="center"><span class="smallfont"><strong><a href="http://www.forumthread.com/forums/showthread.php?t=2">Click Here to Place your Ads</a></strong></span>
</td>
</tr> 
</table>
<br />
	
<!-- End Scrolling/Fading Links -->

Last edited by LEAD_WEIGHT; 05-04-2005 at 09:02 PM.
  #20  
Old 04-22-2005, 05:51 AM
Monica05 Monica05 is offline
Junior Member
 
Join Date: Apr 2005
Posts: 2
Default Re: Adding a Rotating Banner/Ad to VBAdvanced CMPS

That's really nice! I like the way it scrolls.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacks from vBadvanced > CMPS Intex Troubleshooting / "How do I..." Questions 6 02-16-2006 11:16 AM
Adding in CMPS to vBadvanced Dee Troubleshooting / "How do I..." Questions 16 10-19-2004 05:27 PM
Difference btw vBadvanced CMPS & vBadvanced Homepage? Millionaire Chit Chat 5 08-27-2004 01:24 PM
Help with IMG Tag parse on vBadvanced CMPS Atomic Fireball Add-On Modules & Modifications 1 07-14-2004 09:57 PM
vBadvanced CMPS Questions Big Kahuna Troubleshooting / "How do I..." Questions 1 06-24-2004 12:54 PM


All times are GMT -4. The time now is 05:48 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.