vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Affiliates Module for vBa CMPS [Affiliate hack needed] (https://vborg.vbsupport.ru/showthread.php?t=66393)

BoNfiRe 06-21-2004 10:00 PM

Affiliates Module for vBa CMPS [Affiliate hack needed]
 
this will add a scrolling/fading block to your vBa CMPS.

First you need this hack

All instructions included njoy

Demo Here

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
PHP Code:

$faffiliate$DB_site->query("SELECT sitename,siteurl,affiliate_id,clicksout,clicksin,buttonurl FROM  " TABLE_PREFIX " affiliates WHERE active='1' ORDER BY clicksin DESC LIMIT $affsettings[top_limit]"); 

Replace with this
PHP Code:

$faffiliate$DB_site->query("SELECT sitename,siteurl,affiliate_id,clicksout,clicksin,buttonurl FROM affiliates WHERE active='1' ORDER BY clicksin DESC LIMIT $affsettings[top_limit]"); 


jugo 06-30-2004 10:03 PM

There is a very slight mistake in the 'affiliatebits' template.

The wring variable is used to call the affiliate ID.

Replace with this:
Code:

<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

Quote:

Originally Posted by badpacket
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/c....php?styleid=3
Referer: http://www.magicalsoftware.org/vb3/c....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

Quote:

Originally Posted by FightRice.com
Will this work with 3.0.7?

Working fine on my 3.0.7 Here


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete