test
Viewing 15 posts - 61 through 75 (of 151 total)
  • Author
    Posts
  • rower Developer
    #326357

    if there are more than the default number of categories/section, how do you control which categories appear by default and in what order? similarly how do you control which section appears where by default (top, 2nd, bottom)?
    Thanks

    Saguaros Moderator
    #326509

    At the moment, the categories did not arrange with any condition.

    I think that the simplest solution is arranged them by theirs ordering number.
    Please looking for the function : “[PHP]function loadCategories($sid)[/PHP] ” in the heper.php file and see the sql query in this function:

    [PHP]$query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where;[/PHP]

    and change :

    [PHP]
    $query = “SELECT `id`, `title`, `description`, CASE WHEN CHAR_LENGTH(`alias`) THEN CONCAT_WS(“:”, `id`, `alias`) ELSE `id` END as `slug` FROM `#__categories` s WHERE published = 1 and section=” . ( int ) $sid . $where. ” ORDER BY s.ordering “;
    [/PHP]

    rower Developer
    #326544

    Thanks, that worked perfectly for the categories. Is there any way to do the same thing with the sections? I still can’t control which section appears first.

    rower Developer
    #326559

    Also, is there any way to have one of the sections display 3 intro news items from just 1 category while the other sections display 3 categories with just 1 intro news item each? I don’t know much php but I’d imagine since I have the category id for the section that i just want to have 1 category with three news items, i could just add an if…else… statement somewhere in the helper.php file? maybe in the _load() or the loadCategories($sid)?
    Thanks

    rower Developer
    #326736

    So I was able to get one of the sections to display just one category and have it span all three columns. For some reason i’m not able to control the number of links individually for those though. I thought it would have been controlled by $linkitems or $s_linkitems but neither seem to do the trick for me. Any thoughts? As for now I really would just like to be able to control which section displays first so I can have this “headlines” section at the top of the JaNews2 module. Any ideas how to do this?
    Thanks!

    Saguaros Moderator
    #326810

    I think that you’ll install the ja news module on the same postion of the ja news2 and try to configuration as expected, and make css for this module.

    rower Developer
    #326835

    There’s no way to simply change the end of the function loadSections(); like we did with the function loadCategories($sid);?

    micrantha Friend
    #326904

    Hello rower,

    As to Section Order, maybe in this post you can find what you are looking for

    Succes,
    Micrantha

    cre8 Friend
    #327008

    Hi!

    Is there a way that when you use the max char option of the Ja News2 module to cut the text without messing with the sentense? For example I have a text:

    That day at the park was the best we ev…

    should be:

    That day at the park was the best we ever…

    Saguaros Moderator
    #327228

    HEllo guy

    Here is the solution to resolve your problem:

    Please open the file /modules/mod_janews2/helper.php and find a code at line: 479 and 480

    [PHP]
    $arr [$i] = mb_substr ( $t, 0, $length );
    $length -= mb_strlen ( $arr [$i] );
    [/PHP]
    you replace :

    [PHP]
    $org = mb_substr ( $t, 0, $length );
    $arr[$i] = (preg_match(‘/^(.*)W.*$/’,mb_substr($t, 0, $length+1), $matches) ? $matches[1] : $org);
    $length -= mb_strlen ( $org );
    [/PHP]

    Good luck

    Saguaros Moderator
    #327229

    Hello all
    If you have any problem or any question, please create a new thread post in this forum
    http://www.joomlart.com/forums/forum/ja-news-pro-module/

    Thanks for all.

    cre8 Friend
    #327596

    Thanks for the quick reply!

    Although this new piece of code works in English in any other UTF8 language it doesn’t… I have Greek at my site and not only it doesn’t work, it shows some artifacts () aswell.

    Is there a way to make it multilingual compatible?

    PS: I can’t see the Ja_News2 forum posts because maybe I have the JATC Standard Membership. So I can’t post there…

    mainstay Friend
    #327605

    is anyone having trouble not being able to see all their categories on the frontpage? I only have one category on the frontpage http://centerresourcecommunity.info and want all of my categories to show. Can anyone please help me!

    Saguaros Moderator
    #327731

    Dear cre8!

    That’s the special problem, please give the FTP account and the administrator account via PM or submit a ticket. i would like to have a closer look on the issue

    Thanks

    regme111 Friend
    #327925

    I have a question – how can I put different sections in the ja news 2 modul. I`ll give you an example because its hard to explain. So lets see the demo template http://template15.joomlart.com/ja_teline_iii/

    I want to put for example sections “World”, “Technology” and “Sport” at the place of “Europe”, “US Politics” and “Middle east” and rename the text in the modul from “World” to “News”. Then to post another News2 Module called “News 2” at the place of “Technology” (in the demo template) and put “Travel”, “Entertainment” and “Health” sections in the place of “Personal Tech”, “Business Tech” and “Space”.

    In other words I want the JA News2 module to be like Teline II but with 3 columns (like Teline III) not with 2 columns like the original Teline II.

    And how to remove the edit menu on top of the “JA news2” module so no edit to be possible from the users?

    Thanx 🙂

Viewing 15 posts - 61 through 75 (of 151 total)

This topic contains 151 replies, has 74 voices, and was last updated by  ceeyee 13 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum