PDA


View Full Version : Alter customfieldbits


jasharen
09-28-2007, 10:02 PM
Brian (or anyone else really ;) )

I'd like to get some suggestions around how we would modify the $customfieldbits field to allow the ability to do $customfieldbits1, $customfieldbits2, etc.

The idea being that each custom field stored in the DB would get assigned to a single variable, that way we could easily in the templates arrange the screens however we wanted.

My entry screen is very non standard and I really need the ability to place each custom field wherever I need to within the screen.

I am going to attempt this on my own, but any suggestions or feedback is most welcome. :)

jasharen
09-28-2007, 10:17 PM
Ok!!

Got the effect I was looking for, and it was pretty simple too.

Open functions_vba_links_savelink.php.

Find:
eval('$cfbits .= "' . fetch_template('adv_links_addlink_custombits') . '";');

Comment the line out and put in its place:

eval('$cfbits[] = "' . fetch_template('adv_links_addlink_custombits') . '";');

Once you have done that, open template ADV_LINKS_ADD_EDIT:

Find:

$Customfieldbits

and replace it with:

$Customfieldbits[0]
$Customfieldbits[1]
$Customfieldbits[2]
etc

Disclaimer: If you decide to do this, I take no responsibility whatsoever for the impact it may have on your site! ;) it appears to work so far, but I am by no means an expert!! :D