Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [UNDER DEV] Articles order, Categories order and stuff.  (Read 8187 times)

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« on: April 20, 2006, 09:19:07 PM »

This is a mod under development.
I need you opinions and feedback on this.

The purpose of this is to be able to change the order of the articles inside a category or the order of the categories as easy as it can get...
This is the main installation for the test.
http://snews.noodles.gr/sNews14_new-order/
the username/pass is test/test

Luka generusly gave me a copy of solucija cause I was lazy to make demo articles! :P

now go here:
http://snews.noodles.gr/sNews14_new-order/dd.php
And play a bit! ;)

once you click update, you can go to the site above and check out the changes you've made... ^_^
articles sort by the order you select...
you can move an article from one category to another with no problem! :>

Please let me know what you think...


ps. This uses heavy javascript usage but will be extremely easy to install... (3-4 lines! ;)
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #1 on: April 20, 2006, 09:30:56 PM »

you can try to make a new category, add articles and see what happens! :>
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

Shaun Aneiros

  • Jr. Member
  • **
  • Karma: 2
  • Posts: 98
    • http://www.poorpeoplesparty.org
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #2 on: April 20, 2006, 11:47:31 PM »

Wow that's cool!!!!
Logged
Why does my daughter like me to pose for pictures with my angry face?

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #3 on: April 21, 2006, 02:16:08 AM »

@Analyzex:
Woooow!! I'm playing with it like a new toy :P
Works really good...
I've created a category 'bramsyuur' ;D and move into it alot of articles and reverse the order... it's really running well.
Great tool, great addition for the next version...
Thanks for your work!
bram.

EDITED: Only one question, the comments are not working and if I click on the article title and in the 'read more' link don't work in any article, don't show anything... it's a demo reason or a problem?
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol

gomisan

  • Full Member
  • ***
  • Karma: 0
  • Posts: 194
    • http://fish-cam.net/
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #4 on: April 21, 2006, 04:31:22 AM »

yup, artuicles seem broken ... getting mysql errors, but the order changing bit really works, I love it.

It's definately soemthing I'd like to see implemented, though I'd liek to see it in the 'edit category' featre. So I click edit category, and I can change not only the category name etc, but the order of the articles within it. Just seems to make smore sense than having it as a seperate admin function.

Of course that may not be as easy to do.

Also, are you planning on being able to change the category order too?
Logged
Check out my sNews powered Tropical Fishtank site, live Fish-Cam !!

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #5 on: April 21, 2006, 08:25:26 AM »

hehe yeah I uploaded a file a was messing with by mistake! ^_^ hehe! - fixed now! :P
sorry... ;)

The snews.php has ony these three lines changed:
Code: [Select]
$query = "SELECT * FROM " .s('prefix'). "articles WHERE position = 1 AND published = 1 AND category = $use_cat_id ORDER BY `order` ASC LIMIT $article_limit";
Code: [Select]
$query = "SELECT * FROM " .s('prefix'). "articles WHERE position = 1 AND published = 1 ORDER BY `order` ASC LIMIT $article_limit";
Code: [Select]
$query = "SELECT * FROM " .s('prefix'). "articles WHERE position = 1 AND published = 1 AND category = $use_cat_id ORDER BY `order` ASC LIMIT $article_limit";
nothing else! :)
Due to the nature of the mod there is a problem.
The javascript used for this is around 18kb just for moving around articles and categories...
So most likely this will be a mod and not something intergrated on a release!
://

But, hopefully you will just need to download 2 files, put them with snews and change the article sorting in the asmin panel to 'ordered' or something like this...
and everything else will be taken care of! :)

We'll see how this goes...
I'm fixing the categories order right now and trying to minimize the js...
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #6 on: April 21, 2006, 08:52:34 AM »

Ok, category sorting's ready! ^_^

Category sorting:
http://snews.noodles.gr/sNews14_new-order/art_sorting.php
Article sorting:
http://snews.noodles.gr/sNews14_new-order/cat_sorting.php

you can change what you've changed here:
http://snews.noodles.gr/sNews14_new-order/
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

gomisan

  • Full Member
  • ***
  • Karma: 0
  • Posts: 194
    • http://fish-cam.net/
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #7 on: April 21, 2006, 09:13:37 AM »

LOL .. both your links point to the same page :)

try 'cat_sorting' ... what a a guess.

Logged
Check out my sNews powered Tropical Fishtank site, live Fish-Cam !!

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #8 on: April 21, 2006, 09:25:35 AM »

hehe I'm stupid - fixed - tnx! :P
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

Vorsoron

  • Newbie
  • *
  • Karma: 0
  • Posts: 25
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #9 on: May 05, 2006, 02:46:13 PM »

Sorry if I sound stupid but where exactly can I get this mod?
Logged

George Antoniadis

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 479
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #10 on: May 05, 2006, 09:24:36 PM »

This is a mod under development...
If you are interested in testing it please contact me! :)
Logged
How I feel like I'm starless, I'm ready to fade now.
And how I feel like I'm starless, I'm hopeless and greyed out.

centered

  • Guest
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #11 on: June 08, 2007, 10:04:47 PM »

analyzerx ,  do you stil have a copy of this mod somewhere I can have/take a peek at?
Logged

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
[UNDER DEV] Articles order, Categories order and stuff.
« Reply #12 on: June 09, 2007, 03:20:44 AM »

Haven't seen analyzerx around these parts for some time.
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future