Few small errors in there...
links edit full should be
- Code: Select all
<option value="requested" <? if($linkData['link_active']=='requested') echo ' selected="selected" '; ?>>Requested</option>
line 138
in links_add, where you have made the changes below, you will also need todo similair in links-edit.php approx line 76 and also links-edit-full.php around line 34
- Code: Select all
if($_REQUEST['link_active']=='true' || $_REQUEST['link_active']=='false' || $_REQUEST['link_active']=='requested' ) $link_active = $_REQUEST['link_active']; else $link_active = '';
Note links-edit.php uses a slightly different format as per below...
- Code: Select all
if($_REQUEST['link_active'][$i]=='true') $link_active = $_REQUEST['link_active'][$i]; else $link_active = 'false';
it should be changed to...
- Code: Select all
if($_REQUEST['link_active'][$i]=='true' || $_REQUEST['link_active'][$i]=='false' || $_REQUEST['link_active'][$i]=='requested' ) $link_active = $_REQUEST['link_active'][$i]; else $link_active = '';
Also im concerned where you made the change...
- Code: Select all
link_active enum('false','requested','true') NOT NULL default 'false'
this change needs to be made to the actual live database if you have already installed linx-lite, you cannot change this value by editing any scripts unless you are going todo a fresh installation. In which case, it should be changed in /install/mysql.inc.php
Again though i'd suggest you look into using the custom fields as they will allow you to store any type of data you wish on a link without the need to edit the scripts in any place
