Customizing SMF > SMF Coding Discussion
Topic Description Editing help? [Not that advanced!]
Silmarama:
Heya! I'm a newbie, so it's my first time trying to adjust a mod to fit with the forum. I'm currently using SMF 2.0.1, and I want to use this mod: Topic Description.
It's very outdated, but I did find instructions on how to edit it, here. However... I have no idea how to do it. I read up on this guide on how to manually install, but not only is it way over my head - I can't seem to find and edit the parts I need. I've tried both Microsoft Word (which lets me edit, but the document looks all... wrong, so I can't do it) and XLM editor (which looks like it should be, I can see which parts to edit... but it doesn't let me!)... to no avail.
Is there someone who could help me adjust this mod to work on 2.0.1, or patiently explain for a total coding noob how to do it on her own? As well as point me to how to install the edited version.
I am completely new to this, so a slow and detailed walk-through would be greatly appreciated. I hardly speak any code speech at all.
Thanks in advance!
EDIT!
When I try using the code provided below (the v1.2). I get the following message when I try to edit or post a new topic, this happens:
Template Parse Error!
There was a problem loading the /Themes/default/Post.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: syntax error, unexpected T_STRING in .../Themes/default/Post.template.php on line 220
211: echo '
212: <dt>
213: <span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>
214: </dt>
215: <dd>
216: <input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
217: </dd>';
218: ';
219: // Tagging system Mod
220: if(!isset($context['num_replies']))
221: {
222: echo '
223: <dt>
224: <b>', $txt['smftags_topic'], '</b>
It doesn't matter whether I'm on the forum's default skin or our main one. I can't post new topics anymore. Help?
Anthony`:
http://custom.simplemachines.org/mods/index.php?mod=3012
Silmarama:
Thank you! I've got no idea how I missed that one. You're a life saver! ;D
Silmarama:
Still having issues. Edited first post.
Anthony`:
Umm, try deleting the apostrophe and semi-colon (';) on line 218 and see what happens.
Navigation
[0] Message Index
[#] Next page
Go to full version