SMF Tricks

SMF Tricks Mods => Free Mods => Topic started by: Diego Andrés on February 02, 2014, 06:52:42 PM

Title: Extra Info
Post by: Diego Andrés on February 02, 2014, 06:52:42 PM
Extra Info



http://smftricks.com/index.php?action=downloads;sa=view;down=52
Title: Re: Extra Info
Post by: GamePersia on January 13, 2015, 01:11:36 AM
not installing in Wrap theme, giving error " ./Themes/Wrap/Display.template.php"
please test on Wrap theme (http://smftricks.com/index.php?action=downloads;sa=view;down=36#forum) and fix it.
Title: Re: Extra Info
Post by: Diego Andrés on February 23, 2015, 09:29:12 PM
Install the mod but do not mark Wrap theme.
After the mod is installed, open Display.template.php of Wrap theme and search for
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))


Replace with
// ExtraInfo by smftricks.com
if ($modSettings['extrainfo_enable'])
echo'
</ul>
<h3 class="accordion">'. (!empty($modSettings['extrainfo_text']) ? $modSettings['extrainfo_text'] : $txt['extrainfo_textdefault']) .'</h3>
    <ul class="reset smalltext accordion" id="msg_', $message['id'], '_extra_info">';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
Title: Re: Extra Info
Post by: GamePersia on February 23, 2015, 10:28:07 PM
Quote from: Diego Andrés on February 23, 2015, 09:29:12 PM
Install the mod but do not mark Wrap theme.
After the mod is installed, open Display.template.php of Wrap theme and search for
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))


Replace with
// ExtraInfo by smftricks.com
if ($modSettings['extrainfo_enable'])
echo'
</ul>
<h3 class="accordion">'. (!empty($modSettings['extrainfo_text']) ? $modSettings['extrainfo_text'] : $txt['extrainfo_textdefault']) .'</h3>
    <ul class="reset smalltext accordion" id="msg_', $message['id'], '_extra_info">';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))


not working properly,..
just text coming "+Info", nothing else. we can not able to click it or do anything, and how to add other texts there ?
searched full profile zone, but no way to insert more text. while installing css modification is also not done :(
Title: Re: Extra Info
Post by: Diego Andrés on February 24, 2015, 05:38:09 PM
Sorry, add this at the end of the css file (Wrap/css/index.css)
h3.accordion
{
background: #E9E7E7 url(../images/arrow-square.gif) no-repeat scroll right -25px;
border: 1px solid #C4C4C4;
border-radius: 4px;
margin: 5px auto;
width: 77%;
height: 25px;
line-height: 25px;
padding: 0 5px;
color: #353535;
font-size: 12px;
text-shadow: 0 -1px #FFF;
text-align: left;
}
h3.accordion:hover
{
background-color: #EBEBEB;
}
h3.accordion.active
{
background-position: right 0;
}


And there's an image into the zip, upload it to Wrap/images/