View Full Version : Just a simple Affiliate link Module, I have some code, but not working right
GamingVidz.com
08-06-2005, 07:13 AM
I just want to be able to simply have a standard module, same background color border etc. All I want to be able to do is put mini side banner image wiht a url to a site that opens in a new window.
Here is the code I have so far, the border doesn't work, thats the main problem it just won't show up.
<table align="center" class="page" cellspacing="0" cellpadding="0"width="100%">
<table bgcolor="#f7f7f7" border="0" cellpadding="0" cellspacing="0">
<td width="110" height="39" align="left" valign="top"><a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="110" height="39" border="0" /></a></td>
Any help? The only problem I'm having is the border around the module not showing up, and also, I can't get the image to open in a new url lol (but I'm sure I can figure that out, just forgot how to, so used to the stuff working without even having to code) lol
mholtum
08-06-2005, 07:26 AM
I just want to be able to simply have a standard module, same background color border etc. All I want to be able to do is put mini side banner image wiht a url to a site that opens in a new window.
Here is the code I have so far, the border doesn't work, thats the main problem it just won't show up.
<table align="center" class="page" cellspacing="0" cellpadding="0"width="100%">
<table bgcolor="#f7f7f7" border="0" cellpadding="0" cellspacing="0">
<td width="110" height="39" align="left" valign="top"><a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="110" height="39" border="0" /></a></td>
Any help? The only problem I'm having is the border around the module not showing up, and also, I can't get the image to open in a new url lol (but I'm sure I can figure that out, just forgot how to, so used to the stuff working without even having to code) lol
This is what I would use.
<center>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
<br>
<br>
</a>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
<br>
<br>
</a>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
<br>
<br>
</a>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
<br>
<br>
</a>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
<br>
<br>
</a>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
</a>
No need for all worry. It should be a transparent BG. Giver a shot and let me know
GamingVidz.com
08-06-2005, 07:31 AM
http://www.gamingvidz.com/
If you're still on check out what it did, It put the name affiliates at the bottom and then put several vgl banners ( I know thats because you had it several times -thats not the issue) And there still was no border...
hmmmm
mholtum
08-06-2005, 07:32 AM
hold on. Give me a sec
mholtum
08-06-2005, 07:35 AM
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<center>
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" /></td>
</center>
</tr>
</tbody>
</table>
<br />
Then edit your module.
Use Module Shell Template No
GamingVidz.com
08-06-2005, 07:40 AM
It worked but I don't want it to be collapseable, also the little collapse image is stretched. (thanks for the help thus far though) It would seem really easy huh?
mholtum
08-06-2005, 07:43 AM
It worked but I don't want it to be collapseable, also the little collapse image is stretched. (thanks for the help thus far though) It would seem really easy huh?
Here you go:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<td class="$getbgrow">
<a href="http://www.vgleague.com"><img src="$stylevar[imgdir_misc]/vglbanner.jpg" alt="" width="100" height="39" border="0" />
</td>
</tr>
</tbody>
</table>
<br />
;) That will be $5. ;)
GamingVidz.com
08-06-2005, 07:48 AM
Do you accept Visa?
Heh anyway thanks a lot, I just had one other question, is it possible to make it be flush with the border? that way I can fit the image in there better. And also, the image doesn't link to a new window, I think its called a parent or something. Anyway I'd also like it to launch in a new window.
mholtum
08-06-2005, 07:50 AM
Do you accept Visa?
Heh anyway thanks a lot, I just had one other question, is it possible to make it be flush with the border? that way I can fit the image in there better.
Thanks a lot though, I think you logged off I'm going to sleep now as well, hopefully i'll owe you another $5 tomorrow.
Yes, I accept visa through Paypal. ;) As for making the image flush, try making it larger. I would make the image background transparent and it will look better IMO
GamingVidz.com
08-06-2005, 07:52 AM
I tried making it bigger it just expaned the affiliate module
mholtum
08-06-2005, 07:55 AM
I tried making it bigger it just expaned the affiliate module
I guess you answered your own question then. Try making the Image background transparent. See if that makes it look better..
mholtum
08-06-2005, 07:56 AM
Also, on your top center adsense module, consider placing an <br /> at the very bottom of the template. It will give you a little space between that and the next module. It will make your portal more uniform.
GamingVidz.com
08-09-2005, 06:09 AM
< br/>
That doesn't work
bigandyuk
08-09-2005, 07:30 AM
Hi, I hope you don't mind me breaking into this thread but it is on a similar theme to what I want to do. I am not a coder. I would like to place my Amazon affiliate banner at the top of each page (a bit like the ones here). I have taken a look at adding rotational banners and must admit I am just confused. Is there an easy step by step guide to adding that code to the top of each page? I.E the portal,forum and gallery.
Regards
Andy Banwell
www.journeybeyond.org (http://www.journeybeyond.org/)
mholtum
08-09-2005, 07:44 AM
here it is in the header.. Just edit the header template and you are good to go
GamingVidz.com
08-09-2005, 03:27 PM
how come the break doesn't work?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.