News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Re: Warning Arrows on iPhone theme [PHP HELP]

Started by kaamaru, April 16, 2010, 07:41:28 AM

Previous topic - Next topic

kaamaru

I can't get them to work! View the attachment if you don't get what I mean. I know this is a strange request but if you have any thing I could try I would be very grateful!

Could it be somthing to do with id="warndiv1"?? I am using a modified version of SMF4iPhone.
// Is there only so much they can apply?
if ($context['warning_limit'])
echo '
<div class="smalltext">', sprintf($txt['profile_warning_limit_attribute'], $context['warning_limit']), '</div>';

echo '
<div id="warndiv1" style="display: none;">
<div>
<a href="#" onclick="changeWarnLevel(-5); return false;">&#171;</a>
<a href="#" onclick="changeWarnLevel(5); return false;">&#187;</a>
</span>
<div id="warning_contain" style="font-size: 8pt; height: 12pt; width: ', $context['warningBarWidth'], 'px; border: 1px solid black; background-color: white; padding: 1px; position: relative;" onmousedown="setWarningBarPos(event, true);" onmousemove="setWarningBarPos(event, true);" onclick="setWarningBarPos(event);">
<div id="warning_text" style="padding-top: 1pt; width: 100%; z-index: 2; color: black; position: absolute; text-align: center; font-weight: bold;">', $context['member']['warning'], '%</div>
<div id="warning_progress" style="width: ', $context['member']['warning'], '%; height: 12pt; z-index: 1; background-color: ', $context['current_color'], ';">&nbsp;</div>
</div>
</div>
<div class="smalltext">', $txt['profile_warning_impact'], ': <span id="cur_level_div">', $context['level_effects'][$context['current_level']], '</span></div>
<input type="hidden" name="warning_level" id="warning_level" value="SAME" />
</div>
<div id="warndiv2">
<input type="text" name="warning_level_nojs" size="6" maxlength="4" value="', $context['member']['warning'], '" />&nbsp;', $txt['profile_warning_max'], '
<div class="smalltext">', $txt['profile_warning_impact'], ':<br />';
// For non-javascript give a better list.
foreach ($context['level_effects'] as $limit => $effect)
echo '
', sprintf($txt['profile_warning_effect_text'], $limit, $effect), '<br />';

echo '
</div>
</div>
</td>
</tr>';

kaamaru




Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

kaamaru


rd

Please ask for support on the mod board since this has to do with the mod instead of SMF...

kaamaru


Advertisement: