Results 1 to 2 of 2

Thread: Alter customfieldbits

  1. #1

    Default Alter customfieldbits

    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.

  2. #2

    Default Re: Alter customfieldbits

    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!!
    Last edited by jasharen; 09-30-2007 at 02:34 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Make customfieldbits an array
    By jasharen in forum Feedback & Suggestions
    Replies: 0
    Last Post: 09-27-2007, 09:09 AM
  2. Need to alter the Online Users module
    By christianb in forum "How Do I..." Questions
    Replies: 1
    Last Post: 09-17-2006, 09:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •