The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#112
|
|||
|
|||
Great idea for a hack. I've asked many people about something exactly like this! There is no better keyword data than from your internal search!
Edit: gah - is there anyway that the output can be displayed on a page in the admin control panel. I don't want others to see this data, it should be used internally only. Like a list of the last 100 searches or something. |
#113
|
|||
|
|||
Cool Mod.. thx!!
|
#114
|
|||
|
|||
you need to replace the install code and uninstall code lines in xml file with following
Code:
<installcode><![CDATA[$db->hide_errors(); $db->query_write("CREATE TABLE" .TABLE_PREFIX. "coder_searchstats ( `id` int(10) unsigned NOT NULL auto_increment, `query` varchar(200) NOT NULL default '', `dateline` int(10) unsigned NOT NULL default '0', `count` int(11) NOT NULL default '0', PRIMARY KEY (`id`) )"); $db->show_errors();]]></installcode> <uninstallcode><![CDATA[$db->hide_errors(); $db->query_write("DROP TABLE" .TABLE_PREFIX. "coder_searchstats"); $db->show_errors();]]></uninstallcode> |
#115
|
|||
|
|||
Hello, i just install this module and after this i get this error
Quote:
|
#116
|
|||
|
|||
Quote:
|
#117
|
||||
|
||||
When using this mod in Firefox, the keywords show weird behavior. For instance: a keyword like "Roma Pass" would show "Pass" at the end of line 2 and "Roma" at the beginning of line 1. (See screenshot 1, and yes, this is one keyword, not two). Also, as soon as one clicks a keyword, the keywords sort of jump around and even disintegrate before the search-page is loaded, and most of the time the search page isn't even loaded at all. Link: http://www.roma-antiqua.de/forum/ Screenshots attached. This is the source code of the page: HTML Code:
<td class="alt1" width="100%"><span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=jugendherberge"><font size="3">jugendherberge</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=rom meer"><font size="3">rom meer</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=romapass"><font size="2">romapass</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=Roma Pass"><font size="3">Roma Pass</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=Toiletten"><font size="3">Toiletten</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=Kolosseum"><font size="5">Kolosseum</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=tempel"><font size="2">tempel</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=taxi pauschale"><font size="3">taxi pauschale</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=taxi"><font size="2">taxi</font></a></span> <span dir="rtl"><a rel="nofollow" href="http://www.roma-antiqua.de/forum/search.php?do=process&query=Fiumicino"><font size="2">Fiumicino</font></a></span> </td> In IE everything works just fine. |
#118
|
||||
|
||||
Never mind, fixed it myself. Maybe you should think about changing the code accordingly?
I had to change the code of the "forumhome_complete" plugin. It's this piece of code: Code:
$r = round($rat*$put['count']);
$most_searched .= "<span dir=\"rtl\"><a href=\"search.php?q=". $put['query'] ."\"><font size=\"".$r."\">" . strip_tags($put['query']) . "</font></a></span> ";
Next problem, which caused the funny line-changing-behaviour I described: If you insert " " only, Firefox will not allow linebreaks there - which is exactly as it should be (after all, nbsp stands for non breaking space). So linebreaks will only be where there happens to be a space in the keywords (i.e. if the search term consists of two words). Solution: Add a normal space in the code after the closing a-Tag. So, the code from above looks like this and now works all well in Firefox! Code:
$r = round($rat*$put['count']);
$most_searched .= "<a href=\"search.php?q=". $put['query'] ."\"><font size=\"".$r."\">" . strip_tags($put['query']) . "</font></a> ";
--- Furthermore I centered the keywords, which is really easy to do. Instead of the original template-modification-code provided, use this: Code:
<if condition="$vbulletin->options['setting_searchstats_showuser']"> <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> |
#119
|
||||
|
||||
Another question I have.
At my forum it seems that not the most searched keywords are displayed, but a random choice of all keywords. If I hit reload every so often, sometimes one or other of my most searched for keywords vanish. |
#120
|
|||
|
|||
PHP Code:
Also, it would be great if you could make it so that it would log what people search for via the Zoints Tag search. |
#121
|
|||
|
|||
For all the people who have the SQL problem:
You have to rename the created table, MANUALLY, with PhpMyAdmin or other SQL management scripts, from coder_searchstats, to vb_coder_searchstats. The creator of this module, appends all over the place, the VB standard table prefix, although he creates the database without it. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|