View Full Version : Need to Add to DB & AffSignup
hbnmgr
13th December 2005, 09:31 PM
Need to add a few items to the PAPro v2 Database and then insert into affsignup.php page, so that new members can add these items and have access to them.
Items are;
cbid
datafield1
datafield2
exturl
I know how to add items to the Database, but names seem to be different in the affsignup page vs the database. So how do go about accomplishing this goal??? Are there different naming conventions?
Once I do this, I should be able to add to the Back Office for viewing as well.
Thanks!
SRR/arr
Still waiting for answer of how to make new additions to Database get posted from the Back Office and from affsignup.php page.
Additions made to DB at: wd_g_users
Added - cbank; data1; data2
Added these fields to the file;
include/Affiliate/Scripts/BI/SignupUser.class.php
In order to access new fields using showData script,
modified file include\Affiliate\Scripts\Bl\AffDetails.class.php
Added this line into the printScript function:
$result .= $this->generateReplace('cbank',$rs->fields['cbank']);
right before this line:
$result .= ' document.write(text);';
Also defined constants with prefix L_G_. which are language constants
within affiliate/langs/*.php files.
But still does not post to DB from Back Office or affsignup page.
What else needs to be done???
Stephen R.
SRR/arr
hbnmgr
6th March 2006, 09:01 PM
Need to modify the following (after mods made above).
Look in .... include/Affiliates/Merchants/B1/Affiliate.class.php
Modify/Add to the following Functions:
function chedkData
function insert
function update
Your Welcome!
SRR/arr
hbnmgr
8th March 2006, 03:14 AM
Maybe found New Problem!?!?
After making changes and additions noted above, get Required of CBANK OR WEBURL is empty. Why is that?
And How can I make them NOT Required?
Note: DB fields have NULL:Yes, DEFAULT:Null
Any Reply would be appreciated.
Thanks!
SRR/arr
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.