Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Search Stats V.2 Details »»
Forum Search Stats V.2
Version: 2.00, by coderphp coderphp is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

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 ...

The 1st version was here
https://vborg.vbsupport.ru/showthread.php?t=139829

What is new in Version 2
  1. Most searched keywords in smaller text.
  2. Most searched keywords leads to results page directly instead of search page.
  3. Fixed random list bug.
  4. Fixed blank keyword bug.
  5. An option for choosing who can see search stats in homepage.
  6. Censor words listed in Most searched stats according to Forum's censor list.
  7. Solved "<span dir=rtl>" problem.
  8. Solved TABLE_PREFIX problem.
  9. 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:
Code:
</table>
<br />
<!-- end what's going on box -->
ADD:
Code:
<if condition="$vbulletin->options['setting_searchstats_showuser'] AND in_array($vbulletin->userinfo['usergroupid'], $allowed_groups)">
<tbody>
 <tr>
  <td class="thead" colspan="2">
   <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
$vbphrase[most_searched]
</td>
 </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
 <tr>
  <td class="alt2"><img src="images/misc/search_stats.gif" alt="$vbphrase[most_searched]" border="0" /></td>
  <td class="alt1" width="100%">$most_searched</td>
 </tr>
</tbody>
</if>
Finally, if you like the product Please show your support by clicking INSTALL..
you can also NOMINATE FOR MOD OF THE MONTH

ALSO, many thanx for all who helped in testing and debugging the 1st version, the list is long so i couldnt name them here

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-23-2007, 12:41 AM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coderphp View Post
i tested it again and i didnt face this problem
i dont know maybe u have another hack which interfere with this?
I guess it's possible.

I just remembered that I had the same problem with V1 and that was the fix which also happened to work on v2

I guess it's possible I have something else in there that is conflicting with it (although i can't imagine what it could be since search_stats.php is a stand alone admincp script and I have no mods that alter the search in any way.

But who knows, when you start modding stuff you run into all kinds of potential for conflicts. I just figured I would post up the fix just in case someone else experienced a similar problem.

Again, thank you for a great mod.
Reply With Quote
  #13  
Old 07-23-2007, 12:51 AM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a thought, but it occurred to me that every time a user clicks on one of the "most searched" keywords on forum home it is actually increasing the count for the # of times that term/phrase was searched for, thereby falsely inflating the true number of searches people did on the term.

Since people are likely to click on them because...they can....it would seem those "most searched" words would be inflated and always remain showing in the top 20 most searched.

Maybe append a new parameter to the end of the link to each of those search terms something like (searchstats=donotcount for example). Where if that parameter is passed when clicking on the link, the searchstats plugin knows not to add to the count for that word/phrase. This way the only words counted in the search stats are terms people actually searched for on their own.

Anyway, just an idea. That was a change on made on mine.
Reply With Quote
  #14  
Old 07-23-2007, 01:24 AM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coderphp View Post
can u clearify why u think that?
Yeah. I think it should go on the search page (both advanced search and search results) myself. The "What's Going On is already overcluttered that it will be ignored by most users and you don't need this information shown unless someone is looking to search.
Reply With Quote
  #15  
Old 07-23-2007, 02:13 AM
coderphp's Avatar
coderphp coderphp is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by h2ojunkie View Post
Just a thought, but it occurred to me that every time a user clicks on one of the "most searched" keywords on forum home it is actually increasing the count for the # of times that term/phrase was searched for, thereby falsely inflating the true number of searches people did on the term.

Since people are likely to click on them because...they can....it would seem those "most searched" words would be inflated and always remain showing in the top 20 most searched.

Maybe append a new parameter to the end of the link to each of those search terms something like (searchstats=donotcount for example). Where if that parameter is passed when clicking on the link, the searchstats plugin knows not to add to the count for that word/phrase. This way the only words counted in the search stats are terms people actually searched for on their own.

Anyway, just an idea. That was a change on made on mine.
gr8 idea i think
maybe i have sometime to update it soon and add it
thanx for ur feedback & support

Regards
Mahmoud
Reply With Quote
  #16  
Old 07-23-2007, 02:15 AM
kushal kushal is offline
 
Join Date: May 2006
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really good hack for me. And putting it at what's going is is equally good. VbAdvanced module would put more value to it though.
Thank you!
Reply With Quote
  #17  
Old 07-23-2007, 02:17 AM
coderphp's Avatar
coderphp coderphp is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke View Post
Yeah. I think it should go on the search page (both advanced search and search results) myself. The "What's Going On is already overcluttered that it will be ignored by most users and you don't need this information shown unless someone is looking to search.
yeah thanx for ur clearance of the topic..

but i think this place is suitable for this stat
if it is all going to go like u said, so we should move the "Members count stat" to the memberlist page
i think the Forumhome footer is suitable for displaying multiple stats which belongs to different things

thanx again for ur feedback, of course everyone has his own point of view, this doesnt mean the other is false
Reply With Quote
  #18  
Old 07-23-2007, 02:19 AM
coderphp's Avatar
coderphp coderphp is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kushal View Post
VbAdvanced module would put more value to it though.
as it was asked b4
i will think about integration with VBA

thanx for ur feedback
Regards
Reply With Quote
  #19  
Old 07-23-2007, 04:37 AM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coderphp View Post
gr8 idea i think
maybe i have sometime to update it soon and add it
thanx for ur feedback & support

Regards
Mahmoud
Here's how I did it - changes in red

forumhome_complete plugin:
Code:
if(!in_array(strip_tags($put['query']), $censor_words)) $most_searched .= "<a href=\"search.php?do=process&searchstats=nocount&q=". $put['query'] ."\"><font size=\"".$r."\">" . strip_tags($put['query']) . "</font></a> &nbsp;&nbsp;";

search_process_start plugin:
Code:
if($vbulletin->options['setting_searchstats_onoff'] AND $_REQUEST['searchstats']!='nocount')
Always glad to help with a great product when I can - I spend countless hours testing software, all that practice gives me a good eye for incremental improvements
Reply With Quote
  #20  
Old 07-23-2007, 07:31 AM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks interesting, I might try this out at some point. Cheers.
Reply With Quote
  #21  
Old 07-23-2007, 11:26 AM
wizardan wizardan is offline
 
Join Date: Jan 2006
Location: America
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I go about editing in order to have the display font show up as 'smallfont'?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04533 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete