View Full Version : 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 (http://www.freethought-forum.com/forum/member.php?u=2). 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
... 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:
livius drusus
09-16-2004, 02:57 PM
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.
viscousmemories
09-16-2004, 04:38 PM
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.
livius drusus
09-16-2004, 04:42 PM
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.
Scotty
09-16-2004, 06:26 PM
... 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
... 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.
viscousmemories
09-16-2004, 07:59 PM
I think WinSCP (http://winscp.sourceforge.net/eng/) may be the droid you're looking for.
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.)
Scotty
09-16-2004, 09:27 PM
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
viscousmemories
09-16-2004, 10:04 PM
Um. That would be me he's gonna be annoying now. Thanks Scottie. :madrazz:
pescifish
09-17-2004, 01:34 AM
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.
livius drusus
09-17-2004, 01:36 AM
Yeah!
/me giggles ignorantly
Scotty
09-17-2004, 01:53 AM
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
viscousmemories
09-17-2004, 02:51 AM
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:
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):
'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?
pescifish
09-18-2004, 03:08 AM
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. 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!)
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.
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 (http://uk.imdb.com/title/tt0051418/).
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).
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:
livius drusus
09-19-2004, 06:36 PM
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...
You're an admin - go to the smilie manager and see what's hidden in there ...
livius drusus
09-19-2004, 08:33 PM
Holy mother of God. :faint:
:faint:Is she new? (The smilie not the holy mother of god, of course.) Totally wonderful! :faint: :faint: :faint:
livius drusus
09-19-2004, 09:25 PM
She's definitely recent, like from one of the past 3 updates or so. I love her little feet. :giggle:
In other news, vm's got the new multiple keyword search and random smilie feature installed here and it's working like a beautiful, beautiful charm. The only thing that's a tad counterintuitive is that the 10 random smilies picks from any cat nomatter what cat you've selected. I only noticed this by mistake cause I forgot to reset the cat field to Any when I went from testing the keyword search to picking the randoms. I don't know if it's worth paying any attention to at all, but just fyi.
Wonderful work, Joe and vm. Thank you.
:bow:
I intended the random smilie feature to work that way, to get people digging into the darker recesses of the hoard. But it can work any way we like. For example, it might be more logical to have it as a separate button than an option under search type. Everyone needs to comment!
:edit:
For example, here are some random ones that appealed:
:takepic: :snail: :parachute: :sleigh:
Ymir's blood
09-19-2004, 11:02 PM
:pointless: Woohoo! my pointless contribution was the first ever random smilie that was given to me. (cast your smilies upon the forum and they will return to you in seven days...)
:gallop: :footballhelmet: :apresent: :lion: :irked: :madrant: <- like this one :relieved: :seestars:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.