Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Category assignment

Home: Plugins Support - Paid: DMOZ_Wizard:

 

 


Giray
Novice

Karma: -0 / +0

Jul 11, 2005, 3:04 AM

Post #1 of 8 (1537 views)
Shortcut

Send Giray a wink
Category assignment Can't Post

Hi.
First timers.
Before we run the script... can't find details on how the actual import works. Namely:
1. How does one assign links to a given category. We don't want to keep the dmoz hierarchy. We want to, instead, assign links from (say) five dmoz categories, to one of ours.
2. Also, if you import abc/def/ are all the sub categories under /def/ automatically imported.
Thanks.


Andy
Enthusiast

Karma: -1 / +7


Jul 11, 2005, 6:37 AM

Post #2 of 8 (1535 views)
Shortcut

Send Andy a wink
Re: [Giray] Category assignment [In reply to] Can't Post

Hi,


Quote
1. How does one assign links to a given category. We don't want to keep the dmoz hierarchy. We want to, instead, assign links from (say) five dmoz categories, to one of ours.


Mmm.. you could probably do this by assigning a "base" category, and then importing all the links/subcategories from the categories you want to grab from.

TBH, you'd probably be best to import the main categories, and then move/jiggle/delete them around more, to suite your desired directory structure.


Quote
2. Also, if you import abc/def/ are all the sub categories under /def/ automatically imported.
Thanks.


Yup Smile

Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com



Giray
Novice

Karma: -0 / +0

Jul 11, 2005, 9:17 AM

Post #3 of 8 (1531 views)
Shortcut

Send Giray a wink
Re: [Andy] Category assignment [In reply to] Can't Post

Thanks Andy.
On point 2, yes.
On point 1, we'll just have to try. but I'm guessing from what you say that when you import from DMOZ it just slaps the categories in the the directory. I'm not sure how though. Again, will just have to try but the whole dmoz scene is new to both myself and my tech so we're a little lost.
Maybe you can just tell me this so that I can plan better. When we import from dmoz, does it create 'home' level categrories in our own directory. In other words, if I do not have a section called Arts and I import /Arts/ then your plug in will create a top level category called Arts? And if that is the case, is there a way to hide that category from our users until we've reassigned? And just to add to the confusion, if we add dmoz links, and then move them, obviously the plug in won't later be able to update them later? Like I said, I guess we'll just try to get our feet wet... Wink


Andy
Enthusiast

Karma: -1 / +7


Jul 11, 2005, 10:01 AM

Post #4 of 8 (1529 views)
Shortcut

Send Andy a wink
Re: [Giray] Category assignment [In reply to] Can't Post

Hi,


Quote
On point 1, we'll just have to try. but I'm guessing from what you say that when you import from DMOZ it just slaps the categories in the the directory. I'm not sure how though. Again, will just have to try but the whole dmoz scene is new to both myself and my tech so we're a little lost.


Yup, it copies it in the same format. For example, if importing:

Top/Computers and Internet/Internet/Games/, for example.

It would save as Computers and Internet/Internet/Games, and also create the sub-categories that don't exist (i.e "Computers and Internet/Internet/Games" and "Internet/Internet and Computers" and "Internet").


Quote
Maybe you can just tell me this so that I can plan better. When we import from dmoz, does it create 'home' level categrories in our own directory. In other words, if I do not have a section called Arts and I import /Arts/ then your plug in will create a top level category called Arts? And if that is the case, is there a way to hide that category from our users until we've reassigned?


Yup, and nope.. I'm afraid. It would be possible to "hack" the build function to filter those categories out, but searches would still result in those links being found unfortunatly.


Quote
And just to add to the confusion, if we add dmoz links, and then move them, obviously the plug in won't later be able to update them later? Like I said, I guess we'll just try to get our feet wet...


Yup, basically. If you leave it in the same format, but keep re-running the import script, it will only add new links. However, its not advised, because a lot of "crap" still exists in DMOZ, so once you've got it out of your own directory, you don't really wanna keep bringing it back in <G>

Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Giray
Novice

Karma: -0 / +0

Jul 11, 2005, 10:36 AM

Post #5 of 8 (1526 views)
Shortcut

Send Giray a wink
Re: [Andy] Category assignment [In reply to] Can't Post

Thanks for all this. I'm starting to get the idea. My approach is to therefore spend a lot of time choosing the right categories; import, reclassify based on our directory's needs, weed, delete and then leave it at that and feed it with our own staff. Sounds good enough.
So now we'll try our first import. My tech is a little unsure but we'll give it our best shot and revert either with Crazy or with Smile


Giray
Novice

Karma: -0 / +0

Jul 11, 2005, 11:10 PM

Post #6 of 8 (1511 views)
Shortcut

Send Giray a wink
Re: [Giray] Category assignment [In reply to] Can't Post

Help.
As per attachment, I've set up the plugin to run. I chose two upper level categories (for now). And I clicked! The next screen shows me success and (if you've set up cron job, your sit back and relax message). Now what? Should the plugin be downloading from dmoz? I did this twice. First time about twelve hours ago. Then about five hours ago (very early in the AM Wink ) I've checked to see if there was traffic increase or disk space increase and there has not been. Was I supposed to download the dump first? Do I have to fill in the two extra text fields? Thanks for you help Andy (or anyone else who answers!).


(This post was edited by Giray on Jul 11, 2005, 11:12 PM)
Attachments: dmoz setup no success.png (133 KB)


Andy
Enthusiast

Karma: -1 / +7


Jul 12, 2005, 4:42 AM

Post #7 of 8 (1504 views)
Shortcut

Send Andy a wink
Re: [Giray] Category assignment [In reply to] Can't Post

Hi,

You may need to try running it via SSH/Telnet;

cd /path/to/admin/directory
nohup perl dmoz_cron.cgi > log.txt &
tail -n20 -f log.txt

This will then show you how its proceeding (it could be due to you missing the Unicode perl module.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Giray
Novice

Karma: -0 / +0

Jul 12, 2005, 4:47 AM

Post #8 of 8 (1502 views)
Shortcut

Send Giray a wink
Re: [Andy] Category assignment [In reply to] Can't Post

Thanks Andy.
We're moving along. The sysadmin on the server ran the first cron (after installing some mods). It worked fine. Now I tried to run it automatically and could not. I'm waiting for them to run it manually again. (it's night time over there so I'm guessing I'll have to wait). We'll see how it goes...

 
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4