Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7 8

Author Topic: [PACKAGE] Subcategories  (Read 52704 times)

Armen

  • Sr. Member
  • ****
  • Karma: 41
  • Posts: 338
    • http://www.funnydays.ru
Re: [PACKAGE] Subcategories
« Reply #60 on: February 28, 2008, 06:50:49 pm »

haha I type it wrong... I ment to say I just woke up and my brain is not functioning yet...

anyway, good work so far! 

XSS slows down the process that is why (I assume of course) codie has his new function in place:
$url = explode('/', clean(cleanXSS($_GET['category'])));

Codie's function breaks the process down if used here: $url = explode... Only cleanXSS is aplicable here.
« Last Edit: February 28, 2008, 06:53:15 pm by Armen »
Logged
Now ogres, oh, they're much worse. They'll make a suit from your freshly peeled skin. They'll shave your liver, squeeze the jelly from your eyes... Actually, it's quite good on toast.

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #61 on: February 28, 2008, 06:57:05 pm »

Also to note, a few months ago in development I merged an beta version of subcategories and Skidoo's subpages modification.  The result was beautiful.

Index
Category
   Subcategory
      Article
         SubPage

Now add the alpha sections mod to that.....

Section (index)
   Category
      Subcategory
         Article
            SubPage
Section
   Category
      Subcategory
         Article
            SubPage
Logged

Armen

  • Sr. Member
  • ****
  • Karma: 41
  • Posts: 338
    • http://www.funnydays.ru
Re: [PACKAGE] Subcategories
« Reply #62 on: February 28, 2008, 07:04:52 pm »

Concerning subpage mod:

Man! You're reading my mind! That's one of the first ideas that came to my mind when I started testing your mod.


Could you share the resulting snews core file? Just to see, how you did it.

Or I will start developing it by myself, because I'm ready to do this. Have been for some time now = )

I've almost finished improving subpage modification to resemble normal articles (with keywords and stuff) instead of simple pages, but still using subarticles table. Wanna use articles table, but need to add a new column and think it trough, because that would need a LOT of modifications of admin section and core snews behaviour. I think, I'll stick to subarticles table for now.

The problem is - he didn't comment out the changes in the code. So it takes some time to find out where the changes are.
« Last Edit: February 28, 2008, 07:15:50 pm by Armen »
Logged
Now ogres, oh, they're much worse. They'll make a suit from your freshly peeled skin. They'll shave your liver, squeeze the jelly from your eyes... Actually, it's quite good on toast.

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #63 on: February 28, 2008, 07:21:23 pm »

Yes I know I asked him if he could send me a copy of his mod with comments.

How I did it?  I just took his file and added my code in it (duh lol) Let me find it...
Logged

Armen

  • Sr. Member
  • ****
  • Karma: 41
  • Posts: 338
    • http://www.funnydays.ru
Re: [PACKAGE] Subcategories
« Reply #64 on: February 28, 2008, 07:25:56 pm »

Yes I know I asked him if he could send me a copy of his mod with comments.

How I did it?  I just took his file and added my code in it (duh lol) Let me find it...

That's how I was going to to this =) but then decided not to - no use...
I need to know where the changes are, to be sure script is as failsafe and secure as possible.
"Trust, but Verify", as russians say. = )
Logged
Now ogres, oh, they're much worse. They'll make a suit from your freshly peeled skin. They'll shave your liver, squeeze the jelly from your eyes... Actually, it's quite good on toast.

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Re: [PACKAGE] Subcategories
« Reply #65 on: February 29, 2008, 02:03:26 am »

Jason, I've run into a problem with the subCat package. Just downloaded a fresh version of it, and I'm running into the old problem of a) SEF links not being created when creating a new article (SEFs have to be entered manually) and b) none of Preview or Customize fieldsets open onClick, all in Safari/Mac. In fact no fieldset toggles work at all...
Fresh snews.php from the subCat package, fresh db, only the index.php is old but with new functions in place ... it's odd.
I'll do a test with another, non subCat snews installation just to see if there's a difference.
This is on localhost with MySQL 5/PHP 5 if it makes a difference.


Located problem, has nothing to do with subCat or snews.php -- my mistake. (And a silly one at that...)
« Last Edit: February 29, 2008, 02:15:45 am by Fred K (agentsmith) »
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: [PACKAGE] Subcategories
« Reply #66 on: February 29, 2008, 12:58:53 pm »

I have one question.
Assume that this mod is stable, how to add from another sNews all the articles.
My structure for one of my sites is something like this, multiply snews,
snews
snews-html
snews-css

So in snews I change to snews subcut, I donít know how to add all articles from snews, snews-html, and snews-css.
Any idea  ::)
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #67 on: February 29, 2008, 04:22:34 pm »

I have one question.
Assume that this mod is stable, how to add from another sNews all the articles.
My structure for one of my sites is something like this, multiply snews,
snews
snews-html
snews-css

So in snews I change to snews subcut, I don’t know how to add all articles from snews, snews-html, and snews-css.
Any idea  ::)


Your assumption is correct. The only thing changes are in snews.php and the database.

The articles and categories tables gets a new column.

Not understanding how your site is set up.
snews, snews-html, and snews-css  You mean snews.php, index.php, style.css?
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: [PACKAGE] Subcategories
« Reply #68 on: February 29, 2008, 05:11:01 pm »

To make a pseudo sub categories
I install a root snews and after I install a second which I name it html and another one css.
So my structure looks like this
snews, root site, example.com
when I go to html I have example.com/html/
and when I go to css example.com/css
Every folder is a separate snews with different snews and index

Now with this most wanted mod I have to put all those articles from different snews to one, subcut, but how I do this?? 
« Last Edit: February 29, 2008, 05:12:34 pm by sibas »
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [PACKAGE] Subcategories
« Reply #69 on: February 29, 2008, 05:34:36 pm »

To make a pseudo sub categories
I install a root snews and after I install a second which I name it html and another one css.
So my structure looks like this
snews, root site, example.com
when I go to html I have example.com/html/
and when I go to css example.com/css
Every folder is a separate snews with different snews and index
Now with this most wanted mod I have to put all those articles from different snews to one, subcut, but how I do this?? 

What you are showing us does not make sense... structurally speaking that is.
You can run more than one snews install, each in separate folders within the domain root... but why would you name the folders as html and css. Why not name them something like... install1, install2, install3... and so on?

In any case, if each installation has its own snews.php (engine) file, and you want all of them to have the SubCategories funtionality, then you would need to replace all category-only engine files with the new one that has the subcategories modifications in it... and each of the installations would also need the articles & categories tables modified with the new rows added... within their respective databases.

I have not tried adding the Subcategories snews.php file and database changes to an existing database that has lots of articles already in it. I imagine that if you did... you would then need to edit every article in order to re-assign it within the proper category or subcategory to give them their proper SEF titles... since they would need to be different than they were beforehand.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: [PACKAGE] Subcategories
« Reply #70 on: February 29, 2008, 06:29:08 pm »

Why not name them something like... install1, install2, install3... and so on?
because i want to have example.com/css, example.com/html, anyway this is not our point  ;)

So how i understand is not a easy task to put all those articles to subcut.
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Re: [PACKAGE] Subcategories
« Reply #71 on: February 29, 2008, 07:23:43 pm »

Minor eyesore in the subCat snews.php: The "Add subcategory" legend has redundant paranthesiseses, like this:
Quote
Add subcategory ()

Oh, wait, it's not picking up $name, that's the problem. Line 1362:
Quote
$frm_add_edit = empty($sub_cat) ? l('add_category') : l('add_subcategory').' ('.$name.')';

Is that special for my file or do others see that as well?  ???
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #72 on: February 29, 2008, 07:32:17 pm »

Check the bugs on the first post.. it is fixed
Logged

Fred K

  • Still trying to learn stuff
  • ULTIMATE member
  • ******
  • Karma: 130
  • Posts: 2728
    • Personal
Re: [PACKAGE] Subcategories
« Reply #73 on: February 29, 2008, 08:06:09 pm »

Check the bugs on the first post.. it is fixed

Ah, ok ... I downloaded the file on Feb 28 and since the first post was edited Feb 26 so I just assumed the fixes were in the distro. No worries, I'll edit the one I have (I know your plate is kinda full already...)
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
Re: [PACKAGE] Subcategories
« Reply #74 on: March 02, 2008, 03:56:32 pm »

NOTICE: POSTS REMOVED
I've removed posts by Armen, EQ and I as were related to a performance solution posted by Armen. These were removed at Armen's request. Armen may post his suggested performance solution at a later date elsewhere.  :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU
Pages: 1 ... 3 4 [5] 6 7 8