Go Back   Freethought Forum > The Marketplace > Computers & Technology

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2004, 01:19 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default I still know what smilie you searched for last summer

It was going to be "Son of Smilie Search" or "Smilie Search Reloaded" or "Smilie Search 2: The System Strikes Back". But hey, I work by instinct.

The "minor" outstanding tweaks to the smilie search feature are being discussed in PHP programming: smilie search.

This thread is going to focus on the additional-keywords feature, because there are some more complex implications.

Summary
We need to allow more keywords to be stored for each smilie, so that :yup: could be found on a search for any of "happy nod yes smile" etc, without having to pack all those into the title, which is that tooltip displayed when you hover over it with the mouse. That needs to stay as the fundamental meaning of the smilie.

In a nutshell: we'll add an extra field 'keywords' to the smilies table in the vb database.

Minimal extra coding in the smilie popup code - just add the 'keywords' field to the searched text (the haystack).

No extra work or training for the user, just better results.

However, quite a load of extra work for the tribune. She'll love it, but only if there is a way to enter the data.

Programming lesson (there has to be one): a design is no use if the raw data cannot be input, edited and managed.

Editing the keywords
The current interface is the admin control panel (admincp). There are a bunch of templates that allow admins to upload smilies, edit the titles and the categories, and change the display order. I say "a bunch" because you can access them in various different ways, e.g. all smilies at once, by category, single new smilie, etc. And we need to support 'keywords' entry for all of them.

First question, for Livius and viscousmemories ... while I go off and see just how many templates and php functions are involved ... can you think of any good ways to add & edit the keywords, as admins, other than expanding those tables? Mayeb there's something easy I've missed.

(One idea I floated way back was allowing users to update the keywords, but we're not working on that yet. :glare: )

joe
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #2  
Old 09-16-2004, 02:48 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by JoeP
... while I go off and see just how many templates and php functions are involved ...
... which will not be just yet since the firewall people here seem to have some uncanny knowledge that I don't need ftp internet access for any part of my job. :fuming:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #3  
Old 09-16-2004, 02:57 PM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: I still know what smilie you searched for last summer

I know I'm glad my firewall folks are more Keystone than psychic. To answer your question, I can't think of anything other than new fields in those tables, but I'm notoriously ignorant on the matter and so will cede the remaining balance of my time to the honorable administrator from Texas.
Reply With Quote
  #4  
Old 09-16-2004, 04:38 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
Posts: XXXDCCXLVII
Blog Entries: 1
Images: 9
Default Re: I still know what smilie you searched for last summer

Well I'm not sure, but here's a little extra info.

The vbadvanced hacks (portal and links directory) require that smilies be stored with their absolute path. You'll remember this issue coming up with the smilie search post appearing on the portal and some smilies not showing up. This means that we already have an issue with the standard smilie insert process, because liv has to add new smilies with their relative path (the only way it lets you) then go back to each smilie and edit it to add the absolute path. So that could use some fixing anyway.

At the same time, I don't think liv ever uses the add a single smilie function. To my knowledge she always uses the add multiple smilies function. So while we'll want to look at those other templates and functions, I don't think we have any pressing need to do so.

That's about all I have on that.
Reply With Quote
  #5  
Old 09-16-2004, 04:42 PM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: I still know what smilie you searched for last summer

Oh, yes, true that. I've never once use the add a single function. Even if I were to just add one (which I have yet to do), I'd still probably use the multiple function because I like that screen and I don't have to remember the filename.
Reply With Quote
  #6  
Old 09-16-2004, 06:26 PM
Scotty's Avatar
Scotty Scotty is offline
Member
 
Join Date: Jul 2004
Posts: CCCXCIII
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by JoeP
Quote:
Originally Posted by JoeP
... while I go off and see just how many templates and php functions are involved ...
... which will not be just yet since the firewall people here seem to have some uncanny knowledge that I don't need ftp internet access for any part of my job. :fuming:
Do you have or use sftp? You should anyway, ftp isn't very secure.


-Scott
Reply With Quote
  #7  
Old 09-16-2004, 07:37 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by Scotty
Quote:
Originally Posted by JoeP
Quote:
Originally Posted by JoeP
... while I go off and see just how many templates and php functions are involved ...
... which will not be just yet since the firewall people here seem to have some uncanny knowledge that I don't need ftp internet access for any part of my job. :fuming:
Do you have or use sftp? You should anyway, ftp isn't very secure.

-Scott
I don't - can you recommend a good tool, for occasional use? WinXp.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #8  
Old 09-16-2004, 07:59 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
Posts: XXXDCCXLVII
Blog Entries: 1
Images: 9
Default Re: I still know what smilie you searched for last summer

I think WinSCP may be the droid you're looking for.
Reply With Quote
  #9  
Old 09-16-2004, 08:10 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Something tells me not everyone will be fascinated by the details of what admincp panels you use: discussion on the test forum. (I'll move it back here if everyone wants to see the bory details.)
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #10  
Old 09-16-2004, 08:14 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

bory = gory but boring
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #11  
Old 09-16-2004, 09:27 PM
Scotty's Avatar
Scotty Scotty is offline
Member
 
Join Date: Jul 2004
Posts: CCCXCIII
Default Re: I still know what smilie you searched for last summer

WinSCP is okay, I use http://www.ssh.com/support/downloads/secureshellwks/
Get the non-commercial version, it will have both SSH and SFTP for use on the command line and a GUI.

It isn't too hard to figure out :)

If the machine you are trying to contact does not use SSH, then I would suggest annoying them to put the server up.

Usually the people that set up firewalls don't block outgoing SSH, but sometimes they get annoyed and do it.

-Scott
Reply With Quote
  #12  
Old 09-16-2004, 10:04 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
Posts: XXXDCCXLVII
Blog Entries: 1
Images: 9
Default Re: I still know what smilie you searched for last summer

Um. That would be me he's gonna be annoying now. Thanks Scottie. :madrazz:
Reply With Quote
  #13  
Old 09-17-2004, 01:34 AM
pescifish's Avatar
pescifish pescifish is offline
go fish
 
Join Date: Jul 2004
Location: a rural part of Los Angeles, CA
Posts: VCCII
Images: 78
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by JoeP
In a nutshell: we'll add an extra field 'keywords' to the smilies table in the vb database.
Will that table support multiple rows for each smilie? I don't know what your schema is and how the keys are set up, but you might need to make sure all of the queries to that table are prepared for what they will get back when you start adding a new entry everytime you want a new keyword.

I get the impression you know relational database theory, JoeP, so you've probably already got this covered.
Reply With Quote
  #14  
Old 09-17-2004, 01:36 AM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: I still know what smilie you searched for last summer

Yeah!



* livius drusus giggles ignorantly
Reply With Quote
  #15  
Old 09-17-2004, 01:53 AM
Scotty's Avatar
Scotty Scotty is offline
Member
 
Join Date: Jul 2004
Posts: CCCXCIII
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by viscousmemories
Um. That would be me he's gonna be annoying now. Thanks Scottie. :madrazz:
I said outgoing SSH, as in from his ISP (or work network), which I thought he was complaining that his ISP had been blocking FTP.

If you set up the SSHD (SSH Daemon) then he should be able to use it, but I didn't think you would have access to that sort of thing on the servers.

See, I wasn't talking about you, as far as you know ;)

-Scott
Reply With Quote
  #16  
Old 09-17-2004, 02:51 AM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
Posts: XXXDCCXLVII
Blog Entries: 1
Images: 9
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by Scotty
Quote:
Originally Posted by viscousmemories
Um. That would be me he's gonna be annoying now. Thanks Scottie. :madrazz:
I said outgoing SSH, as in from his ISP (or work network), which I thought he was complaining that his ISP had been blocking FTP.

If you set up the SSHD (SSH Daemon) then he should be able to use it, but I didn't think you would have access to that sort of thing on the servers.

See, I wasn't talking about you, as far as you know ;)

-Scott
It is me you're talkin' about, though, 'cause I'm the administrator of the server he's trying to contact and therefore the one you told him to annoy about offering SSH access. :)

And I do have root access to the server, so anything that needs to be added can be added. As long as I can add it using the cPanel mgt. interface 'cause I'm kinda Unix retarded at this point in my life. :innocent:
Reply With Quote
  #17  
Old 09-18-2004, 12:38 AM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by pescifish
Quote:
Originally Posted by JoeP
In a nutshell: we'll add an extra field 'keywords' to the smilies table in the vb database.
Will that table support multiple rows for each smilie? I don't know what your schema is and how the keys are set up, but you might need to make sure all of the queries to that table are prepared for what they will get back when you start adding a new entry everytime you want a new keyword.

I get the impression you know relational database theory, JoeP, so you've probably already got this covered.
The table currently looks like this (when exported to csv):
Code:
'smilieid','title','smilietext','smiliepath','imagecategoryid','displayorder'
'1','Smile',':)','images/smilies/smile.gif','1','1'
I imagine nothing more than a single additional varchar (or something like that) field with arbitrary keywords separated by spaces. No existing queries would break because they wouldn't select that field (no SELECT * that I've seen).

Having separate records for each keyword would have some attractions in search, but we're talking about thousands of smilies here not millions.

Did I understand you correcketly?
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #18  
Old 09-18-2004, 12:47 AM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

cPanel! :qwoot:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #19  
Old 09-18-2004, 03:08 AM
pescifish's Avatar
pescifish pescifish is offline
go fish
 
Join Date: Jul 2004
Location: a rural part of Los Angeles, CA
Posts: VCCII
Images: 78
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by JoeP
Quote:
Originally Posted by pescifish
Quote:
Originally Posted by JoeP
In a nutshell: we'll add an extra field 'keywords' to the smilies table in the vb database.
Will that table support multiple rows for each smilie?
I imagine nothing more than a single additional varchar (or something like that) field with arbitrary keywords separated by spaces.
That'll take care of it. I missed the "s" on 'keywords' as the new field.
Quote:
Originally Posted by JoeP
No existing queries would break because they wouldn't select that field (no SELECT * that I've seen).
And that's another issue that could break existing queries, if there were "SELECT *" (but that's just bad query juju, so there shouldn't be any!)

Quote:
Originally Posted by JoeP
Having separate records for each keyword would have some attractions in search, but we're talking about thousands of smilies here not millions.

Did I understand you correcketly?
Yup.

As I suspected, you've got things covered. :yup: I hadn't thought of one big blob of text with the multiple keywords to be parsed from the single varchar field.
Reply With Quote
  #20  
Old 09-18-2004, 02:28 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Quote:
Originally Posted by pescifish
As I suspected, you've got things covered. :yup: I hadn't thought of one big blob of text with the multiple keywords to be parsed from the single varchar field.
I can't think about database BLOBs without being reminded of The Blob.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #21  
Old 09-18-2004, 02:34 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Back on topic ... there is not much to report.

We have updated the search function to use the 'keywords' field when we get around to adding it. We have identified probably all the places in the admincp where it would need to be catered for the great smilie dragon to do her stuff. But we have not actually changed the table to create that field (and I'm talking about the test system only so far).
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #22  
Old 09-19-2004, 06:06 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

Ahem
Livius Drusus; viscousmemories

Go to the test system, post/reply, call up the smilies and search on "flag"

Explain to me how so many results come up.
:giggle:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #23  
Old 09-19-2004, 06:36 PM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: I still know what smilie you searched for last summer

Oh. My. God!!!! That little miracle wouldn't have anything to do with keyword searching, now would it? Oh she's soooooo pretty... My precioussssss...
Reply With Quote
  #24  
Old 09-19-2004, 08:25 PM
JoeP's Avatar
JoeP JoeP is offline
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMXCI
Images: 18
Default Re: I still know what smilie you searched for last summer

You're an admin - go to the smilie manager and see what's hidden in there ...
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #25  
Old 09-19-2004, 08:33 PM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: I still know what smilie you searched for last summer

Holy mother of God. :faint:
Reply With Quote
Reply

  Freethought Forum > The Marketplace > Computers & Technology


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 +1. The time now is 05:05 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Page generated in 0.83866 seconds with 13 queries