anchor database field too short
hedac - February 26, 2009 - 13:50
| Project: | Affiliates |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | paulbooker |
| Status: | closed |
Jump to:
Description
I needed more chars in the anchor field of the database because 100 is not enough for multisite installations
I would suggest changing it to 256
ALTER TABLE `affiliates_ads` CHANGE `anchor` `anchor` VARCHAR( 256 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL

#1
also have to change maxlength in affiliates.module for anchor
it was 120, now 256
$form['affiliate']['anchor'] = array(
'#type' => 'textfield',
'#title' => t('Hosted button URL'),
'#default_value' => $affiliate->anchor,
'#size' => 40,
'#maxlength' => 256,
'#description' => t('If your button is hosted elsewhere, enter the URL here.')
);
#2
I made the change for 'anchor' and also for 'redirect' and 'referer'.
Ill get these changes committed to the development branch later today.
Thanks for your help :-)
Best, Paul
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.