F
Floris
Guest
Removed.
This plugin is a result from this tutorial:
http://xenforo.com/community/thread...nsert-tabs-in-profile-page-using-hooks.21205/
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 ?
Thanks for pointing it out. I overlooked that completely. Woopsyf*daisy. I've reported the post to request a mod to change this.Title of this thread should be the same as the name of the plug-in. (s/Field/Tab/)
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.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.
// 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;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.