View Full Version : Affiliates Module for vBa CMPS [Affiliate hack needed]
BoNfiRe
06-21-2004, 10:00 PM
this will add a scrolling/fading block to your vBa CMPS.
First you need this hack (https://vborg.vbsupport.ru/showthread.php?t=63044)
All instructions included njoy
Demo Here (http://www.tlgn.com/)
Dean C
06-22-2004, 02:21 PM
Thankyou for sharing your work with the community :)
badpacket
06-22-2004, 06:43 PM
Cool.. I think i'll be installing this.. :)
Thanks!
BoNfiRe
06-24-2004, 11:40 AM
Glad you like it I take no credit for this I used digicreations code for vBindex. I would like to know how u got on with the install :)
badpacket
06-24-2004, 07:12 PM
Well it appears that i'm having some issues during the V.2 upgrade of affiliates, so once i get that fixed i'll letcha know :)
Cole2026
06-28-2004, 08:02 PM
Error in code i dunno if its how my site is setup or what but if anyone else gets an error on the main cmps page do this:
Open File affilateblock.php
Find This
$faffiliate= $DB_site->query("SELECT sitename,siteurl,affiliate_id,clicksout,clicksin,b uttonurl FROM " . TABLE_PREFIX . " affiliates WHERE active='1' ORDER BY clicksin DESC LIMIT $affsettings[top_limit]");
Replace with this
$faffiliate= $DB_site->query("SELECT sitename,siteurl,affiliate_id,clicksout,clicksin,b uttonurl FROM affiliates WHERE active='1' ORDER BY clicksin DESC LIMIT $affsettings[top_limit]");
There is a very slight mistake in the 'affiliatebits' template.
The wring variable is used to call the affiliate ID.
Replace with this:
<br /><if condition="$show[button]"><a href="$vboptions[bburl]/affiliate.php?do=redirect&u=$affiliate[siteurl]&id=$affiliate[affiliate_id]"><img onmouseover=high(this) style="FILTER: alpha(opacity=30); moz-opacity: 0.3" onmouseout=low(this) border=0 src="$affiliate[buttonurl]" border="0" /></a><br />
badpacket
07-01-2004, 08:59 PM
Yea i dunno whats wrong, but its not redirecting properly going from the cmps page.. Works fine from the affiliates.php page.....
*edit
well i found my problem.. my "id" is "a" instead of &id=affiliateid.. so i just replaced the &id in my affiliate bits to &a
seems to work fine.. my only problem now is my redirecting thats acting up.. good work BonFire :)
BoNfiRe
07-01-2004, 09:03 PM
weird .......
whats your site cos i'm a bit lost
aranthorn
01-21-2005, 02:18 PM
Yea i dunno whats wrong, but its not redirecting properly going from the cmps page.. Works fine from the affiliates.php page.....
*edit
well i found my problem.. my "id" is "a" instead of &id=affiliateid.. so i just replaced the &id in my affiliate bits to &a
seems to work fine.. my only problem now is my redirecting thats acting up.. good work BonFire :)
thank god you posted that
ambrosious
01-30-2005, 01:29 AM
Can we get a screen shot of this?
Magical1
02-02-2005, 04:36 AM
IM GETTING THIS ERROR....ANY CLUES?
Database error in vBulletin 3.0.1:
Invalid SQL: SELECT top_limit,top FROM affiliates_settings
mysql error: Table 'magical_vb3.affiliates_settings' doesn't exist
mysql error number: 1146
Date: Wednesday 02nd of February 2005 12:31:19 AM
Script: http://www.magicalsoftware.org/vb3/cmps_index.php?styleid=3
Referer: http://www.magicalsoftware.org/vb3/cmps_index.php?styleid=3
playstation
04-24-2005, 04:36 PM
Works great. :)
Thanks
FightRice.com
04-28-2005, 02:31 AM
Will this work with 3.0.7?
playstation
04-30-2005, 04:27 PM
Will this work with 3.0.7?
Working fine on my 3.0.7 Here (http://playstation-elite.co.uk)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.