Viewing 5 reply threads
  • Author
    Posts
    • #4538
      justin
      Member

      I copied the demo-header.php file and edited the top to just be for user-profiles like so:

      /*
      Flow: User Workflow
      Page: profile.php, user-edit.php
      Header: true
      Position: title
      */

      When you click on a user’s profile and you first enter in, you see the profile, when you click on the tab that was created by the workflow for profile, you get an empty screen. Not sure if this is a bug or if I implemented the new workflow method incorrectly. (The documentation and your demo code are pretty different)

      Attachments:
      You must be logged in to view attached files.
    • #4548
      Steve
      Keymaster

      @justin– You’re pretty close. You actually need TWO Workflow files to make this work.

      HEADER File: Which is what you have and should work.
      TAB File: Take a look at demo-common.php in the demos Workflows/ folder. That’s what is actually creating the tab and setting the default.

      Let us know if that fixes your issue.

    • #4554
      justin
      Member

      Do I need to use sub-tabs like you did in the demo?
      I did not include sub-tabs.

      This is my profile tab: user-flow-profile.php in the workflows folder

      
      <?php
      /*
      Title: Profile
      Order: 1
      Flow: User Workflow
      Page: profile.php, user-edit.php
      Default: true
      */

      This is my second tab: user-flow-general.php in the workflows folder

      <?php
      /*
      Title: General
      Order: 20
      Flow: User Workflow
      */
    • #4556
      Steve
      Keymaster

      @justin- It will be easier if I have access to your code. Please zip up and email to [email protected], and I’ll be happy to take a look.

    • #4564
      Steve
      Keymaster

      @justin– I just emailed you your updated code with the changes.

      WordPress really doesn’t make it easier to control the user profile or edit term pages. Actually, they are pretty much a mess. The code in demos is hiding those fields with CSS on the alternate tabs. Not the best solution, but the only one WordPress gives us right now.

    • #4565
      justin
      Member

      That works great. Thank you for your help.

Viewing 5 reply threads
  • The topic ‘User Flow [0.9.9.2]’ is closed to new replies.