Advertisement:

Author Topic: Topic Descriptions  (Read 53656 times)

Offline smartmouse

  • Full Member
  • ***
  • Posts: 600
Re: Topic Descriptions
« Reply #160 on: March 02, 2020, 07:50:54 AM »
Probably not haven't looked into it.
Are you planning to make it compatible with 2.1?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Topic Descriptions
« Reply #161 on: March 02, 2020, 09:08:23 AM »
Maybe when 2.1 final happens.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline shadav

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,452
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Foamy Fanatics :: For All Your Foamy The Squirrel Needs
Re: Topic Descriptions
« Reply #162 on: March 19, 2021, 02:17:48 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:
Code: [Select]
$form_description = $row['description'];
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
Code: [Select]
$form_description = $row['description'];Lines 903 to 909
Code: [Select]
// 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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,451
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Topic Descriptions
« Reply #163 on: March 19, 2021, 04:44:45 PM »
Quick question....this displays the topic description on the actual post or on message index?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Topic Descriptions
« Reply #164 on: March 19, 2021, 05:01:53 PM »
Just the message index
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,451
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Topic Descriptions
« Reply #165 on: March 19, 2021, 05:48:21 PM »

Offline shadav

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,452
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Foamy Fanatics :: For All Your Foamy The Squirrel Needs
Re: Topic Descriptions
« Reply #166 on: March 19, 2021, 07:20:58 PM »
both actually :p
in display.template.php and messageindex.template.php

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,451
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Topic Descriptions
« Reply #167 on: March 19, 2021, 07:22: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?

Offline shadav

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,452
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Foamy Fanatics :: For All Your Foamy The Squirrel Needs
Re: Topic Descriptions
« Reply #168 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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,451
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Topic Descriptions
« Reply #169 on: March 19, 2021, 08:51:19 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.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,747
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Topic Descriptions
« Reply #170 on: June 11, 2021, 09:15:45 AM »

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 ?
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Topic Descriptions
« Reply #171 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,747
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Topic Descriptions
« Reply #172 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.
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,559
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Topic Descriptions
« Reply #173 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
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,747
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Topic Descriptions
« Reply #174 on: June 11, 2021, 11:24:41 AM »
I managed to trigger this:

Code: [Select]
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:

Code: [Select]
                // 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
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,629
  • Gender: Male
    • i30 Owners Club
Re: Topic Descriptions
« Reply #175 on: June 11, 2021, 11:56:45 AM »
Can you download and attach the whole of Post.template.php to your post?

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,747
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Topic Descriptions
« Reply #176 on: June 11, 2021, 12:16:08 PM »
Sure
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,629
  • Gender: Male
    • i30 Owners Club
Re: Topic Descriptions
« Reply #177 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


Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,747
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: Topic Descriptions
« Reply #178 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):

Code: [Select]
//              ';
                // 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 '
The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here