News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Search Logs

Started by husmen73 (Gulhin), July 24, 2008, 03:02:17 PM

Previous topic - Next topic

husmen73 (Gulhin)

Did you search something on your site?
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

ArkServer

Quote from: Aslanbac (husmen73) on August 05, 2008, 01:54:27 PM
Did you search something on your site?

No but i figured out what the problem was, it didn't create the database tables for me so i had it done manually.  ;D

Sudhakar Arjunan

Hi I look my error log every day and get this error stored for many time an hour.


http://forum.itacumens.com/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MTIsMTUsMjMsNjgsNzAsMzAsNDUsMzEsMzIsMzMsMTksMzUsMzYsMzcsMzgsMzQsNjcsNjYsMTYsNDksNTAsNzYsNTYsNTEsNTIsNTMsNTQsNTUsNjEsNzEsNzIsMTcsMjgsNzMsMzksMTQsNDAsNDEsMjksNDIsNDMsNzQsNDQsMjAsMjEsMjIsNjksNDgsNTcsMjcsMjQsMjUsNzUsNjAsNjMsNjQsNjUsNjIsMjYsNTksMTgsNDYsNDcsMTMsNTh8InxzaG93X2NvbXBsZXRlfCd8fCJ8c3ViamVjdF9vbmx5fCd8fCJ8c29ydHwnfHJlbGV2YW5jZXwifHNvcnRfZGlyfCd8ZGVzY3wifHNlYXJjaHwnfEJQTyBDT01QQU5ZIENIRU5OQUk=;start=120
Apply Filter: Only show the errors with the same message
8: Undefined index: searchlog_invalid_word
File: /home/itacumen/public_html/forum/Sources/Errors.php
Line: 337


Kindly have a check and help me to avoid this time of search error from users side.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Sudhakar Arjunan

Quote from: karlbenson on August 14, 2008, 10:05:46 AM
The search query isn't too big. It has been converted to base64.

The cause of the issue is due to a missing language string $txt['searchlog_invalid_word'] is being called in Errors.php
But that language string appears to be missing from whatever language set you are using.

Could anyone figure the error out.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

husmen73 (Gulhin)

Please add it into your Modifications.english.php file

$txt['searchlog_invalid_word'] = 'You haven\'t search anything, please write something';
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

Sudhakar Arjunan

Thanks for it.

Hope the error is no more.

Good Mod and very Useful for administrators to read what the users are searching for.

Great Mod Once.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ディン1031

#26
Theres a bug in the mod a huge one ;) you can never open a second page at the moment *g*

You use $_REQUEST['search'] to check of something search but this is not correct you should use $search_params['search'], because if you go to the second page the $_REQUEST['search'] does not exist any more.

Search in the Search.php for

createSearchLog($_REQUEST['search'], ( db_affected_rows($request) ? 1 : 0 ));
replace it with
createSearchLog($search_params['search'], ( db_affected_rows($request) ? 1 : 0 ));

Than it should fix the problem ;).



And i little thing to make it more comfortable :D

<file name="$languagedir/ManagePermissions.turkish.php">
<operation>
<search position="end" error="skip" />


it's better to use

<file name="$languagedir/ManagePermissions.turkish.php" error="skip">
<operation>
<search position="end" />


The difference is that now if the file not exists he will skip this file, and i think that is what you want to do =).

Hope i could help you to make you mod better =)

Bye
DIN1031

Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Sudhakar Arjunan

Quote from: ディン1031 on August 15, 2008, 10:12:40 AM
Theres a bug in the mod a huge one ;) you can never open a second page at the moment *g*

You use $_REQUEST['search'] to check of something search but this is not correct you should use $search_params['search'], because if you go to the second page the $_REQUEST['search'] does not exist any more.

Search in the Search.php for

createSearchLog($_REQUEST['search'], ( db_affected_rows($request) ? 1 : 0 ));
replace it with
createSearchLog($search_params['search'], ( db_affected_rows($request) ? 1 : 0 ));

Than it should fix the problem ;).

Thanks for this bug ディン1031.
I have updated the mod in my forum.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

husmen73 (Gulhin)

Thank you ディン1031, I have updated it on ModSite
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

xrunner

I got the latest version and no search log tab ever showed up at the top, even after searching.

:-\

Sudhakar Arjunan

Hi Currently it started showing all the logs.

This would be good , Shows the number of counts like.

1st time user searched for books.
2nd time user searched for books.

Shows like books, books.

Instead could you make books(2).

And if started going more than 100 pages in search log. Wil it be a problem for loading search page everytime.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

[SiNaN]

xrunner:

Are you using a custom theme? If yes, you should make the theme file edits manually on your custom theme too.

asudhakar:

Not a bad idea actually, but I knew that it worked like that. Anyway, I'll check it again.

It wont be a problem if it reaches 100 pages; but if you like, you can delete old logs from admin panel. You can define the day and logs, before that day are deleted.
Former SMF Core Developer | My Mods | SimplePortal

xrunner

#32
Quote from: [SiNaN] on August 16, 2008, 11:04:31 PM

Are you using a custom theme? If yes, you should make the theme file edits manually on your custom theme too.

No, it's the default theme. The installation script reported no errors when installing either.


husmen73 (Gulhin)

Quote from: xrunner on August 17, 2008, 08:25:26 AM
No, it's the default theme. The installation script reported no errors when installing either.
Can you see SearchLog menu item on Search menu on Admin panel
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

Basie

Quote10.     Execute Modification     ./Sources/Subs.php     Test failed

:(

[SiNaN]

xrunner:

What's your default language?

Basie:

We just have a one line addition in Subs.php, which you can make manually:

Subs.php

Find:

    $context['allow_memberlist'] = allowedTo('view_mlist');

Replace:

    $context['allow_memberlist'] = allowedTo('view_mlist');
    $context['allow_searchlog'] = allowedTo('searchlog');
Former SMF Core Developer | My Mods | SimplePortal


xrunner

Quote from: Aslanbac (husmen73) on August 17, 2008, 12:07:18 PM
Quote from: xrunner on August 17, 2008, 08:25:26 AM
No, it's the default theme. The installation script reported no errors when installing either.
Can you see SearchLog menu item on Search menu on Admin panel

No. My default language is English

[SiNaN]

Is it utf-8? Can you attach your Modifications.english.php file here so that we can check it?
Former SMF Core Developer | My Mods | SimplePortal

xrunner

Quote from: [SiNaN] on August 18, 2008, 07:31:42 AM
Is it utf-8? Can you attach your Modifications.english.php file here so that we can check it?

You mean before or after the installation of the mod? It's not installed now because it wasn't working.

Advertisement: