Version: 2.00, by coderphp
Developer Last Online: Jan 2023
Category: Statistics Modifications -
Version: 3.6.7
Rating:
Released: 07-21-2007
Last Update: Never
Installs: 66
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
Hi all
Did you ever wondered what your users expect to find in your forums?
Did you ever wanted to know what are their needs?
Did you ever wanted to let them know what they can easily find?
If your answer is "Yes", then you must use this product ...
Most searched keywords leads to results page directly instead of search page.
Fixed random list bug.
Fixed blank keyword bug.
An option for choosing who can see search stats in homepage.
Censor words listed in Most searched stats according to Forum's censor list.
Solved "<span dir=rtl>" problem.
Solved TABLE_PREFIX problem.
Solved falsy search count when user clicks on links on "most searched keyword stats". ((Thanx to h2ojunkie))
Features
1- Log user searches in your forums.
2- Show most searched keywords on the main forums page in away that demonstrates every keywords importance in your forums.
Screens
Version
Expected to work on all vBulletin 3.6 versions tell now.
Template Edits
1 template edit in FORUMHOME
Plugins
2 Plugins
Installation
1- Upload the directory "upload" contents to your forum root.
2- Import the attached product "[product] Forum Search Stats 2.0.xml" into your AdminCP.
3- Edit template "FORUMHOME":
BEFORE:
I hope I'm not stepping on any toes, cause I really do love this mod.
I just tested V2 on 3.6.4 to see if it would work and get the following error when trying to view search stats in admincp. (I know, i'm too lazy to do the full 3.6.7 update and settled for just the security patches)
Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /my/path/forum/admincp/search_stats.php on line 18
I used the same fix on V2 that I did on V1 to solve the problem
in search_stats.php
Replace this:
PHP Code:
$records=$db->query_read("SELECT * FROM " . TABLE_PREFIX . "coder_searchstats");
$num=mysql_num_rows($records);
$records=$db->query_read("SELECT s.id, s.query, s.dateline, s.count FROM " . TABLE_PREFIX . "coder_searchstats AS s ORDER BY `count` DESC LIMIT $eu, $limit");
$pa = ceil($eu/$limit)+1;
$to = ceil($num/$limit);
print_form_header();
print_table_header($vbphrase['coder_searchstats_show'] . "(Page $pa of $to)", 5);
if(mysql_num_rows($records) > 0)
With this:
PHP Code:
$recordcount=$db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "coder_searchstats");
$num=$recordcount['count'];
$records=$db->query_read("SELECT s.id, s.query, s.dateline, s.count FROM " . TABLE_PREFIX . "coder_searchstats AS s ORDER BY `count` DESC LIMIT $eu, $limit");
$pa = ceil($eu/$limit)+1;
$to = ceil($num/$limit);
print_form_header();
print_table_header($vbphrase['coder_searchstats_show'] . "(Page $pa of $to)", 5);
if($num > 0)
Also the "Most searched keywords" block on forum home still shows to usergroups that don't have permissions to see it.
The actual search terms don't show up (just the word "None") but the block itself still shows. I would think the entire section should not show if they don't have viewing permissions. It doesn't make sense to show a 'search stats' box with nothing in it.
So I changed the FORUMHOME template edit from this:
I hope I'm not stepping on any toes, cause I really do love this mod.
I just tested V2 on 3.6.4 to see if it would work and get the following error when trying to view search stats in admincp. (I know, i'm too lazy to do the full 3.6.7 update and settled for just the security patches)
Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /my/path/forum/admincp/search_stats.php on line 18
I used the same fix on V2 that I did on V1 to solve the problem
in search_stats.php
Replace this:
PHP Code:
$records=$db->query_read("SELECT * FROM " . TABLE_PREFIX . "coder_searchstats"); $num=mysql_num_rows($records);
$records=$db->query_read("SELECT s.id, s.query, s.dateline, s.count FROM " . TABLE_PREFIX . "coder_searchstats AS s ORDER BY `count` DESC LIMIT $eu, $limit"); $pa = ceil($eu/$limit)+1; $to = ceil($num/$limit); print_form_header(); print_table_header($vbphrase['coder_searchstats_show'] . "(Page $pa of $to)", 5); if(mysql_num_rows($records) > 0)
With this:
PHP Code:
$recordcount=$db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "coder_searchstats"); $num=$recordcount['count'];
$records=$db->query_read("SELECT s.id, s.query, s.dateline, s.count FROM " . TABLE_PREFIX . "coder_searchstats AS s ORDER BY `count` DESC LIMIT $eu, $limit"); $pa = ceil($eu/$limit)+1; $to = ceil($num/$limit); print_form_header(); print_table_header($vbphrase['coder_searchstats_show'] . "(Page $pa of $to)", 5); if($num > 0)
i tested it again and i didnt face this problem
i dont know maybe u have another hack which interfere with this?
Quote:
Originally Posted by h2ojunkie
Also the "Most searched keywords" block on forum home still shows to usergroups that don't have permissions to see it.
The actual search terms don't show up (just the word "None") but the block itself still shows. I would think the entire section should not show if they don't have viewing permissions. It doesn't make sense to show a 'search stats' box with nothing in it.
So I changed the FORUMHOME template edit from this: