Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on May 19, 2011, 08:43:42 AM

Title: Topic Descriptions
Post by: vbgamer45 on May 19, 2011, 08:43:42 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3012)
Topic Descriptions


Previous Author: live627 (http://www.simplemachines.org/community/index.php?action=profile;u=154736)
Original Author: Project Evolution
SMF Version: 2.0.X
Mod Version: 1.3

Description:
The Topic Descriptions modification allows users to post a new topic with a topic description seen visible in the list of topics.

Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com/)
Title: Re: Topic Descriptions
Post by: smartmouse on May 19, 2011, 07:19:41 PM
The link to the mod is wrong.
Here is the right one: http://custom.simplemachines.org/mods/index.php?mod=3012
Title: Re: Topic Descriptions
Post by: Anthony` on May 19, 2011, 07:24:04 PM
Thanks, forgot to update it. :P
Title: Re: Topic Descriptions
Post by: RvG on May 20, 2011, 03:36:19 AM
thank you for making this one...
Title: Re: Topic Descriptions
Post by: !RFAN on May 20, 2011, 04:31:48 AM
i'm getting an error.. has anybody else tried this?
Title: Re: Topic Descriptions
Post by: aishaweb on May 20, 2011, 04:36:01 AM
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?
Title: Re: Topic Descriptions
Post by: -=[Vyorel]=- on May 20, 2011, 07:37:59 AM
Very nice mod!
Title: Re: Topic Descriptions
Post by: Anthony` on May 20, 2011, 08:02:20 AM
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?
Title: Re: Topic Descriptions
Post by: chinaren on May 23, 2011, 10:45:47 PM
Nice one! 
Title: Re: Topic Descriptions
Post by: smartmouse on May 24, 2011, 07:32:38 AM
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?
Title: Re: Topic Descriptions
Post by: smartmouse on May 24, 2011, 02:03:42 PM
Hello again, is it possible to exchange description field position with topic's author one? I prefer it...
Title: Re: Topic Descriptions
Post by: Anthony` on May 24, 2011, 04:25:18 PM
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,
Code (Replace) Select
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
Code (With) Select
' . (!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'], '
Title: Re: Topic Descriptions
Post by: smartmouse on May 24, 2011, 06:31:19 PM
I think you have posted the wrong code.
In this way the description appears twice...
Title: Re: Topic Descriptions
Post by: Anthony` on May 24, 2011, 07:40:25 PM
Make sure you remove the part of the code the mod installs.
Title: Re: Topic Descriptions
Post by: squad on May 25, 2011, 03:45:04 PM
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

(http://i1006.photobucket.com/albums/af184/tryingdo/MAy2011/tesy-1.gif?t=1306351934)

Title: Re: Topic Descriptions
Post by: Anthony` on May 25, 2011, 03:58:37 PM
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?
Title: Re: Topic Descriptions
Post by: squad on May 25, 2011, 05:21:31 PM

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 post


(http://i1006.photobucket.com/albums/af184/tryingdo/MAy2011/tesy1-2.jpg?t=1306357876)


From inside the post (read or reply)

(http://i1006.photobucket.com/albums/af184/tryingdo/MAy2011/tesy2jpg-1.png?t=1306358529)
Title: Re: Topic Descriptions
Post by: Anthony` on May 25, 2011, 06:21:48 PM
Ok, I will see how I can fit that in the Curve theme some how.
Title: Re: Topic Descriptions
Post by: smartmouse on May 25, 2011, 06:51:49 PM
@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?
Title: Re: Topic Descriptions
Post by: Anthony` on May 25, 2011, 09:22:48 PM
Did you apply the change I gave to you a couple posts above?
Title: Re: Topic Descriptions
Post by: !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'] . '&nbsp;' : '', '<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...
Title: Re: Topic Descriptions
Post by: 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?
Title: Re: Topic Descriptions
Post by: Anthony` on May 26, 2011, 08:07:38 AM
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.
Title: Re: Topic Descriptions
Post by: !RFAN on May 26, 2011, 10:49:30 PM
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'] . '&nbsp;' : '', '<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...
Title: Re: Topic Descriptions
Post by: Anthony` on May 27, 2011, 06:36:00 PM
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>';
Title: Re: Topic Descriptions
Post by: !RFAN on May 28, 2011, 08:24:53 AM
so i cannot use this mod along with Disable Subject Change mod?
Title: Re: Topic Descriptions
Post by: Anthony` on May 28, 2011, 10:26:24 AM
Of course you can. :)
Just apply the fix I posted above. To make it more descriptive, follow these instructions,
Code (After) Select
// 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'] . '&nbsp;' : '', '<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" />';

Code (Add) Select
echo '<dd>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" class="input_text" />
</dd>';
Title: Re: Topic Descriptions
Post by: 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?
Title: Re: Topic Descriptions
Post by: Anthony` on June 01, 2011, 09:00:53 PM
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?
Title: Re: Topic Descriptions
Post by: smartmouse on June 02, 2011, 07:02:42 AM
I'm using a different theme, the mod wasn't modified.
I have PMed you about the link to my forum.

Thank you.
Title: Re: Topic Descriptions
Post by: Anthony` on June 02, 2011, 06:59:28 PM
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. :)
Title: Re: Topic Descriptions
Post by: smartmouse on June 03, 2011, 07:39:08 AM
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.
Title: Re: Topic Descriptions
Post by: Anthony` on June 03, 2011, 11:45:59 AM
Yup, this is due to lame template edits. But I will post here with the change.
Title: Re: Topic Descriptions
Post by: smartmouse on June 03, 2011, 03:56:19 PM
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
Title: Re: Topic Descriptions
Post by: Anthony` on June 03, 2011, 04:25:51 PM
The option, the errors would require a manual installation.
Title: Re: Topic Descriptions
Post by: Anthony` 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.
Title: Re: Topic Descriptions
Post by: helike13 on June 07, 2011, 05:53:19 AM
Hi there!

How to remove those thin white borders above the descriptions?

I mean these:

(http://kepfeltoltes.hu/110607/topicdesc_www.kepfeltoltes.hu_.jpg)

How to change font color in the descriptions?
Title: Re: Topic Descriptions
Post by: razors edge on June 07, 2011, 07:07:08 AM
Installed and working great, no errors. I would like to know how to remove the white bar as helike has shown above.
Title: Re: Topic Descriptions
Post by: Anthony` 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,
Code (Remove) Select
<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,
Code (Replace) Select
<small>' . $topic['description'] . '</small>
Code (With) Select
<small style="color: YOURCOLOR;">' . $topic['description'] . '</small>

And simply just change YOURCOLOR.
Title: Re: Topic Descriptions
Post by: helike13 on June 07, 2011, 01:09:54 PM
<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.
Title: Re: Topic Descriptions
Post by: Anthony` on June 07, 2011, 01:12:40 PM
I encourage you to download the most recent version of this mod, since that one has been updated. :P
Title: Re: Topic Descriptions
Post by: helike13 on June 07, 2011, 01:17:19 PM
Oh, my O:)

Should I remove the older version before installing the new one, or does it update on the fly?
Title: Re: Topic Descriptions
Post by: Anthony` on June 07, 2011, 01:25:35 PM
Uninstall then reinstall. :P
That is, unless you parse the mod and make changes yourself.
Title: Re: Topic Descriptions
Post by: helike13 on June 07, 2011, 01:38:37 PM
There are some errors when uninstalling the old. Should I proceed?
Title: Re: Topic Descriptions
Post by: Anthony` on June 07, 2011, 03:53:55 PM
You should actuall manually remove any errors since this would affect any future installations.
Title: Re: Topic Descriptions
Post by: helike13 on June 08, 2011, 02:26:29 AM
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?
Title: Re: Topic Descriptions
Post by: Anthony` on June 08, 2011, 08:11:23 AM
Well what was the issue? The old version im not fond of giving modifications for since there is a new one instead.
Title: Re: Topic Descriptions
Post by: 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.
Title: Re: Topic Descriptions
Post by: Anthony` 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.
Title: Re: Topic Descriptions
Post by: smartmouse on June 09, 2011, 08:24:00 AM
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.
Title: Re: Topic Descriptions
Post by: 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
Title: Re: Topic Descriptions
Post by: Anthony` on June 14, 2011, 05:16:23 PM
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. :)
Title: Re: Topic Descriptions
Post by: #Pascal on June 17, 2011, 02:08:57 AM
It would be great if this mod can be moderated by group permissions.
Title: Re: Topic Descriptions
Post by: Anthony` on June 17, 2011, 12:12:20 PM
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?
Title: Re: Topic Descriptions
Post by: #Pascal on June 18, 2011, 08:37:29 AM
for example:

administrators and moderators cat create topic descriptions, but group users can not.
Title: Re: Topic Descriptions
Post by: bros on June 19, 2011, 07:49:05 PM
works for me on SMF 2 gold
Title: Re: Topic Descriptions
Post by: Zuća 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.
Title: Re: Topic Descriptions
Post by: Anthony` 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?
Title: Re: Topic Descriptions
Post by: Zuća 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
Title: Re: Topic Descriptions
Post by: Anthony` 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?
Title: Re: Topic Descriptions
Post by: Horsey on June 27, 2011, 05:00:04 AM
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!
Title: Re: Topic Descriptions
Post by: Zuća on June 27, 2011, 08:28:35 AM
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
Title: Re: Topic Descriptions
Post by: studiowi33 on August 04, 2011, 02:03:47 PM
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
Title: Re: Topic Descriptions
Post by: Anthony` 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.
Title: Re: Topic Descriptions
Post by: 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
Title: Re: Topic Descriptions
Post by: Anthony` on August 05, 2011, 12:11:54 AM
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?
Title: Re: Topic Descriptions
Post by: studiowi33 on August 05, 2011, 07:52:13 AM
Quote from: Project Evolution on August 05, 2011, 12:11:54 AM
Is this happening when your using SMF 2?

Yes, 2.0 final.
Title: Re: Topic Descriptions
Post by: Anthony` on August 05, 2011, 11:01:37 AM
Quote from: studiowi33 on August 05, 2011, 07:52:13 AM
Quote from: Project Evolution on August 05, 2011, 12:11:54 AM
Is this happening when your using SMF 2?

Yes, 2.0 final.

Havnt tested it for 2.0 final yet so I will get to it soon.
Title: Re: Topic Descriptions
Post by: studiowi33 on August 06, 2011, 01:12:19 PM
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
Title: Re: Topic Descriptions
Post by: Anthony` on August 06, 2011, 05:18:35 PM
Thanks for letting me know guys. I have fixed the problem and ensured it was compatible with SMF 2.
Title: Re: Topic Descriptions
Post by: studiowi33 on August 06, 2011, 05:33:51 PM
Thanks PE. I've reinstalled and am now happy as a .....administrator.

-s.w
Title: Re: Topic Descriptions
Post by: Zuća on August 06, 2011, 06:29:00 PM
This mode only works well with the default theme ... in other subjects reported an error
Title: Re: Topic Descriptions
Post by: Anthony` 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.
Title: Re: Topic Descriptions
Post by: ambrosiavenus on August 07, 2011, 05:42:50 AM
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
Title: Re: Topic Descriptions
Post by: ambrosiavenus on August 09, 2011, 07:40:51 PM
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.
Title: Re: Topic Descriptions
Post by: studiowi33 on November 29, 2011, 06:15:01 PM
Any safe way to get more than 25 characters?

Thanks.

-s.w
Title: Re: Topic Descriptions
Post by: live627 on November 29, 2011, 07:02:01 PM
There's a limit?
Title: Re: Topic Descriptions
Post by: studiowi33 on November 30, 2011, 08:02:01 AM
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
Title: Re: Topic Descriptions
Post by: funkythemunky on January 17, 2012, 06:20:46 PM
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,
Code (Remove) Select
<hr class="topicdesc" />

Could You please tell me if I would have to remove the ´ ´ before and after
Code (Remove) Select
<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. :/
Title: Re: Topic Descriptions
Post by: live627 on January 17, 2012, 06:52:00 PM
The apostrophes stay. The final code is:

. (!empty($modSettings['topic_descriptions_enable']) && $topic['description'] != "" ? '<small>' . $topic['description'] . '</small>' : '') . '
Title: Re: Topic Descriptions
Post by: funkythemunky on January 17, 2012, 07:08:06 PM
Thx a lot!    :)
Title: Re: Topic Descriptions
Post by: funkythemunky on January 17, 2012, 08:31:40 PM
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.  ::)
Title: Re: Topic Descriptions
Post by: funkythemunky on January 18, 2012, 06:50:05 AM
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. :/
Title: Re: Topic Descriptions
Post by: Biology Forums on January 18, 2012, 09:12:15 PM
Very useful mod
Title: Re: Topic Descriptions
Post by: 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.
Title: Re: Topic Descriptions
Post by: Hoodie on March 04, 2012, 11:35:42 AM
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..
Title: Re: Topic Descriptions
Post by: Hoodie on March 04, 2012, 11:36:31 AM
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?
Title: Re: Topic Descriptions
Post by: b0t on June 28, 2012, 09:11:48 PM
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!
Title: Re: Topic Descriptions
Post by: live627 on June 28, 2012, 09:29:54 PM
Automatic pulling from the message body - okay... what all should be pulled? Where should it stop? Should the description input box be removed?
Title: Re: Topic Descriptions
Post by: b0t on June 28, 2012, 11:26:07 PM
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

Title: Re: Topic Descriptions
Post by: 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.
Title: Re: Topic Descriptions
Post by: Antechinus on July 07, 2012, 06:11:11 PM
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.
Title: Re: Topic Descriptions
Post by: hellodarren1 on August 14, 2012, 04:17:08 AM
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.
Title: Re: Topic Descriptions
Post by: natasa (NT) on October 28, 2012, 02:48:49 AM
Very useful mod, thanks!
I was wondering, is it possible to put links in descriptions?
Title: Re: Topic Descriptions
Post by: crazyearner on February 15, 2013, 07:53:14 PM
Is this going to be updated for 2.0.4?
Title: Re: Topic Descriptions
Post by: Costa on February 16, 2013, 06:58:36 AM
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).
Title: Re: Topic Descriptions
Post by: FireDitto on March 31, 2013, 08:31:08 AM
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;

Code (Post.template.php) Select

$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" />
Title: Re: Topic Descriptions
Post by: bros on April 28, 2013, 01:42:35 AM
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.
Title: Re: Topic Descriptions
Post by: ScrumpyJack on November 28, 2013, 09:27:56 AM
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!
Title: Re: Topic Descriptions
Post by: FireDitto on November 29, 2013, 05:14:16 PM
Are you clicking 'Preview' before posting? If you preview a topic before posting, it eats the Description.
Title: Re: Topic Descriptions
Post by: FireDitto on November 29, 2013, 05:17:34 PM
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!
Title: Re: Topic Descriptions
Post by: maximo4usa on February 08, 2014, 05:14:33 AM
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
Title: Re: Topic Descriptions
Post by: LirikAskO on February 13, 2014, 12:27:47 PM
Thanks.  ;D
Title: Re: Topic Descriptions
Post by: Con on September 05, 2014, 08:44:23 AM
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.
Title: Re: Topic Descriptions
Post by: rcaddie on March 20, 2015, 06:19:15 PM
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.
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 20, 2015, 10:11:54 PM
Check that all the edits are made to Sources/Post.php
Title: Re: Topic Descriptions
Post by: rcaddie on March 22, 2015, 01:14:15 AM
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?
Title: Re: Topic Descriptions
Post by: Sigyn on December 24, 2015, 01:10:42 PM
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:

(http://i.imgur.com/JCdeop7.png)
This is the topic in the list of topics within a board where the description should display.

(http://i.imgur.com/RtZaZFi.png)
The description shown within the topic.

(http://i.imgur.com/8AiJ0Mb.png)
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?
Title: Re: Topic Descriptions
Post by: Biology Forums 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?
Title: Re: Topic Descriptions
Post by: Sigyn on December 26, 2015, 11:12:03 AM
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.
Title: Re: Topic Descriptions
Post by: Dumke on January 13, 2016, 10:44:08 AM
Is it possible to add a section that is "only enable in these boards"?

also is this section SSI Friendly?
Title: Re: Topic Descriptions
Post by: vbgamer45 on January 13, 2016, 10:52:02 AM
Possible but currently do not have the time to do it.
Title: Re: Topic Descriptions
Post by: Dumke on January 13, 2016, 10:54:52 AM
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?
Title: Re: Topic Descriptions
Post by: vbgamer45 on January 13, 2016, 11:03:32 AM
Same.
Title: Re: Topic Descriptions
Post by: Sigyn on January 17, 2016, 03:48:53 AM
Quote from: Sigyn on December 24, 2015, 01:10:42 PM
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:

(http://i.imgur.com/JCdeop7.png)
This is the topic in the list of topics within a board where the description should display.

(http://i.imgur.com/RtZaZFi.png)
The description shown within the topic.

(http://i.imgur.com/8AiJ0Mb.png)
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?
Can I get an answer to this please? I would really like to fix the issue.
Title: Re: Topic Descriptions
Post by: aegersz on October 11, 2016, 03:50:27 AM
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
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 11, 2016, 08:51:06 AM
can you try again then attach that file here that has the error.
Title: Re: Topic Descriptions
Post by: aegersz on October 11, 2016, 09:54:27 AM
sure thing ... see attached
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 11, 2016, 10:24:54 AM
Conflict with tagging system .

Updated file attached
Title: Re: Topic Descriptions
Post by: aegersz on October 11, 2016, 10:33:28 AM
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 ?
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 11, 2016, 11:12:39 AM
no since it was a conflict
Title: Re: Topic Descriptions
Post by: aegersz on October 11, 2016, 11:46:16 AM
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.
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 11, 2016, 11:57:02 AM
yes it would be don't have the time right now
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 06:03:48 AM
Topic description better than tagging system?
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 22, 2016, 09:58:42 AM
They are two different things
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 11:51:56 AM
For better SEO better to use both mod? Or only Topic Descriptions?
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 22, 2016, 12:06:35 PM
Use both
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 12:11:21 PM
now it was a conflict as aegersz

Title: Re: Topic Descriptions
Post by: vbgamer45 on October 22, 2016, 01:11:09 PM
oh yeah well then for seo i would choose topic descriptions
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 01:17:04 PM
Will you be updating your mod to co-exist with Tags or is that too much of a hassle ?
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 22, 2016, 01:39:04 PM
too much hassle
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 01:51:47 PM
Thank you for your patience
Title: Re: Topic Descriptions
Post by: gorbi on October 22, 2016, 03:28:36 PM
Can you help me?
Title: Re: Topic Descriptions
Post by: vbgamer45 on October 22, 2016, 09:34:00 PM
No sorry.
Title: Re: Topic Descriptions
Post by: gorbi on October 23, 2016, 04:06:00 AM
Thanks
Title: Re: Topic Descriptions
Post by: gorbi on March 26, 2017, 10:31:15 AM
How to make invisible topic description in the list of topics?
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 26, 2017, 11:56:39 AM
Invisible? I think would defeat the purpose of this mod since it adds it.
Title: Re: Topic Descriptions
Post by: gorbi on March 26, 2017, 01:58:01 PM
Invisible for users only in the list of topics, for bots - visible
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 26, 2017, 02:24:50 PM
you would need to change and check if bot show theb user not show
Title: Re: Topic Descriptions
Post by: ettore.gabrielli on June 01, 2017, 08:18:20 AM
I use this theme https://custom.simplemachines.org/themes/index.php?lemma=2837 but i don't see Topic Description in topic list...
Title: Re: Topic Descriptions
Post by: vbgamer45 on June 01, 2017, 08:20:47 AM
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.
Title: Re: Topic Descriptions
Post by: ettore.gabrielli on June 01, 2017, 10:15:30 AM
I try it, but doesn't work.
Title: Re: Topic Descriptions
Post by: vbgamer45 on June 01, 2017, 10:42:23 AM
it fails to install?
Title: Re: Topic Descriptions
Post by: ettore.gabrielli on June 01, 2017, 10:55:37 AM
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.
Title: Re: Topic Descriptions
Post by: anidea on November 18, 2017, 08:20:18 PM
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!
Title: Re: Topic Descriptions
Post by: njtweb on August 28, 2018, 07:26:58 AM
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
Title: Re: Topic Descriptions
Post by: 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)

Title: Re: Topic Descriptions
Post by: vbgamer45 on January 24, 2019, 03:17:46 PM
Any errors on install?
Title: Re: Topic Descriptions
Post by: diegolyanky on January 24, 2019, 05:14:22 PM
No errors.

Clean installation

Title: Re: Topic Descriptions
Post by: diegolyanky on January 24, 2019, 08:56:35 PM

This happens when I try to post

syntax error, unexpected 'num_replies' (T_STRING)

Title: Re: Topic Descriptions
Post by: 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.
Title: Re: Topic Descriptions
Post by: Snickerdoodle on January 26, 2019, 04:25:59 PM
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.
Title: Re: Topic Descriptions
Post by: vbgamer45 on January 26, 2019, 05:27:42 PM
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.
Title: Re: Topic Descriptions
Post by: diegolyanky on January 26, 2019, 05:45:10 PM
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

Title: Re: Topic Descriptions
Post by: vbgamer45 on January 26, 2019, 05:49:23 PM
Not sure. I don't add that column in the mod.
Title: Re: Topic Descriptions
Post by: dodos26 on December 15, 2019, 12:45:23 PM
Hey u can add show descriptions on search list and take the description into consideration when searching
Title: Re: Topic Descriptions
Post by: vbgamer45 on December 15, 2019, 03:39:29 PM
Would require changes to SMF template files and and some sql queries.

The second part is harder.
Title: Re: Topic Descriptions
Post by: dodos26 on December 15, 2019, 05:55:25 PM
Can be only first part :)
Title: Re: Topic Descriptions
Post by: smartmouse on March 01, 2020, 12:53:22 PM
Would this mod work with SMF 2.1?
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 01, 2020, 01:37:28 PM
Probably not haven't looked into it.
Title: Re: Topic Descriptions
Post by: smartmouse on March 02, 2020, 07:50:54 AM
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?
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 02, 2020, 09:08:23 AM
Maybe when 2.1 final happens.
Title: Re: Topic Descriptions
Post by: shadav on March 19, 2021, 02:17:48 PM
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
Title: Re: Topic Descriptions
Post by: Mick. on March 19, 2021, 04:44:45 PM
Quick question....this displays the topic description on the actual post or on message index?
Title: Re: Topic Descriptions
Post by: vbgamer45 on March 19, 2021, 05:01:53 PM
Just the message index
Title: Re: Topic Descriptions
Post by: Mick. on March 19, 2021, 05:48:21 PM
Quote from: vbgamer45 on March 19, 2021, 05:01:53 PM
Just the message index
Ty
Title: Re: Topic Descriptions
Post by: shadav on March 19, 2021, 07:20:58 PM
both actually :p
in display.template.php and messageindex.template.php
Title: Re: Topic Descriptions
Post by: Mick. on March 19, 2021, 07:22:58 PM
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?
Title: Re: Topic Descriptions
Post by: 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
Title: Re: Topic Descriptions
Post by: Mick. on March 19, 2021, 08:51:19 PM
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.
Title: Re: Topic Descriptions
Post by: aegersz on June 11, 2021, 09:15:45 AM
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 ?
Title: Re: Topic Descriptions
Post by: vbgamer45 on June 11, 2021, 10:27:55 AM
Does it say error and line number? If not install the stack trace mode and see if you can find the details.
Title: Re: Topic Descriptions
Post by: aegersz on June 11, 2021, 11:05:14 AM
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.
Title: Re: Topic Descriptions
Post by: vbgamer45 on June 11, 2021, 11:07:10 AM
I would download the mod run it though https://www.smfhacks.com/smf-package-parser.html and check each file edit it makes
Title: Re: Topic Descriptions
Post by: aegersz on June 11, 2021, 11:24:41 AM
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
Title: Re: Topic Descriptions
Post by: Shambles on June 11, 2021, 11:56:45 AM
Can you download and attach the whole of Post.template.php to your post?
Title: Re: Topic Descriptions
Post by: aegersz on June 11, 2021, 12:16:08 PM
Sure
Title: Re: Topic Descriptions
Post by: Shambles on June 11, 2021, 12:22:13 PM
Delete the line immediately above "// Tagging system Mod"

It's not valid there.

Also, delete line 240

Title: Re: Topic Descriptions
Post by: aegersz on June 11, 2021, 12:26:59 PM
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 '