Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:12:11 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155479 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Idea: List search keywords from visitors in admin?  (Read 597 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« on: February 21, 2009, 05:08:29 PM »

Hi,

In one of our previous company websites we had a search engine that listed the keywords entered by visitors in the admin.

Therefore we knew exactly which subjects/topics were important so we could highlight our activities towards those keywords.

I was wondering (since I'm a designer, not a coder) if there's a possibility to grab the search keywords and list them somewhere in the admin.

Greetz,
Boudi
Logged

...:: Bake the Unbakable ::...
SourDough

Offline Offline

Posts: 47


WWW
« Reply #1 on: February 21, 2009, 06:05:58 PM »

Hi Boudi,

I'm actually working on a statistics module right now and I just implemented this feature.  It requires modification to one of the core files (WB_PATH/search/search.php).  I just added a line to insert a new record with the search terms into my stats table.  If I have time I'll try to create an admin tool out of this idea.

Nick
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #2 on: February 21, 2009, 06:16:42 PM »

Hi Nick,

A fast & very nice answer!  smiley

It would be great if you could succeed in this. I really think this could be a very handy mod for lots of WB users.

Success with your mod and keep us posted with your progress  cheesy

Greetz,
Boudi

Logged

...:: Bake the Unbakable ::...
thorn

Offline Offline

Posts: 980


WWW
« Reply #3 on: February 21, 2009, 06:49:58 PM »

Hello,

you may try the admin-tool "searchtools" from here http://www.websitebaker2.org/forum/index.php/topic,10133.msg59499.html#msg59499

It collects the search strings from the internal search, and from external searches (Google&Co. via query-string), too.
But it was intended  mainly for making tagclouds (and as user-tracker to track down spam), but definitely not as counter.
The display of searchstrings in the admin-tool is faulty -- do not use them.

If used only for the internal search, there is no need to alter core-files, just install the module, and perform some searches.
Then create a page from type code and enter this:
Code:
if(file_exists(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php')) {
  require_once(WB_PATH.'/modules/searchtools/tagcloud/tagcloud.php');
  $tags = fetch_tagcloud('dist', 100);
  display_tagcloud($tags, 'Most searched words');
}

There is a comprehensive online-help to learn more about this (in german only).


Development of this module is stalled since October 2008. But it's scheduled to continue in April 2009.

thorn.
Logged

Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #4 on: February 21, 2009, 09:40:02 PM »

Hi Thorn,

In checked the mod out like you advised and it works. So that's cool. Thnq!  smiley

Visually it's not really made for the goal I intent and you can't watch the results in the admin but at least the basics are there: the search words and how often those words are typed in the search field.

Last question: Is there any way that I can delete the search results?

@ Sourdough:
Although for the time being Thorn hooked me up with a splended temporary solution It would be great when you can get the statistics mod ready and up & running.

For now...Thnq you for your quick responses and solutions! Appreciate it  cheesy

Greetz,
Boudi

Logged

...:: Bake the Unbakable ::...
thorn

Offline Offline

Posts: 980


WWW
« Reply #5 on: February 21, 2009, 10:00:36 PM »

Hello,

Last question: Is there any way that I can delete the search results?

In the Admin-Tool, go to Search-Tools -> Maintenance -> Purge Database

thorn.
Logged

Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #6 on: February 21, 2009, 10:04:01 PM »

I see a totally blank field  embarassed
Logged

...:: Bake the Unbakable ::...
thorn

Offline Offline

Posts: 980


WWW
« Reply #7 on: February 21, 2009, 10:21:51 PM »

I see a totally blank field  embarassed
Ooops, this is broken since 0.60.1  embarassed

uploaded fixed version http://www.websitebaker2.org/forum/index.php/topic,10133.0.html

thorn.
Logged

Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #8 on: February 21, 2009, 10:28:48 PM »

yess much better! Thnq  cheesy

Boudi
Logged

...:: Bake the Unbakable ::...
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!