Link to the mod (https://custom.simplemachines.org/index.php?mod=3012)
The Topic Descriptions modification allows users to post a new topic with a topic description seen visible in the list of topics.
Version 1.2.
Created by Project Evolution/Anthony` (http://www.simplemachines.org/community/index.php?action=profile;u=164151)
The link to the mod is wrong.
Here is the right one: http://custom.simplemachines.org/mods/index.php?mod=3012
Thanks, forgot to update it. :P
thank you for making this one...
i'm getting an error.. has anybody else tried this?
Quote from: !RFAN on May 20, 2011, 04:31:48 AM
i'm getting an error.. has anybody else tried this?
Could you be a tiny bit more specific?
Very nice mod!
Thanks everyone! And please be more specific so I can help you. Is this from the error log or is this from installing the mod?
Nice one!
If you were using Topic Description v1.1 mod with SMF 1.1.13 and now after you have upgraded to SMF 2.0 you can't install the same mod, then install this modification by Project Evolution and then execute the following query to convert the descriptions that you had on SMF 1.1.13 to descriptions for your new SMF 2.0 forum.
<?php
mysql_connect('localhost', 'username', 'password');
mysql_select_db('dbname');
$q = mysql_query("SELECT id_topic, description FROM smf_messages WHERE description != ''");
while ($r = mysql_fetch_assoc($q)) {
$description = mysql_real_escape_string($r['description']);
$qw = "UPDATE smf_topics SET description = '". $description."' WHERE id_topic = '". $r['id_topic'] ."'";
echo $r['id_topic'] . "<br />";
mysql_query($qw);
}
mysql_close();
?>
Is it clear?
Hello again, is it possible to exchange description field position with topic's author one? I prefer it...
About your PM, you can always supply negative values for padding I guess.
But anyways, sure it can be done! Try this, in MessageIndex.template.php,
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
' . (!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<hr class="topicdesc" /><small id="topicdesc_' . $topic['first_post']['id'] . '">' . $topic['description'] . '</small>' : '') . '<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
I think you have posted the wrong code.
In this way the description appears twice...
Make sure you remove the part of the code the mod installs.
Hi and thank you so very much Project Evolution.
I have the original 'Description' mod on my SMF 1.13 and simply love it.
This for SMF 2.0 is just heaven :P
I have just had a SMF 2.0 RC5 freshly installed, from a blank canvass.
This is the first mod installed ;)
I have a question that you could help me with please:
Have I missed something or did it not install corectly?
When in the post, that is to read or reply the 'description'
is not visable.
I hope I have made myself understood, sorry if I haven't.
I can post a pic of what happens on my SMF 1.13
Hey squad, you bring up a good point. The mod actually doesnt place the description in the post (as of right now at least), I could use some suggestions as to where it should go if it was enabled if you have any?
Thanks, in the older version it goes exactly where it is when looking at the topic.
I find it hard to clearly explain myself....I'll remove these larger pics when you have
seen them. I haven't learnt how to do smaller yet clickable pic, sorry.
Hope this helps, others may have much better suggestions.I must say I use this
modification for over 90% of our posts. It is well used & well liked.
From outside the actual postFrom inside the post (read or reply)
Ok, I will see how I can fit that in the Curve theme some how.
@Project Evolution: my problem is that under topic title there is the author nickname and below it there is the description. It doesn't look very nice.
Any idea to fix it?
Did you apply the change I gave to you a couple posts above?
i have installed " Disable Subject Change" mod
it modifies Post.template.php
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
change to
// Disable Subject Change Mod.
if (isset($modSettings['disableSubjectChange']))
echo '
', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['subject'] == '' || $context['user']['is_admin'] ? '' : $context['subject'] . ' ' : '', '<input type="', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['user']['is_admin'] ? 'text' : 'hidden' : 'text', '" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />';
your mode edit the same code too.. how can i make edits for your mod if i have already installed this mod...
Yes, i did but it's that the matter. The problem is that it doesn't look nice to see.
I prefer topics as showed by squad in his screenshots. Is it a problem related to SMF 2.0 that put author nickname under the topic title?
Quote from: smartmouse on May 26, 2011, 04:01:44 AM
Yes, i did but it's that the matter. The problem is that it doesn't look nice to see.
I prefer topics as showed by squad in his screenshots. Is it a problem related to SMF 2.0 that put author nickname under the topic title?
In the MessageIndex it may look nicer to you but Curve is obviously different so the description has to go somewhere? Either above or below the topic starter but thats your choice.
As for displaying it in the topic, I havnt implemented that yet. I still need to decide where I would put it.
Quote from: !RFAN on May 25, 2011, 10:47:14 PM
i have installed " Disable Subject Change" mod
it modifies Post.template.php
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
change to
// Disable Subject Change Mod.
if (isset($modSettings['disableSubjectChange']))
echo '
', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['subject'] == '' || $context['user']['is_admin'] ? '' : $context['subject'] . ' ' : '', '<input type="', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['user']['is_admin'] ? 'text' : 'hidden' : 'text', '" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />';
your mod edit the same code too.. how can i make edits for your mod if i have already installed this mod...
Under that if statement all you would have to put is,
echo '<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>';
so i cannot use this mod along with Disable Subject Change mod?
Of course you can. :)
Just apply the fix I posted above. To make it more descriptive, follow these instructions,
// Disable Subject Change Mod.
if (isset($modSettings['disableSubjectChange']))
echo ' ', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['subject'] == '' || $context['user']['is_admin'] ? '' : $context['subject'] . ' ' : '', '<input type="', $modSettings['disableSubjectChange'] ? !isset($context['num_replies']) || $context['is_first_post'] || $context['user']['is_admin'] ? 'text' : 'hidden' : 'text', '" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />';
echo '<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>';
Quote from: smartmouse on May 26, 2011, 04:01:44 AM
Yes, i did but it's that the matter. The problem is that it doesn't look nice to see.
I don't have this problem when i click on "Show unread posts since last visit". The description and the border appear in the right way!
So, why they appear in the wrong way when i'm in the board index?
Quote from: smartmouse on June 01, 2011, 06:43:39 PM
Quote from: smartmouse on May 26, 2011, 04:01:44 AM
Yes, i did but it's that the matter. The problem is that it doesn't look nice to see.
I don't have this problem when i click on "Show unread posts since last visit". The description and the border appear in the right way!
So, why they appear in the wrong way when i'm in the board index?
I dont know, it could be if your using a different theme or if the mod was modified. Can I have a link to your forum?
I'm using a different theme, the mod wasn't modified.
I have PMed you about the link to my forum.
Thank you.
I looked at your index.css file and happened to notice CSS that was present in a very early release. I quickly re-uploaded the package with the modified CSS. Try downloading that and see if the chance makes a difference. :)
Now it looks better. Anyway i prefer to show first topic description and the post author.
Can you add an option that let users to choose where to put the topic description? It would be great!
PS: Your latest package give me an error on Recent.template.php file of Core theme.
Yup, this is due to lame template edits. But I will post here with the change.
Quote from: Project Evolution on June 03, 2011, 11:45:59 AM
Yup, this is due to lame template edits. But I will post here with the change.
What kind of changes? To fix errors with Core theme or to add the option that i have requested? :D
The option, the errors would require a manual installation.
smartmouse, by any chance can you try this edit again?
http://www.simplemachines.org/community/index.php?topic=434678.msg3053714#msg3053714
Topic Descriptions updated for version 1.1! Included a database option for uninstallation and now descriptions are visible at the top of each topic.
Hi there!
How to remove those thin white borders above the descriptions?
I mean these:
How to change font color in the descriptions?
Installed and working great, no errors. I would like to know how to remove the white bar as helike has shown above.
If you guys want those lines remove, here is a quick modification in both Recent.template.php and MessageIndex.template.php,
<hr class="topicdesc" />
Font color is something that you would add with some nice CSS. What you could actually do (this also applies to both template where a change will be needed), you can either create a CSS class in the stylesheet or you can simply just add a style attribute. For example, I will do the latter. Its quite wasy where to find this, where you deleted the hr tags, the small tag beside it is what your editting. So basically,
<small>' . $topic['description'] . '</small>
<small style="color: YOURCOLOR;">' . $topic['description'] . '</small>
And simply just change YOURCOLOR.
<hr class="topicdesc" />
This code is not present in any of those 2 PHPs.
<small style="color: YOURCOLOR;">' . $topic['description'] . '</small>
This is absent, too.
I encourage you to download the most recent version of this mod, since that one has been updated. :P
Oh, my O:)
Should I remove the older version before installing the new one, or does it update on the fly?
Uninstall then reinstall. :P
That is, unless you parse the mod and make changes yourself.
There are some errors when uninstalling the old. Should I proceed?
You should actuall manually remove any errors since this would affect any future installations.
The whole thing got f*cked up, I had to restore from a backup.
So I must use the old version.
How to remove that white border in the old version?
Well what was the issue? The old version im not fond of giving modifications for since there is a new one instead.
Quote from: Project Evolution on June 04, 2011, 11:04:38 AM
smartmouse, by any chance can you try this edit again?
http://www.simplemachines.org/community/index.php?topic=434678.msg3053714#msg3053714
Topic Descriptions updated for version 1.1! Included a database option for uninstallation and now descriptions are visible at the top of each topic.
I won't make any change. I prefer to wait for new version that will let us to choose where to put the description: below the author post or above it :P
You should also add an option to show white bar or hide it.
Quote from: smartmouse on June 08, 2011, 06:54:47 PM
Quote from: Project Evolution on June 04, 2011, 11:04:38 AM
smartmouse, by any chance can you try this edit again?
http://www.simplemachines.org/community/index.php?topic=434678.msg3053714#msg3053714
Topic Descriptions updated for version 1.1! Included a database option for uninstallation and now descriptions are visible at the top of each topic.
I won't make any change. I prefer to wait for new version that will let us to choose where to put the description: below the author post or above it :P
You should also add an option to show white bar or hide it.
I most likely wont do that since its a copy and paste customization. But any other suggestions are welcomed.
Quote from: Project Evolution on June 08, 2011, 09:07:43 PM
Quote from: smartmouse on June 08, 2011, 06:54:47 PM
Quote from: Project Evolution on June 04, 2011, 11:04:38 AM
smartmouse, by any chance can you try this edit again?
http://www.simplemachines.org/community/index.php?topic=434678.msg3053714#msg3053714
Topic Descriptions updated for version 1.1! Included a database option for uninstallation and now descriptions are visible at the top of each topic.
I won't make any change. I prefer to wait for new version that will let us to choose where to put the description: below the author post or above it :P
You should also add an option to show white bar or hide it.
I most likely wont do that since its a copy and paste customization. But any other suggestions are welcomed.
I know, but it should make your mod more customizable and refined. Please think about it.
Does this mod work also with 2.0 Gold-version? My upgrade depends highly on this mod, so it would be more than awesome if it would :D
Quote from: Horsey on June 14, 2011, 04:44:34 PM
Does this mod work also with 2.0 Gold-version? My upgrade depends highly on this mod, so it would be more than awesome if it would :D
Im testing all my mods this weekend. :)
It would be great if this mod can be moderated by group permissions.
Quote from: PascalCX on June 17, 2011, 02:08:57 AM
It would be great if this mod can be moderated by group permissions.
Can you elaborate?
for example:
administrators and moderators cat create topic descriptions, but group users can not.
works for me on SMF 2 gold
your mod does not work well on my forum ... when I try to open a new topic of throw me the following ...
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.
Quote from: Present. on June 26, 2011, 11:18:06 AM
your mod does not work well on my forum ... when I try to open a new topic of throw me the following ...
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.
What version of SMF was this installed for?
Quote from: Project Evolution on June 26, 2011, 12:59:37 PM
Quote from: Present. on June 26, 2011, 11:18:06 AM
your mod does not work well on my forum ... when I try to open a new topic of throw me the following ...
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.
What version of SMF was this installed for?
SMF 2.0
Quote from: Present. on June 26, 2011, 08:43:23 PM
Quote from: Project Evolution on June 26, 2011, 12:59:37 PM
Quote from: Present. on June 26, 2011, 11:18:06 AM
your mod does not work well on my forum ... when I try to open a new topic of throw me the following ...
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.
What version of SMF was this installed for?
SMF 2.0
Well according to users above this is a clean install. Did you happen to do any manual modifications?
The mod works fine for me with 2.0 Gold as well..
There only one problem: If you modify a reply in the thread, the topic description disappears. If you post a completely new reply everything is OK, but if you modify that reply then the topic description disappears. We are using only this mod and the problem appears with every theme.
Question nr 2: Is there a possibility to change the colour of the line which separates the descriptions from the topic?
Thanks for this amazing mod!
Quote from: Project Evolution on June 26, 2011, 09:08:16 PM
Quote from: Present. on June 26, 2011, 08:43:23 PM
Quote from: Project Evolution on June 26, 2011, 12:59:37 PM
Quote from: Present. on June 26, 2011, 11:18:06 AM
your mod does not work well on my forum ... when I try to open a new topic of throw me the following ...
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.
What version of SMF was this installed for?
SMF 2.0
Well according to users above this is a clean install. Did you happen to do any manual modifications?
The installation does not place any mistakes ...
I have installed a lot of modes in addition to this ... if you can cause some errors
Hi all--
How do I change the HR color? I can see how to change the font color, but the HR color I can seem to figure.
Thanks.
As always, any insight is appreciated.
-s.w
In index.css change the topicdesc CSS class (.topicdesc). It should specify a color attribute in there somewhere, simply change its value.
Quote from: Project Evolution on August 04, 2011, 07:41:08 PM
In index.css change the topicdesc CSS class (.topicdesc). It should specify a color attribute in there somewhere, simply change its value.
That's what I needed. Thank you.
However....I have the same problem as above: when someone replies to the topic, the description disappears.
But the ones that haven't been replied to look awesome!
-s.w
Quote from: studiowi33 on August 04, 2011, 10:18:41 PM
Quote from: Project Evolution on August 04, 2011, 07:41:08 PM
In index.css change the topicdesc CSS class (.topicdesc). It should specify a color attribute in there somewhere, simply change its value.
That's what I needed. Thank you. However....
I have the same problem as above: when someone replies to the topic, the description disappears.
But the ones that haven't been replied to look awesome!
-s.w
Is this happening when your using SMF 2?
Not a problem, PE, but i do need to clarify my trouble: It appears as tho Horsey & I have the same problem. It seems as tho the description disappears only if the reply has been editied.
Thanks.
-s.w
Thanks for letting me know guys. I have fixed the problem and ensured it was compatible with SMF 2.
Thanks PE. I've reinstalled and am now happy as a .....administrator.
-s.w
This mode only works well with the default theme ... in other subjects reported an error
Quote from: Present. on August 06, 2011, 06:29:00 PM
This mode only works well with the default theme ... in other subjects reported an error
There is nothing I really can do to make this compatible with every theme out there.
I would love to use this mod, however, it doesn't work with the Core Theme or Core based Themes. The issue lies in the Recent.template.php file.
I am running SMF 2.0, so if there is a solution to this, that would be great :D
Quote from: Project Evolution on August 06, 2011, 06:29:41 PM
Quote from: Present. on August 06, 2011, 06:29:00 PM
This mode only works well with the default theme ... in other subjects reported an error
There is nothing I really can do to make this compatible with every theme out there.
No you don't have to make it compatible for EVERY theme, but if you could make it compatible to the Core Based theme, then it SHOULD work for other themes as well. Since most themes are based off either the default theme or the core them, unless someone went crazy and off in left field with their personal theme. The problem lies within the code of the Recent.template.php file. I have tried playing with it myself to tweak it, but how you have the coding set up for the default theme... I'm not sure where to even start on that.
Eh, who knows, maybe someone with much more knowledge in PHP could fix this issue, hope so, as it would be an awesome addon to my forum.
Any safe way to get more than 25 characters?
Thanks.
-s.w
There's a limit?
Quote from: live627 on November 29, 2011, 07:02:01 PM
There's a limit?
After 25 characters, no further entry is allowed. (2.0.1, Curve variant, Prince of Darkness theme)
-s.w
Quote from: Project Evolution on June 07, 2011, 12:24:07 PM
If you guys want those lines remove, here is a quick modification in both Recent.template.php and MessageIndex.template.php,
<hr class="topicdesc" />
Could You please tell me if I would have to remove the ´ ´ before and after
<hr class="topicdesc" />
here
. (!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<hr class="topicdesc" /><small>' . $topic['description'] . '</small>' : '') . '
? What would that last line look like in whole?
And what to do if I would not want so much space between the topic-title and topic-description? Probably delete those ´s? Sorry I am php-noob. :/
The apostrophes stay. The final code is:
. (!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<small>' . $topic['description'] . '</small>' : '') . '
Thx a lot! :)
This is what it looks like.. that way I love it a lot! :laugh:
In Recent.template.php
(!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<small style="color: #334466;"><em>' . $topic['description'] . '</em></small>' : '') . '
And in MessageIndex.template.php
(!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<small style="color: #334466;" id="topicdesc_' . $topic['first_post']['id'] . '"><em>' . $topic['description'] . '</em></small>' : '') . '
It´s probably not exactly elegant I suppose... but it works. ::)
Me again... ;)
I like it a lot but unfortunately my forum members didn´t react positively and don´t want this option. :P
So now I want to uninstall it it shows the following message..
Is it safe to remove nevertheless?
edit: ok, problem was I had changed the <hr> and so on, resettet this in the 2 files and re-uploaded, then no mistakes. :) I am unhappy though because I really like topic descriptions. :/
Very useful mod
Sometimes the topic description disappears from the topic index. Then I have to edit the reply #1 to get it back! It is very annoying. How to fix that? I'm using 2.0RC5.
Quote from: helike13 on February 28, 2012, 03:03:27 PM
Sometimes the topic description disappears from the topic index. Then I have to edit the reply #1 to get it back! It is very annoying. How to fix that? I'm using 2.0RC5.
You should update to 2.0.2.. And make sure you're using the most current download from the mod page..
Could we make this so that it is only usable by certain membergroups?
Also, could we turn it on/off on a per board basis?
Hello Live627, I need to know in what way I can modify the code of this mod,so that the description are automatically, taking the text of the topic, manually does not help me. I hope you can help.
Regards and thank!
Automatic pulling from the message body - okay... what all should be pulled? Where should it stop? Should the description input box be removed?
Live, read my post on http://www.simplemachines.org/community/index.php?topic=480150.0
and see the picture http://www.simplemachines.org/community/index.php?action=dlattach;topic=480150.0;attach=205595;image
*I would like you could put a number of characters in order to control
I'm trying to install this mod however I'm receiving an error when it comes to Recent.template.php and I'm unsure what to modify or add to get it working.
I can upload/PM the file on request.
Handy hint for ya: the way the mod is coded, it shows the description div in Display.template.php even if there is no description entered. Try this instead:
if (!empty($modSettings['topic_descriptions_enable']) && ($context['topic_description'] != ""))
{
echo '
<div class="windowbg2 topic_description">
<strong>' . $txt['topic_description'] . ':</strong> ' . $context['topic_description'] . '
</div>';
}
That way you get the description div if there is a description, but you don't see it if it's not needed. I used a custom class to do custom padding on the div, and I also ditched the old topslice and bottomslice spans, but you can use whatever you like.
I just noticed as well that if you get an error when posting, the screen refreshes and all content except for the topic description is re-input. So you have to type in the topic description again.
Very useful mod, thanks!
I was wondering, is it possible to put links in descriptions?
Is this going to be updated for 2.0.4?
Quote from: crazyearner on February 15, 2013, 07:53:14 PM
Is this going to be updated for 2.0.4?
It works on 2.0.4 Just use emulate version. See wiki for more detail (http://wiki.simplemachines.org/smf/Package_manager#Advanced).
Hey guys!
I was wondering if it would be possible to have the Description box show up with that auto-description in it, kind of like how an address input comes up with "http://" automatically included. I've attached a screenshot of what I'd like to do to be clearer.
Is it possible to do this? I don't want it to be actual input, so much as instructions on what to input - we use the Description mod for time-framing in character posts on my RP site. If nothing in entered, I'd like it to post empty, not to post the instruction values...
Hopefully I make sense!
Thank you!
EDIT: Figured it out :D
I edited this part of the code;
$boards = !empty($modSettings['topic_descriptions_boards']) ? explode(",", $modSettings['topic_descriptions_boards']) : array();
if (!empty($modSettings['topic_descriptions_enable']) && $context['is_first_post'] && !in_array($context['current_board'], $boards)) {
echo ' <dt>
<span id="caption_description">' . $txt['topic_descriptions_post_desc'] . '</span>
</dt>
<dd>
<input type="text" name="description"', $context['description'] == '' ? '' : ' value="' . $context['description'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="' . (!empty($modSettings['topic_descriptions_maxlen']) ? (int) $modSettings['topic_descriptions_maxlen'] : 25) . '" class="input_text" />
</dd>';
}
echo '
<dt class="clear_left">
', $txt['message_icon'], ':
</dt>
<dd>
<select name="icon" id="icon" onchange="showimage()">';
where it says
<input type="text" name="description"', $context['description'] == '' ? '' : ' value="' . $context['description'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="' . (!empty($modSettings['topic_descriptions_maxlen']) ? (int) $modSettings['topic_descriptions_maxlen'] : 25) . '" class="input_text" />
to be
<input type="text" name="description" placeholder="Placeholder Text Here"', $context['description'] == '' ? '' : ' value="' . $context['description'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="' . (!empty($modSettings['topic_descriptions_maxlen']) ? (int) $modSettings['topic_descriptions_maxlen'] : 25) . '" class="input_text" />
Quote from: helike13 on February 28, 2012, 03:03:27 PM
Sometimes the topic description disappears from the topic index. Then I have to edit the reply #1 to get it back! It is very annoying. How to fix that? I'm using 2.0RC5.
I'm getting this on 2.0.4
Edit: On second look, it appears topic descriptions are just disappearing at random.
Quote from: Cesarre on July 06, 2012, 02:52:42 PM
I'm trying to install this mod however I'm receiving an error when it comes to Recent.template.php and I'm unsure what to modify or add to get it working.
I can upload/PM the file on request.
I'm getting this problem too!
Are you clicking 'Preview' before posting? If you preview a topic before posting, it eats the Description.
I wonder if I could bother someone for a little assistance? I've been fiddling around, but I can't quite seem to hit the nail on the head!
What I'd really like to do, is have it so that the Bookmarks mod (http://custom.simplemachines.org/mods/index.php?mod=864) pulls up the Topic Descriptions (http://custom.simplemachines.org/mods/index.php?mod=3012) when a description is included, and perhaps just leave it blank when one isn't there.
I can manage to create a spot for it on the table, but I'll be squared if I can get it to actually pull forth the descriptions. I'm sure the answer is simple, but I can't seem to find it.
Any assistance would be very, very appreciated!
Hello, thank you very much for sharing your mod ;)
I like the "additional description mod " but i was thinking to use it as "Additional tags" instead. My idea is to write tags separated by spaces in the additional description field. The problems is that your description field is not searchable in the seach function. How would i add the field in the search criteria ?
max
Thanks. ;D
I've just installed this mod and strange enough, it did not work for the Core theme, but did work in my custom themes.
I've manually added the bits that failed during the test, but it didn't change anything, it's not showing the descriptions.
I love this modification and appreciate the time it took to make it. I am using it on SMF 2.0.9 on the Coalblack theme. I regret I'm not a programmer and need a bit of help from those so generous as to offer it.
1. I'm also having the same trouble with Topic Description disappearing whenever the original poster edits their post. Does anyone have a suggestion on how to make this stick?
2. In addition, this mod keeps generating the following log error:
Quote
8: Undefined index: description
File: /home/xxxxxxxxxxx/public_html/forum/Sources/Post.php
Line: 773
Line 773 of that document simply reads:
$form_description = $row['description'];
I'll gladly supply any other information required if someone volunteers to help! Thanks.
Check that all the edits are made to Sources/Post.php
Thanks for the suggestion, vbgamer45. :) I've double and triple checked that. It's all correct. Did the snippet of code I posted tell you anything that might help me?
I have this mod installed and enabled... I do have a problem though. The description of the topic doesn't show in the topic list - though it does show in the topic itself. I am running the newest version of SMF and it says I have the most updated version of the mod. Here are screenshots of what I mean:
This is the topic in the list of topics within a board where the description should display.
The description shown within the topic.
And of course, the version of the mod installed.
Is there a reason these descriptions are not showing on the topic list description as the mod says they should be?
It's likely a problem with the theme. Did it install in your custom theme? If not, you may have to parse that section manually.
Another question, are the descriptions searchable?
Quote from: Shuban on December 25, 2015, 01:54:45 PM
It's likely a problem with the theme. Did it install in your custom theme? If not, you may have to parse that section manually.
Another question, are the descriptions searchable?
Yes it installed on my custom theme, that's the one you saw the images from. The descriptions show in the topic, but not the topic lists in boards. I don't know how to parse codes manually...
And I have no idea if they are searchable.
Is it possible to add a section that is "only enable in these boards"?
also is this section SSI Friendly?
Possible but currently do not have the time to do it.
Quote from: vbgamer45 on January 13, 2016, 10:52:02 AM
Possible but currently do not have the time to do it.
I'll just have to do it the otherway then :'(
And about the SSI?
Same.
i tried this but got this error on my 2.0.11 system WHEN creating a New Topic:
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.
syntax error, unexpected T_STRING
can you try again then attach that file here that has the error.
sure thing ... see attached
Conflict with tagging system .
Updated file attached
that worked, thanks - will you be updating the mod ? if so, i will wait for your next version.
if not, can i run with your new Post.template.php ?
no since it was a conflict
i like to uninstall mods (on my test system) to make sure they come off cleanly and i had to restore my original Post.template.php, as expected, to restore integrity.
sorry to hassle you but will you be updating your mod to co-exist with Tags or is that too much of a hassle ?
i'm not sure what to do BUT i would like to get this into my live site.
yes it would be don't have the time right now
Topic description better than tagging system?
They are two different things
For better SEO better to use both mod? Or only Topic Descriptions?
Use both
now it was a conflict as aegersz
oh yeah well then for seo i would choose topic descriptions
Will you be updating your mod to co-exist with Tags or is that too much of a hassle ?
too much hassle
Thank you for your patience
Can you help me?
No sorry.
Thanks
How to make invisible topic description in the list of topics?
Invisible? I think would defeat the purpose of this mod since it adds it.
Invisible for users only in the list of topics, for bots - visible
you would need to change and check if bot show theb user not show
I use this theme https://custom.simplemachines.org/themes/index.php?lemma=2837 but i don't see Topic Description in topic list...
Did you install the mod on that theme in the package manager. If not uninstall then try to install again and check off your theme to install it there.
I try it, but doesn't work.
it fails to install?
Quote from: vbgamer45 on June 01, 2017, 10:42:23 AM
it fails to install?
Sorry for uncomplete answer. It installed without problem on theme. But don't show Descriptions.
Hi, I tried to install this mod to my forum, but it gave me errors. In checking what the errors were, I noticed that...
If I install the mod through the forum itself, it wants to modify core (core theme) files. But it can't find certain elements in these files, so it doesn't install properly.
If I look at the modifications needed to install manually, there is not a single core (core theme) file modified. The template modifications all seem to point to default. So my question is...
Do I have to install the whole thing manually? Can I install through the forum and then make individual corrections? Can I modify the install script to install to the default files instead of the core files? Or?
Thanks!
Hi, is there any way I can decrease the padding, or remove the split between the topic title and description, (I'd like to close up the space between)? I'd also like to bold and italicize the description.
Thank you
Installed on a 2.0.15 I get this error:
syntax error, unexpected 'num_replies' (T_STRING)
Any errors on install?
No errors.
Clean installation
This happens when I try to post
syntax error, unexpected 'num_replies' (T_STRING)
Did a test. Doesn't happen on my install.
Can you attach the file that has the error.
I see other people with my problem, but I don't see a solution. Maybe I overlooked it. The mod installed perfectly fine on the theme I'm using. The descriptions only show in the thread, not the topic list.
It may require edits to your custom theme upload the mod to https://www.smfhacks.com/smf-package-parser.html and find custom edits.
Or uninstall then when installing again try to install on other themes.
Quote from: vbgamer45 on January 25, 2019, 03:17:34 PM
Did a test. Doesn't happen on my install.
Can you attach the file that has the error.
Could be post.php?
Uninstalled and all worked fine again.
Also, tested on localhost
Not sure. I don't add that column in the mod.
Hey u can add show descriptions on search list and take the description into consideration when searching
Would require changes to SMF template files and and some sql queries.
The second part is harder.
Can be only first part :)
Would this mod work with SMF 2.1?
Probably not haven't looked into it.
Quote from: vbgamer45 on March 01, 2020, 01:37:28 PM
Probably not haven't looked into it.
Are you planning to make it compatible with 2.1?
Maybe when 2.1 final happens.
Quote from: rcaddie on March 20, 2015, 06:19:15 PM
2. In addition, this mod keeps generating the following log error:
Quote
8: Undefined index: description
File: /home/xxxxxxxxxxx/public_html/forum/Sources/Post.php
Line: 773
Line 773 of that document simply reads:
$form_description = $row['description'];
Quote from: vbgamer45 on March 20, 2015, 10:11:54 PM
Check that all the edits are made to Sources/Post.php
I'm also getting this error now
8: Undefined index: description
File: /Sources/Post.php
Line: 905
#0 /index.php(209): Post()
#1 {main}
line 905
$form_description = $row['description'];
Lines 903 to 909
// Get the stuff ready for the form.
$form_subject = $row['subject'];
$form_description = $row['description'];
$form_message = un_preparsecode($row['body']);
censorText($form_message);
censorText($form_description);
censorText($form_subject);
I have checked and all the edits were done to Sources/Post.php
smf 2.0.18
php 7.3
Quick question....this displays the topic description on the actual post or on message index?
Just the message index
both actually :p
in display.template.php and messageindex.template.php
Quote from: shadav on March 19, 2021, 07:20:58 PM
both actually :p
in display.template.php and messageindex.template.php
you mean the description shows under the topic title in post view?
or wherever you put it ;) but according to the install instructions it places it under the who's viewing the topic
I always move it somewhere else
one site I place it within the post as the first line
Quote from: shadav on March 19, 2021, 08:03:50 PM
or wherever you put it ;) but according to the install instructions it places it under the who's viewing the topic
I always move it somewhere else
one site I place it within the post as the first line
cool. Imma use this. I've seen this used on WordPress as intro.
Quote from: diegolyanky on January 24, 2019, 02:42:40 PM
Installed on a 2.0.15 I get this error:
syntax error, unexpected 'num_replies' (T_STRING)
I also get this error but not on my "vanilla" 2.0.18 system. I wonder what mod is interfering ?
Any ideas ?
Does it say error and line number? If not install the stack trace mode and see if you can find the details.
I have done that and there is no stack trace - it just points back to the error handler in index.php.
If i knew what line of code and in what then I, too, would be a lot happier.
Any thoughts on getting more diagnostics ?
It happens on new posts, reply, modify or quote.
I would download the mod run it though https://www.smfhacks.com/smf-package-parser.html and check each file edit it makes
I managed to trigger this:
ParseError: syntax error, unexpected 'num_replies' (T_STRING) in /var/www/html/Themes/default/Post.template.php:225
Stack trace:
#0 /var/www/html/Sources/Load.php(2164): template_include('/var/www/html/T...', true)
#1 /var/www/html/Sources/Post.php(1234): loadTemplate('Post')
#2 /var/www/html/index.php(187): Post()
#3 {main}
from .Themes/default/Post.template.php line 124:
// Tagging system Mod
if ( !isset($context['num_replies']) && allowedTo('smftags_add') )
{
echo '
<dt>
<b>', $txt['smftags_topic'], '</b>
</dt>
<dd>
<input type="text" name="tags"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />
<br /><span class="smalltext">', $txt['smftags_seperate'], '</span>
</dd>';
}
//End Tagging system mod
Can you download and attach the whole of Post.template.php to your post?
Sure
Delete the line immediately above "// Tagging system Mod"
It's not valid there.
Also, delete line 240
I did exactly the same thing and came here to tell you that it's working !
Yay - thanks !
it looks like this now (from line 223):
// ';
// Tagging system Mod
if(!isset($context['num_replies']) && allowedTo('smftags_add') )
{
echo '
<dt>
<b>', $txt['smftags_topic'], '</b>
</dt>
<dd>
<input type="text" name="tags"', ' tabindex="', $context['tabindex']$
<br /><span class="smalltext">', $txt['smftags_seperate'], '</span>
</dd>';
}
//End Tagging system mod
// echo '
Quote from: vbgamer45 on March 02, 2020, 09:08:23 AMMaybe when 2.1 final happens.
Hello again, what about a version working with SMF 2.1?
Thank you!
Hello vbgamer45.
I wanted to ask you a question, first of all the mod is great, in my forum I have had it for years, but now I want to upgrade to 2.1 and I do not know if it is possible or you intend to update the mod to version 2.1.
Again congratulations for this mod.
Greetings and see if there is luck.
And sorry if you don't understand much, but I use the translator.
Maybe, just need time.
Quote from: vbgamer45 on February 22, 2023, 11:54:18 AMMaybe, just need time.
Thank you very much, it is appreciated a lot that there may be a possibility, for my part it is a great mod, I always use it.
Thanks a lot.
I would love this mod to be updated to a newer version, it's just what I need, hope you ever update it, you did a great work ❤️
I should get this mod transferred back to me so that I can update it.
@vbgamer45 I'm going to send you a PM requesting this mod and a few others be transferred back to my account.
Updated for 2.1.4.
Awesome!
There seems to be some problems with this
@live627. After installing, it redirects me to the mod configuration page which shows no options and errors are generated. In fact, every movement in the admin area generates errors as does trying to start a topic (which doesn't show a topic description box). This on my test installation that has no mods and no extra themes.
Quote from: Steve on October 11, 2023, 06:49:38 AMThere seems to be some problems with this @live627. After installing, it redirects me to the mod configuration page which shows no options and errors are generated. In fact, every movement in the admin area generates errors as does trying to start a topic (which doesn't show a topic description box). This on my test installation that has no mods and no extra themes.
I'm having the same errors on SMF 2.1.4. One of them is "8: Undefined index: topic_descriptions".