Topic Descriptions

Started by live627, May 19, 2011, 08:43:42 AM

Previous topic - Next topic

smartmouse

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?

vbgamer45

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

shadav

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

Mick.

Quick question....this displays the topic description on the actual post or on message index?

vbgamer45

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

Mick.


shadav

both actually :p
in display.template.php and messageindex.template.php

Mick.

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?

shadav

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

Mick.

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.

aegersz

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 ?
The configuration of my Linux VPS (SMF 2.0 with 160+ 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

vbgamer45

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

aegersz

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 160+ 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

vbgamer45

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

aegersz

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
The configuration of my Linux VPS (SMF 2.0 with 160+ 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

Shambles

Can you download and attach the whole of Post.template.php to your post?

aegersz

The configuration of my Linux VPS (SMF 2.0 with 160+ 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

Shambles

Delete the line immediately above "// Tagging system Mod"

It's not valid there.

Also, delete line 240


aegersz

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 '
The configuration of my Linux VPS (SMF 2.0 with 160+ 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

smartmouse

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!

Advertisement: