1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Product] XenFans.com - Extra Profile Tab

Discussion in 'Add-on Releases [Archive]' started by Floris, Oct 10, 2011.

Thread Status:
Not open for further replies.
  1. Floris

    Floris Guest

    Removed.
     
  2. Floris

    Floris Guest

  3. Fuhrmann

    Fuhrmann Well-Known Member

    Floris likes this.
  4. Floris

    Floris Guest

    You too, for writing the article. I hope it helps people to quickly add a new tab.
    Feel free to re-use the plugin and release it with a new version, I will update it in this thread then, etc.
     
    Fuhrmann and yavuz like this.
  5. yavuz

    yavuz Well-Known Member

    Great initiative from both of you guys :)
     
    Floris and Fuhrmann like this.
  6. rowedf

    rowedf Active Member

    Great job man, works wonderful! Thank you. Question, would it be hard to get a radio button in the custom profile field so we could choose the extra tab for displaying custom profile fields ?
     
    Floris likes this.
  7. Floris

    Floris Guest

    Very interesting!
     
  8. Floris

    Floris Guest

    There's a template included in member_view that is called customer_field_view which goes through the different fields, {$field.id} doesn't exist it seems, just title + outcome.

    If you could use <xen:container> there inside an if conditional that does:

    if field.title == 'Display Extra Tab' { xen:container var= .. }

    and then in the xenfans_extraprofiletab template you could use this custom var (if it populates) to check against it's value. 0 or 1.

    A custom display? user field has to be created.

    To be honest, I haven't tested this, just thinking outloud, plus .. if users know how to do THiS, they don't need this plugin, they can just code it straight-out. SO I am not so sure 'currently' if this is the best way to go.

    So yeah, I think it's possible, how user friendly it will be is unclear to me right now.
     
  9. ibnesayeed

    ibnesayeed Well-Known Member

    Title of this thread should be the same as the name of the plug-in. (s/Field/Tab/)
     
    Floris likes this.
  10. Wired

    Wired Active Member

    Considering I made a vB mod just like this back in the day, I approve! Saves me the time and effort of muddling through re-learning OOP and XF code anyway :)

    Admins will definitely want the capability to have multiple tabs, as well as multiple areas to edit custom profile fields. Some people would install my vB extra profile fields page (which separated custom profile fields into their own menu to edit) and the tabs mod multiple times. Quite honestly I think it should be that way from the beginning for all forum software, but that's just me.

    I'd use it to allow people to have a tab for specs of multiple PCs. Others used my mods for PC specs, car specs, character specs, etc.
     
    Floris and high1976 like this.
  11. Floris

    Floris Guest

    Thanks for pointing it out. I overlooked that completely. Woopsyf*daisy. I've reported the post to request a mod to change this.
     
    ibnesayeed likes this.
  12. Floris

    Floris Guest

    Feel free to get the .zip and update it, contribute code to it and return it to me. I am happy to release it with your contributions and with full credits. Teamwork for the win.
     
    Brandon Sheley and Roadwart like this.
  13. Floris

    Floris Guest

    ps,

    I have a version on my localhost that has support for multiple tabs, with per tab enable checkbox, and title.
    I am looking into a few other features, but I am not too familiar with the member_view template and the new 1.1 custom profile fields. I am hoping to get some code contributions from others.
     
  14. rowedf

    rowedf Active Member

    If I could code, I'd help ya, I think its a great feature and thanks for the work!
     
    Floris and Fuhrmann like this.
  15. Floris

    Floris Guest

    New version is out, now support up to 3 tabs

    global on/off
    per tab on/off
    per tab title

    Listener.php slightly updated to support more tabs.
     
    Reedswood and Fuhrmann like this.
  16. rowedf

    rowedf Active Member

    Floris, whats the easiest way to get content in the tabs?

    I'm going to update now and take a look.
     
  17. rowedf

    rowedf Active Member

    Hmm, I uninstalled the previous version, reinstalled the new one and I don't have any tabs.
     
    Floris likes this.
  18. Fuhrmann

    Fuhrmann Well-Known Member

    Have you checked the options?

    [​IMG]
     
    Floris likes this.
  19. rowedf

    rowedf Active Member

    That's just it, I don't see those options, I uploaded all the new files and XML ... but still don't see those in ACP options, just looks like the first version still.
     
  20. Fuhrmann

    Fuhrmann Well-Known Member

    That's true. The Listener.php is updated, but the .xml dont.
    See:

    PHP:
    // if first, second or third tab needs to be displayed, ..
                    
    if ($options->xenfans_extraprofiletab_link_one == 1)
                    {
                        
    $xenfans_extraprofiletab_one $template->create('xenfans_extraprofiletab_one'$template->getParams());
                        
    $rendered $xenfans_extraprofiletab_one->render();
                        
    $contents .= $rendered;
                    }
                    if (
    $options->xenfans_extraprofiletab_link_two == 1)
                    {
                        
    $xenfans_extraprofiletab_two $template->create('xenfans_extraprofiletab_two'$template->getParams());
                        
    $rendered $xenfans_extraprofiletab_two->render();
                        
    $contents .= $rendered;
                    }
                    if (
    $options->xenfans_extraprofiletab_link_three == 1)
                    {
                        
    $xenfans_extraprofiletab_three $template->create('xenfans_extraprofiletab_three'$template->getParams());
                        
    $rendered $xenfans_extraprofiletab_three->render();
                        
    $contents .= $rendered;
                    }
     
Thread Status:
Not open for further replies.

Share This Page