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

I'm not using all the fields right now

Home: Plugins Support - Paid: Multi_Categories:

 

 


jesus
Novice

Karma: -0 / +0

May 5, 2004, 12:48 PM

Post #1 of 12 (8963 views)
Shortcut

Send jesus a wink
I'm not using all the fields right now Can't Post

Hi Andy Pugdog :)

Just wondering as i'm trying to add multiple categories at the same time, but i'm not using all the fields right now, so trying to adding the categories like this:

Aquariums:::Birds::: ::: ::: ::: ::: :::animals.html

gives me an error and using this format:

Aquariums:::Birds:::animals.html

write the template name under the category description, i was also trying to use a blank character between ::: and doesn't work.

Any clues?.. thanks in advance

Jesus


jesus
Novice

Karma: -0 / +0

May 5, 2004, 8:30 PM

Post #2 of 12 (8961 views)
Shortcut

Send jesus a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

I'm still looking and i'm getting closer to make it work. I install the ppc plugin for Alex (mycgiscripts) and i think that move some stuff on the categories db.

However the only think i missing when i add a category it's the template name, any idea why?

Thanks in advance, and hopefully this plugins integration will work fine ;)

Jesus

Also... to add a sub category like this one:

Animals:Dogs:Recreation and Parks

it must be like:
Recreation and Parks:::Animals:Dogs:::::::::... ?


(This post was edited by jesus on May 5, 2004, 8:38 PM)



Andy
Enthusiast

Karma: -1 / +7


May 6, 2004, 12:36 AM

Post #3 of 12 (8959 views)
Shortcut

Send Andy a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

Hi.


Quote
I install the ppc plugin for Alex (mycgiscripts) and i think that move some stuff on the categories db.


:(

Which version of Multi_Categories are you using? Version 2 is available from the download area now.

Also, it should be ::: seperating the values, i.e.

Animals:::Dogs:::Recreation_and_Parks

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

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


jesus
Novice

Karma: -0 / +0

May 6, 2004, 8:59 AM

Post #4 of 12 (8957 views)
Shortcut

Send jesus a wink
Re: [Andy] I'm not using all the fields right now [In reply to] Can't Post

:P

I'm suing version 1. To upgrade i just need to delete the current one and install the new one?

Jesus


Andy
Enthusiast

Karma: -1 / +7


May 6, 2004, 9:03 AM

Post #5 of 12 (8956 views)
Shortcut

Send Andy a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post


Quote
To upgrade i just need to delete the current one and install the new one?


Yup :)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

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


jesus
Novice

Karma: -0 / +0

May 6, 2004, 9:05 AM

Post #6 of 12 (8955 views)
Shortcut

Send jesus a wink
Re: [Andy] I'm not using all the fields right now [In reply to] Can't Post

Thanks, let me try it ;)


jesus
Novice

Karma: -0 / +0

May 6, 2004, 9:09 AM

Post #7 of 12 (8954 views)
Shortcut

Send jesus a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

I'll need to add category templates for each of my categories, i'm still able to do it with this version, right?

Jesus


jesus
Novice

Karma: -0 / +0

May 6, 2004, 9:23 AM

Post #8 of 12 (8948 views)
Shortcut

Send jesus a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

Well, i'm able to add categories, but i'm not able to add it with category templates :(

Is there a way to add it that way?

Jesus


Andy
Enthusiast

Karma: -1 / +7


May 6, 2004, 9:56 AM

Post #9 of 12 (8944 views)
Shortcut

Send Andy a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

Hi. Unfortunatly you can't do this by default, but a simple modification will let you add template sets for categories;

In /admin/Plugins/Multi_Categories.pm, replace;


Code
      $DB->table('Category')->update( { Description => $description, Meta_Description => $meta_description, Meta_Keywords => $meta_keywords }, { Full_Name => $cat_name } );


with...


Code
      $DB->table('Category')->update( { Description => $description, Meta_Description => $meta_description, Meta_Keywords => $meta_keywords, Category_Template => $category_template }, { Full_Name => $cat_name } );


...and;


Code
my ($cat_name,$description,$meta_description,$meta_keywords) = split /:::/, $_;


...with;


Code
my ($cat_name,$description,$meta_description,$meta_keywords,$category_template) = split /:::/, $_;


You would then use something like;

/my/full_cat/name:::description:::meta_description:::meta_keywords:::templateset

Let me know how that works for you :)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

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


(This post was edited by Andy on May 6, 2004, 9:57 AM)


jesus
Novice

Karma: -0 / +0

May 6, 2004, 10:18 AM

Post #10 of 12 (8942 views)
Shortcut

Send jesus a wink
Re: [Andy] I'm not using all the fields right now [In reply to] Can't Post

Hi Andy,

I download the file (ASCII), made the changes and then upload the file again (ASCII), i'm getting an Internal Server Error, what can be wrong?

Jesus


Andy
Enthusiast

Karma: -1 / +7


May 6, 2004, 10:22 AM

Post #11 of 12 (8941 views)
Shortcut

Send Andy a wink
Re: [jesus] I'm not using all the fields right now [In reply to] Can't Post

Can you PM me over the .pm file please?

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

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


jesus
Novice

Karma: -0 / +0

May 6, 2004, 2:40 PM

Post #12 of 12 (8935 views)
Shortcut

Send jesus a wink
Re: [Andy] I'm not using all the fields right now [In reply to] Can't Post

Just for the records.... the final code was:

In /admin/Plugins/Multi_Categories.pm, replace;


Code
       $DB->table('Category')->update( { Description => $description, Meta_Description => $meta_description, Meta_Keywords => $meta_keywords }, { Full_Name => $cat_name } );


with...


Code
       $DB->table('Category')->update( { Description => $description, Meta_Description => $meta_description, Meta_Keywords => $meta_keywords, Category_Template => $category_template }, { Full_Name => $cat_name } );


...and;


Code
 my ($cat_name,$description,$meta_description,$meta_keywords) = split /:::/, $_;


...with;


Code
 my ($cat_name,$description,$meta_description,$meta_keywords,$category_template) = split /:::/, $_;  



This it's the code that works. :)

Again, thanks Andy

 
 
 


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