Gossamer Forum
Home : Products : Links 2.0 : Customization :

Neat Suggestion for Top Search Mod (Keyword Logger)

(Page 3 of 3)
> >
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
DOH!

I forgot that my stupid server requires me to input the full path. It works now. You guys rock!

Hey Jerry,

What do need to change in the radom.cgi to call the second type of log file (above)
like:
accounting|24|940106975

Thanks again.
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
socrates,

I think (and please correct me if I am wrong, Widgetz), you need to edit the foreach (@queries) codes to the following:

Code:
foreach (@queries) {
chomp; $output .= qq~"~ . (split(/\|/\|/, $_))[0] . qq~",~;
}

Hope this works and helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
not really

Code:
foreach (@queries) {
chomp; $output .= qq~"~ . (split(/\|/, $_))[0] . qq~",~;
}

jerry
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Thanks, Jerry.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Thanks guys, I will that.
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Elliot I saw that on your site. It is great!
One thing that was so cool was you can see what people are searching on. Is this in real time?

Would you be willing to share the code. That is one of the best mods I have seen!

Thanks,

Lpluby
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
The codes are located in this Thread that you need to create this Mod in your site. You will have to download the Keylogger Mod from the Resource Center.

And it is sort of in real time. It basically takes five keywords at a time and rotates them upon reloading the page.

Good luck.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Hi all,

I just tried to figure out which modifications I have to use to install this mod - hard to do - I think I didn't understand everything.
Heres what I tried:
Quote:
I make a cgi file called random.cgi
---
#!/usr/local/bin/perl$display = 20;open (FILE, "jsrandomq.txt");@file = <FILE>;close FILE;$start = int rand $#file;if ($start+$display > $#file) { @queries = @file[$start .. $#file]; push (@queries, @file[0 .. $display-($#file-$start)-2]);}else { @queries = @file[$start .. $start+$display-1]; }foreach (@queries) { chomp; $output .= qq~"$_",~; }chop $output;print "Content-type: text/plain\n\n";print $output;
---

Hmm - and then I should include a JavaScript to my page which displays searches randomly.
But how can I get a log file like this:
hello
money
weather
music
I only have such a log file
huhu|1|952180544
I'm really confused... Could anyone tell me how to so that cool mod ?
I really tried a lot but it does not work...

Ok - any idea to help me ? would be really cool.
cya,

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Hi all,

I just tried to figure out which modifications I have to use to install this mod - hard to do - I think I didn't understand everything.
Heres what I tried:
Quote:
I make a cgi file called random.cgi
---
#!/usr/local/bin/perl$display = 20;open (FILE, "jsrandomq.txt");@file = <FILE>;close FILE;$start = int rand $#file;if ($start+$display > $#file) { @queries = @file[$start .. $#file]; push (@queries, @file[0 .. $display-($#file-$start)-2]);}else { @queries = @file[$start .. $start+$display-1]; }foreach (@queries) { chomp; $output .= qq~"$_",~; }chop $output;print "Content-type: text/plain\n\n";print $output;
---

Hmm - and then I should include a JavaScript to my page which displays searches randomly.
But how can I get a log file like this:
hello
money
weather
music
I only have such a log file
huhu|1|952180544
I'm really confused... Could anyone tell me how to so that cool mod ?
I really tried a lot but it does not work...

Ok - any idea to help me ? would be really cool.
cya,

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Hi all,

I just tried to figure out which modifications I have to use to install this mod - hard to do - I think I didn't understand everything.
Heres what I tried:
Quote:
I make a cgi file called random.cgi
---
#!/usr/local/bin/perl$display = 20;open (FILE, "jsrandomq.txt");@file = <FILE>;close FILE;$start = int rand $#file;if ($start+$display > $#file) { @queries = @file[$start .. $#file]; push (@queries, @file[0 .. $display-($#file-$start)-2]);}else { @queries = @file[$start .. $start+$display-1]; }foreach (@queries) { chomp; $output .= qq~"$_",~; }chop $output;print "Content-type: text/plain\n\n";print $output;
---

Hmm - and then I should include a JavaScript to my page which displays searches randomly.
But how can I get a log file like this:
hello
money
weather
music
I only have such a log file
huhu|1|952180544
I'm really confused... Could anyone tell me how to so that cool mod ?
I really tried a lot but it does not work...

Ok - any idea to help me ? would be really cool.
cya,

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Hi all,

I just tried to figure out which modifications I have to use to install this mod - hard to do - I think I didn't understand everything.
Heres what I tried:
Quote:
I make a cgi file called random.cgi
---
#!/usr/local/bin/perl$display = 20;open (FILE, "jsrandomq.txt");@file = <FILE>;close FILE;$start = int rand $#file;if ($start+$display > $#file) { @queries = @file[$start .. $#file]; push (@queries, @file[0 .. $display-($#file-$start)-2]);}else { @queries = @file[$start .. $start+$display-1]; }foreach (@queries) { chomp; $output .= qq~"$_",~; }chop $output;print "Content-type: text/plain\n\n";print $output;
---

Hmm - and then I should include a JavaScript to my page which displays searches randomly.
But how can I get a log file like this:
hello
money
weather
music
I only have such a log file
huhu|1|952180544
I'm really confused... Could anyone tell me how to so that cool mod ?
I really tried a lot but it does not work...

Ok - any idea to help me ? would be really cool.
cya,

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Uaaarrrggghhhh,

sorry, for posting this reply 4 times.
I didn't see that it was posted - i always got a 500 internal server error and tried it again Smile
Hehe - hope this won't stop you to try to help me...
thanks,

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Cool - it works i think
thats my random.cgi

Quote:
#!/usr/local/bin/perl
$display = 5;
open (FILE, "admin/data/keywords.txt");
@file = <FILE>;
close FILE;
$start = int rand $#file;
if ($start+$display > $#file) {
@queries = @file[$start .. $#file];
push (@queries, @file[0 .. $display-($#file-$start)-2]);
}
else { @queries = @file[$start .. $start+$display-1]; }
foreach (@queries) {
chomp; $output .= qq~"~ . (split(/\|/, $_))[0] . qq~",~;
}
chop $output;
print "Content-type: text/plain\n\n";
print $output;

And thats the JavaScript:

Quote:
<script language="JavaScript">
<!--
var text = new Array(<!--#exec cgi="cgi-bin/easy/random.cgi"--> )
var i = 0;
function scroll() {
if (text.length > -1) {
if (document.topsearch) {
document.topsearch.query.value = text[i++];
if (i == text.length) i = 0;
}
}
setTimeout ("scroll()", 7000);
}
// -->
</script>

But I can not implemet it on my templates - they are no shtml files !
What do I have to do to change all templates to shtml ?

Nikolai
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Uh...Before changing extensions of your files, you should simply use the .htaccess codes that allows SSI to execute in .html as well as in .shtml files. Codes for modifying the .htaccess file have been posted two or three times in the Perl/CGI Forum and once or twice in this Forum.

BTW: The duplicate postings is not your fault...It is a system error on part of the Gossamer-Threads server.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 04, 2000).]
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
[ Duplicate Reply..Deleted ]

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 04, 2000).]
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
[Duplicate Reply...Deleted]

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 04, 2000).]
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Thanks Eliot,

now it seems to work quite fine Smile
BTW when will Widgetz release his Admin-mod, or is it released and I didn't see it ?

Nikolai

[This message has been edited by DigitalFusion (edited March 04, 2000).]
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
He has posted codes in this Forum....

Search for PASSWORD ADMIN MOD.

And he has mentioned in other Topics that he is NOT going to be posting a formal Mod in his site for awhile.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Neat Suggestion for Top Search Mod (Keyword Logger) In reply to
Hey Eliot,

thanks a lot for help.
I'll try to figure out how to setup this mod...
cya,

Nikolai
> >