![]() |
|
#1
|
|||
|
|||
|
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> Code:
<body onLoad="ranImage();window.status='YOUR SITES NAME';"> 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----------->
Title: Advertisement Template to include: advertisement Active: Yes you MUST tick YES to updating all pages or you will get an error. |
|
#2
|
|||
|
|||
|
do you have screen shots or a link please?
|
|
#3
|
|||
|
|||
|
What if you don't have an adv_portal?
Do you just create one?? |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
I added a pic but admin didn't approve it..
![]() Main page near the center/bottom: http://www.goinfantry.com |
|
#6
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Dirty Harry;
If you want to post your URLs and URLS to images I'll write the code for you...
|
|
#9
|
|||
|
|||
|
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
|
|||
|
|||
|
Glad it worked for you.
|
|
#11
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
I sort of got it to work but now like the ENTIRE page is ****ed up with firefox running...anyone got suggestions?
|
|
#18
|
|||
|
|||
|
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
|
||||
|
||||
|
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.
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
|
|||
|
|||
|
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 | |
|
|
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 |