Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Affiliates for 3.5 Details »»
vB Affiliates for 3.5
Version: BETA 1.0.6, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-17-2005 Last Update: 09-29-2005 Installs: 77
Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Author: An-net
Ported by: Danny.vbt

Description:
Now add,manage,display all your communties/boards affiliates in a simple and organized fashion.

[high] This hack is in it's early BETA stages, and it should be used for DEBUGGING purposes only. [/high]

Features:
-Administration Panel
-multiple affilliates
-image button verification
-modules
-top listing
-types/categories
-reporting system
-rating system
-in and out clicking system
-redirects
-delay system
-disclaimers
-extremely customizeable
-display options
-pagination
-approval system
-usergroup permissions
-active system
-image buttons

And more!

Install Overview:

[high] Please upload files before importing product! [/high]
(Thanks Kirby!)

File Uploads(4)
Template Edits(1)
Products(1)
Cron (1)


Please Note:

This hack is in BETA, if you find any bugs whatsoever report them, and I will fix them asap. (I'm almost positive that there will be a few silly bugs.)

Thank You,
And please click Install if you use this hack.


Updates:
BETA 1.0.7
Uploaded new affiliate.php by HawkBizKit, fixes ON clause error
BETA 1.0.6
Uploaded new affiliate.php by Dark_Wizard
BETA 1.0.5
Fixes Installation/Uninstallation issues and table prefix error
BETA 1.0.4
Added missing phrases, fixed permissions issue.
BETA 1.0.3
Fixed errors on xml product, also added auto rebuild bitfields.
BETA 1.0.2
Fixed parse error on affiliate.php

Screen Shots Below: They are Poorer quality due to gifs.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 09-28-2005, 01:38 AM
ReadOrDie ReadOrDie is offline
 
Join Date: Sep 2005
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
You have to set permissions in the usergroup manager
Nothing in the usergroup manager says anything about affiliates...
Reply With Quote
  #73  
Old 09-28-2005, 02:00 AM
Guest190829
Guest
 
Posts: n/a
Default

Did you upload the bitfield_vbaffiliates.xml file into your includes/xml directory?
Reply With Quote
  #74  
Old 09-28-2005, 05:08 AM
Impreza04 Impreza04 is offline
 
Join Date: Jul 2005
Location: UK
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has the affiliate file been updated yet..?
Reply With Quote
  #75  
Old 09-28-2005, 10:58 AM
ReadOrDie ReadOrDie is offline
 
Join Date: Sep 2005
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
Did you upload the bitfield_vbaffiliates.xml file into your includes/xml directory?
Alright I installed it, but yet again I'm getting another error:
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 628
Reply With Quote
  #76  
Old 09-28-2005, 02:51 PM
Guest190829
Guest
 
Posts: n/a
Default

What page are you getting that error? I think I filtered out a integer type variable, that's what is causing the error.
Reply With Quote
  #77  
Old 09-28-2005, 04:39 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Impreza04
Everything is working on my test board apart from when trying to view affiliate.php

PHP Code:
Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT FROM vb_ affiliates_settings;

MySQL Error  Table 'integram_crg.vb_' doesn't exist
Error Number : 1146
Date         : Monday, September 26th 2005 @ 04:22:45 PM 
EDIT: Actually I see the problem myself and its fixed..
PHP Code:
//################## Begin Settings###################//
$setting$db->query_first("SELECT * FROM " TABLE_PREFIX ." affiliates_settings"); 
Has a space..
Replace with
PHP Code:
//################## Begin Settings###################//
$setting$db->query_first("SELECT * FROM " TABLE_PREFIX ."affiliates_settings"); 
Lets try on my real board


The disabled message
"Sorry but the affiliate section of the siteis currently disabled."
Needs a space between site and is

and
PHP Code:
Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT affiliate_id,sitename,siteurl,buttonurl,name,id,sitedesc,clicksout,clicksin,totalrating,totalvotes 
                                        FROM vB_affiliates LEFT JOIN vB_affiliates_types 
                                        ON affiliates
.type affiliates_types.id 
                                        WHERE active
='1' AND approved='1' 
                                        
ORDER BY sitename DESC 
                                        LIMIT 0
,20;

MySQL Error  Unknown table 'affiliates' in on clause
Error Number 
1109
Date         
MondaySeptember 26th 2005 09:05:35 AM
Script       
http://www.playstation-racing.co.uk/forum/affiliate.php?do=listaffiliates 
thanks, that fixed my SQL error, also.

Are the General Settings optimally configured by default?
Reply With Quote
  #78  
Old 09-28-2005, 04:45 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT affiliate_id,sitename,siteurl,buttonurl,name,id,si tedesc,clicksout,clicksin,totalrating,totalvotes
FROM opio_affiliates AS affiliates_types
LEFT JOIN opio_affiliates_types AS affiliates_type
ON opio_affiliates.type = opio_affiliates_types.id
WHERE active='1' AND approved='1'
ORDER BY sitename DESC
LIMIT 0,5;

MySQL Error : Unknown table 'opio_affiliates' in on clause
Error Number : 1109
Date : Wednesday, September 28th 2005 @ 11:45:15 AM
Script : http://forum.opiophile.org/affiliate...listaffiliates
Referrer : http://forum.opiophile.org/affiliate.php
IP Address : 192.168.0.110
Username : bi11i
Classname : vB_Database_MySQLi
I'm still getting this error no matter which hack to the mod I try. Any definitive solution?
Reply With Quote
  #79  
Old 09-28-2005, 04:53 PM
Hawkbizkit Hawkbizkit is offline
 
Join Date: Aug 2004
Location: Vacaville, CA
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bi11i
I'm still getting this error no matter which hack to the mod I try. Any definitive solution?
you are missing the who affiliates table it's self it looks like try runing the query to install the table
Quote:
CREATE TABLE `opio_affiliates` (
`affiliate_id` int(10) NOT NULL auto_increment,
`sitename` varchar(50) NOT NULL default '',
`siteurl` varchar(250) NOT NULL default '',
`sitedesc` mediumtext NOT NULL,
`buttonurl` varchar(150) NOT NULL default '',
`type` tinyint(4) NOT NULL default '0',
`email` varchar(250) NOT NULL default '',
`clicksout` int(20) NOT NULL default '0',
`clicksin` int(20) NOT NULL default '0',
`active` tinyint(4) NOT NULL default '0',
`totalrating` bigint(20) NOT NULL default '0',
`totalvotes` bigint(20) NOT NULL default '0',
`approved` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`affiliate_id`),
KEY `sitename` (`sitename`),
KEY `siteurl` (`siteurl`),
KEY `email` (`email`)
) ;
Reply With Quote
  #80  
Old 09-28-2005, 06:14 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hawkbizkit
you are missing the who affiliates table it's self it looks like try runing the query to install the table
Quote:
error number: 1050
error desc: Table 'opio_affiliates' already exists
when running the query...
Reply With Quote
  #81  
Old 09-28-2005, 06:22 PM
Hawkbizkit Hawkbizkit is offline
 
Join Date: Aug 2004
Location: Vacaville, CA
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh dummy me i read your error wrong sorry well i would say try this code

Find: (should be around line 307ish in affiliates.php)
PHP Code:
            $faffiliate=$db->query_read("SELECT affiliate_id,sitename,siteurl,buttonurl,name,id,sitedesc,clicksout,clicksin,totalrating,totalvotes 
                                        FROM " 
TABLE_PREFIX "affiliates AS affiliates LEFT JOIN " TABLE_PREFIX "affiliates_types  AS affiliates_type
                                        ON " 
TABLE_PREFIX "affiliates.type = " TABLE_PREFIX "affiliates_types.id 
                                        WHERE active='1' AND approved='1' 
                                        ORDER BY 
$by $in 
                                        LIMIT 
$limitvalue,$perpage"
                                        
); 
Replace with: on the first line in this code there is a space between tota lrating just remove the 2 spaces and it should work just fine.
PHP Code:
            $faffiliate=$db->query_read("SELECT affiliate_id,sitename,siteurl,buttonurl,name,id,sitedesc,clicksout,clicksin,totalrating,totalvotes 
                                        FROM " 
TABLE_PREFIX "affiliates LEFT JOIN " TABLE_PREFIX "affiliates_types 
                                        ON " 
TABLE_PREFIX "affiliates.type = " TABLE_PREFIX "affiliates_types.id 
                                        WHERE active='1' AND approved='1' 
                                        ORDER BY 
$by $in 
                                        LIMIT 
$limitvalue,$perpage"
                                        
); 
Thats how i have my code setup and it is working just fine and when i tried it your way it doesn't work...

EDIT: Fix down in post #88
Reply With Quote
Reply


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


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05315 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete