Topic subject when you reply

Started by LocMax, April 16, 2015, 10:40:06 AM

Previous topic - Next topic

LocMax

Well I noticed a bug or something on my forums where when a person replies in a topic from a phone the message will be like:
QuoteLast post by Username
in Re: <span style=

While a normal message would be like this:
QuoteLast post by Username
in Re: Question

It has "<span style=" instead of the topic's original subject.
Any ideas how to fix?

This is what's shown when I inspected it:
Quote<a href="[name removed]/forum/index.php?topic=4896.msg25345#new" title="Re: <span style=">Re: &lt;span style=</a>

Ricky.

So what you are showing is from html source code in browser, it does help, somehow html part is being inserted in subject, please include what theme you are using ?
Possible screenshot from mobile ?

LocMax

We're using theme "LikeIPB" from smfpacks, however it was happening before when we had another theme as well. That time we used "Softer" theme.
I'm gonna ask some member to take a picture of it since I don't really browse the forums from my phone.

Kindred

looks like you have installed a mod of some sort which has screwed up your replies, since that does not happen on a clean installation

So... mods installed?
smf version?
link to a page this occurs on?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

LocMax

Mods:
SMFPacks Mentions   1.4.4
Auto Respond   2.0.1
SimplePortal 2.3.6
Advanced Topic Prefix Mod 4.0.0
SimpleAds 1.0.1 

SMF 2.0.9

Link: http://www.advance-gaming.com/forum/index.php [nofollow]
And example post in which it occurs: http://www.advance-gaming.com/forum/index.php?topic=4896.msg25343#msg25343 [nofollow]

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

or something...  it actually looks like something that the USER'S browser is inserting into the reply title field...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shambles

Quote from: margarett
Maybe he's using Tapatalk?

That's not in his list of installed mods.

As above it would be useful to know which browser (and version) was being used to form and post the topic reply.

Stanyy

Most likely something to do with Advanced Topic Prefix Mod.
Since your example topic has a prefix, it looks like something is trying to insert the topic's prefix into the reply's subject (I doubt it's browser related).
The code used by the prefix is <span style="color: #FF0000; font-weight: bold;">[MUST READ]</span>

Ideas to help you troubleshoot:
1. Try replicating the problem in a topic without a prefix.
2. Try testing Quick reply vs normal reply (using the same phone browser you found the problem with).

Steve

Or uninstall the mod and see if the problem goes away.
DO NOT pm me for support!

LocMax

I've unistalled it, gonna see now if the problem will disappear.
But yeah, I think it's the prefix mod which caused it since we got it just when the problem started appearing.

Steve

Come back and let us know what you find out. :)
DO NOT pm me for support!

LocMax

I just noticed the two errors from the prefix mod:
Execute Modification   ./Themes/LikeIPBTheme/MessageIndex.template.php   Test failed
   1.   Replace   ./Themes/LikeIPBTheme/MessageIndex.template.php   Test failed

Theme:
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="6" align="right">
<select class="qaction" name="qaction"', $context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>
<option value="">--------</option>', $context['can_remove'] ? '
<option value="remove">' . $txt['quick_mod_remove'] . '</option>' : '', $context['can_lock'] ? '
<option value="lock">' . $txt['quick_mod_lock'] . '</option>' : '', $context['can_sticky'] ? '
<option value="sticky">' . $txt['quick_mod_sticky'] . '</option>' : '', $context['can_move'] ? '
<option value="move">' . $txt['quick_mod_move'] . ': </option>' : '', $context['can_merge'] ? '
<option value="merge">' . $txt['quick_mod_merge'] . '</option>' : '', $context['can_restore'] ? '
<option value="restore">' . $txt['quick_mod_restore'] . '</option>' : '', $context['can_approve'] ? '
<option value="approve">' . $txt['quick_mod_approve'] . '</option>' : '', $context['user']['is_logged'] ? '
<option value="markread">' . $txt['quick_mod_markread'] . '</option>' : '', '
</select>';

// Show a list of boards they can move the topic to.
if ($context['can_move'])
{
echo '
<select class="qaction" id="moveItTo" name="move_to" disabled="disabled">';

foreach ($context['move_to_boards'] as $category)
{
echo '
<optgroup label="', $category['name'], '">';
foreach ($category['boards'] as $board)
echo '
<option value="', $board['id'], '"', $board['selected'] ? ' selected="selected"' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '</option>';
echo '
</optgroup>';
}
echo '
</select>';
}

echo '
<input type="submit" value="', $txt['quick_mod_go'], '" onclick="return document.forms.quickModForm.qaction.value != \'\' &amp;&amp; confirm(\'', $txt['quickmod_confirm'], '\');" class="button_submit qaction" />
</td>
</tr>';
}





The replace one by mod:
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
{
echo '
<tr class="titlebg">
<td colspan="6" align="right">
<select class="qaction" name="qaction"', $context['can_move'] || $context['can_prefix'] ? ' onchange="' : '' ,' ', $context['can_prefix'] ? 'this.form.prefix.disabled = (this.options[this.selectedIndex].value != \'topic_prefix\');' : '' ,' ', $context['can_move'] ? 'this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');' : '' ,' ', $context['can_move'] || $context['can_prefix'] ? '"' : '' ,'>
<option value="">--------</option>', $context['can_remove'] ? '
<option value="remove">' . $txt['quick_mod_remove'] . '</option>' : '', $context['can_lock'] ? '
<option value="lock">' . $txt['quick_mod_lock'] . '</option>' : '', $context['can_sticky'] ? '
<option value="sticky">' . $txt['quick_mod_sticky'] . '</option>' : '', $context['can_move'] ? '
<option value="move">' . $txt['quick_mod_move'] . ': </option>' : '', $context['can_merge'] ? '
<option value="merge">' . $txt['quick_mod_merge'] . '</option>' : '', $context['can_restore'] ? '
<option value="restore">' . $txt['quick_mod_restore'] . '</option>' : '', $context['can_approve'] ? '
<option value="approve">' . $txt['quick_mod_approve'] . '</option>' : '', $context['user']['is_logged'] ? '
<option value="markread">' . $txt['quick_mod_markread'] . '</option>' : '', '
', $context['can_prefix'] ? '<option value="topic_prefix">'.$txt['prefix_select'].':</option>' : '', '
</select>';

if ($context['can_prefix'])
{
   echo '
<select class="qaction" id="prefix" name="topic_prefix_selection" disabled="disabled">
<option value="0">'.$txt['prefix_no'].'</option>';
foreach ($context['prefix'] as $prefix)
echo '<option value="', $prefix['id_prefix'], '">', $prefix['prefix'], '</option>';

echo '
</select>';
}

// Show a list of boards they can move the topic to.
if ($context['can_move'])
{
echo '
<select class="qaction" id="moveItTo" name="move_to" disabled="disabled">';

foreach ($context['move_to_boards'] as $category)
{
echo '
<optgroup label="', $category['name'], '">';
foreach ($category['boards'] as $board)
echo '
<option value="', $board['id'], '"', $board['selected'] ? ' selected="selected"' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '</option>';
echo '
</optgroup>';
}
echo '
</select>';
}

echo '
<input type="submit" value="', $txt['quick_mod_go'], '" onclick="return document.forms.quickModForm.qaction.value != \'\' &amp;&amp; confirm(\'', $txt['quickmod_confirm'], '\');" class="button_submit qaction" />
</td>
</tr>';
}

margarett

Advanced Topic Prefix Mod is a paid MOD so you should ask the author for support ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: