News:

Wondering if this will always be free?  See why free is better.

Main Menu

Related Topics

Started by niko, September 14, 2005, 11:50:29 AM

Previous topic - Next topic

sifirforum.com

Quote from: fivearts on April 18, 2006, 11:30:46 AM
Hi guys,

Please take a look at your Forum Error Log and see whether you have the same error messages as these...

8: Undefined index: is_hot
File: /.............../Sources/Subs.php
Line: 2981

8: Undefined index: is_very_hot
File: /.............../Sources/Subs.php
Line: 2979

8: Undefined variable: mssub
File: /.............../Sources/Display.php
Line: 154

8: Undefined variable: showRelated
File: /.........../Themes/default/languages/Ignore.english.php (eval?)
Line: 625

Do you have these error messages? Any solution please?

;)

i have this errors too..

any idea?
SIFIR proudly hosted by servega

Senkusha

So sorry.  I fixed the bug in my downloads page!!!

Also, those errors in the Forum Error Log, have been corrected in the latest file release on my site.

Sorry!
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

fiver

Hi Senkusha,

Many thanks for packaging this mod.  ;)

After installing, when I click on any topic, this error appears:
Parse error: parse error, unexpected ')', expecting ']' in /............../Sources/Display.php on line 205

Regarding keeping the recycled topics out of Related Topics list, would you mind adding this earlier tip into the mod please?
http://www.simplemachines.org/community/index.php?topic=49410.msg446923#msg446923

Thanks

Søren Bjerg

Thanks for looking into this, Senkusha :).

Unfortunately the latest version from your site, while not giving me a template parsing error, gives me a blank page when entering a topic.
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

kezayah

         'is_hot' => $x['more']['numReplies'] >= $modSettings['hotTopicVeryPosts']);

Søren Bjerg

#65
That did the trick with the blank page, thanks :D.

EDIT #1: Do you need to enable it somewhere? Can't seem to find any changes in any threads on my installation :S.

EDIT #2: To clarify... I created a FULLTEXT index, Score, for my smf_messages table - based on 'subject' and 'body'. If I chose to create a FULLTEXT index in Admin->Forum->Search->Search method, if would create a FULLTEXT index, body, for my smf_messages table - based on 'body' alone. Didn't do anything else, so I deleted that one again.
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Senkusha

" 'is_hot' => $x['more']['numReplies'] >= $modSettings['hotTopicVeryPosts']);"

Thanks, I'll make that change! (removing the final parensis)  I just copied that code out of the MessageIndex.php code.

No, you don't need to enable it anywhere, from looking at the code, it's already enabled if it finds any related topics.  If it doesn't find any, then it's disabled (for that mesasge)  Also, I'd give it some time.  I think the index has to be built as well.....but I'm not sure how this all works to begin with.

I'm not sure I understand what you mean by going into the Admin to create an index....perhaps I missed that bit somewhere?
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

kezayah

I have a lot of errors in my log with your mod !!!  :(

8: Undefined index: is_very_hot
Fichier: /home/www/****/web/Sources/Subs.php
Ligne: 3161

8: Undefined variable: mssub
Fichier: /home/www/****/web/Sources/Display.php
Ligne: 182


Søren Bjerg

Quote from: Senkusha on April 20, 2006, 09:28:59 AM
[...]
No, you don't need to enable it anywhere, from looking at the code, it's already enabled if it finds any related topics.  If it doesn't find any, then it's disabled (for that mesasge)  Also, I'd give it some time.  I think the index has to be built as well.....but I'm not sure how this all works to begin with.
[...]
Alrighty, I'll give it some time. Thanks again for taking time to fix up the mod :).

Quote from: Senkusha on April 20, 2006, 09:28:59 AM
[...]
I'm not sure I understand what you mean by going into the Admin to create an index....perhaps I missed that bit somewhere?
[...]
I probably worded it badly. Under ./index.php?action=managesearch;sa=method you can create fulltext or custom indexes if they do not yet exist, but I take it that's not the way you got it working :D.
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Søren Bjerg

#69
Quote from: J. S. on January 09, 2006, 09:07:47 AM
Well... It was something in the Packages Manager I suppose, the mod was`nt installed in the right way (I`ve installed it from there)...
Anyways... Manual install is the best way it seems :)

[...]
...and this turned out to be my problem also.

The Package Manager didn't properly (if at all) install the mod, so I had to do it manually.

Works now :).

EDIT: A shame Niko didn't code it to honor board permissions, though, so I'll leave it off my forum for now.
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Prasad007

does this mod work on 1.1 rc2 ?

Søren Bjerg

Quote from: Prasad007 on April 21, 2006, 03:19:02 AM
does this mod work on 1.1 rc2 ?
The version Senkusha posted in this post is an adapted version for 1.1 RC2.
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Prasad007

#72
Quote from: Søren Bjerg on April 21, 2006, 03:27:18 AM
Quote from: Prasad007 on April 21, 2006, 03:19:02 AM
does this mod work on 1.1 rc2 ?
The version Senkusha posted in this post is an adapted version for 1.1 RC2.
okay ill try it.thanks!


*EDIT*
with that mod installed i get this error:

Quote
Database Error
Can't find FULLTEXT index matching the column list
File: /home/admin/public_html/forum/Sources/Display.php
Line: 174

kezayah

Quote from: kezayah on April 20, 2006, 10:17:12 AM
I have a lot of errors in my log with your mod !!!  :(

8: Undefined index: is_very_hot
Fichier: /home/www/****/web/Sources/Subs.php
Ligne: 3161

8: Undefined variable: mssub
Fichier: /home/www/****/web/Sources/Display.php
Ligne: 182
up !!!  :'(

Senkusha

#74
Quote from: Prasad007 on April 21, 2006, 03:28:48 AM
Quote from: Søren Bjerg on April 21, 2006, 03:27:18 AM
Quote from: Prasad007 on April 21, 2006, 03:19:02 AM
does this mod work on 1.1 rc2 ?
The version Senkusha posted in this post is an adapted version for 1.1 RC2.
okay ill try it.thanks!


*EDIT*
with that mod installed i get this error:

Quote
Database Error
Can't find FULLTEXT index matching the column list
File: /home/admin/public_html/forum/Sources/Display.php
Line: 174


You have to create a FULL TEXT index in your messages table.  This is explained above.

And the is_hot index problem should have been fixed in the latest release.  (I fixed this on Wednesday, I beleive.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

kezayah

Quote from: Senkusha on April 21, 2006, 05:20:03 AM
And the is_hot index problem should have been fixed in the latest release.  (I fixed this on Wednesday, I beleive.
I have installed your latest release of Wednesday and there are always the same errors !!!  :-\

Senkusha

So sorry!  I found the problem and fixed it.  New file has been uploaded.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Prasad007

Quote from: Senkusha on April 21, 2006, 05:20:03 AM
Quote from: Prasad007 on April 21, 2006, 03:28:48 AM
Quote from: Søren Bjerg on April 21, 2006, 03:27:18 AM
Quote from: Prasad007 on April 21, 2006, 03:19:02 AM
does this mod work on 1.1 rc2 ?
The version Senkusha posted in this post is an adapted version for 1.1 RC2.
okay ill try it.thanks!


*EDIT*
with that mod installed i get this error:

Quote
Database Error
Can't find FULLTEXT index matching the column list
File: /home/admin/public_html/forum/Sources/Display.php
Line: 174


You have to create a FULL TEXT index in your messages table.
how do u do that ?

kezayah

Quote from: Senkusha on April 21, 2006, 06:43:24 AM
So sorry!  I found the problem and fixed it.  New file has been uploaded.
It's perfect !!!  8)

Senkusha

Quote from: Prasad007 on April 21, 2006, 11:34:47 AM
Quote from: Senkusha on April 21, 2006, 05:20:03 AM
Quote from: Prasad007 on April 21, 2006, 03:28:48 AM
Quote from: Søren Bjerg on April 21, 2006, 03:27:18 AM
Quote from: Prasad007 on April 21, 2006, 03:19:02 AM
does this mod work on 1.1 rc2 ?
The version Senkusha posted in this post is an adapted version for 1.1 RC2.
okay ill try it.thanks!


*EDIT*
with that mod installed i get this error:

Quote
Database Error
Can't find FULLTEXT index matching the column list
File: /home/admin/public_html/forum/Sources/Display.php
Line: 174


You have to create a FULL TEXT index in your messages table.
how do u do that ?


Open your terminal / Command prompt, log into mysql and type the following command:

USE smf;
ALTER TABLE smf_messages ADD FULLTEXT(subject, body);


Based on what I read on the MYSQL site, this is how to modify a table to include a new index.
--Senkusha
The Anime Brigade
Anime-style Role Playing Games and Discussion.
(SMF v. 2.1.4, PHP v. 8.0)

Advertisement: