[4035][SMF 2.0 RC2] [Curve] - Custom Profile Field Placement "Above Signature"

Started by tyty1234, November 21, 2009, 04:43:30 AM

Previous topic - Next topic

tyty1234

SMF Version: SMF 2.0 RC2
Affected Themes: Curve, Core
Summary: When creating a custom profile field to appear "Above the Signature" in posts, it breaks the signature area as seen in the following image.



This is caused by this broken line of code (page source)


<div class="custom_fields_above_signature">
<ul class="reset nolist>
<li>SMF 2.0 RC2</li>
</ul>
</div>


Source of the error is found in Display.template.php (lines 555-568. error is located on line 560)


if (empty($shown))
{
$shown = true;
echo '
<div class="custom_fields_above_signature">
<ul class="reset nolist>';
}
echo '
<li>', $custom['value'], '</li>';
}
if ($shown)
echo '
</ul>
</div>';
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

blokey

if (empty($shown))            {               $shown = true;               echo '


I am being thick,, is this the piece of code I need to insert into Display.template.php
SMF Version 2.0 RC2     Server Info Apache version 2.0.63 PHP version 5.2.9 MySQL version 5.0.81-community Architecture x86_64 Operating system Linux

tyty1234

Actually, all that needs to be fixed is that missing quote after reset nolist.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Norv

I can confirm the bug, still occurring in the latest svn. Thank you for your report.

In order to have it fixed, as tyty1234 mentions, please find in Display.template.php:
Code (find) Select

<ul class="reset nolist>';

Code (replace) Select

<ul class="reset nolist">';
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: