Topic_Prefix_Mod bug / problem

Started by Hotman, January 17, 2012, 01:26:09 AM

Previous topic - Next topic

Hotman

I am using on my forums v 2.0.2 SMF  .

Today I decided to add this mod on my site, but it couldnt be installed while an error occured at

default/themes/post.template.php

So I went to change it manually

What I did ... I said that I must find this

// Now show the subject box for this post.
echo '
<tr>
<td align="right" style="font-weight: bold;"', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">
', $txt['subject'], ':
</td>


and REPLACE it  with this one
// Here starts the Topic Prefix Mod
if (!empty($context['prefix']))
{
echo'
<dt>
', $txt['prefix_select'], ':
</dt>
<dd>
<select name="post_prefix" id="post_prefix">
<option value="">(', $txt['prefix_no'], ')</option>';

foreach($context['prefix'] as $prefix)
echo'
<option value="', $prefix['prefix'], '" >', $prefix['prefix'], '</option>';

echo'
</select>
</dd>';
}
// Here Topic Prefix Mod End's

// Now show the subject box for this post.


When I have finished I decided to make a prefix and test it on a topic

BUT LOOK THE RESULTS !!!  Subject no exists  :-\




Can someone help me?

Hotman

OK I found the solution to my problem

topic solved

luuuciano

So, why you do not share the solution?
This forums are only to find answers from others?
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Advertisement: