• Resolved lollonemalefico

    (@lollonemalefico)


    As you can see here the alphabetical order is all messed up, whats the problem?

    The code i’m using is this:
    [mctagmap columns="3" hide="no" num_show="3" more="more ยป" toggle="ยซ less" show_empty="no" name_divider="|" tag_count="yes" exclude="Nuove Serie" descriptions="No" width="250" equal="no" manual="" basic ="no" basic_heading="no" show_categories="yes" show_navigation="yes"]

    https://ww.wp.xz.cn/plugins/multi-column-tag-map/

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author tugbucket

    (@tugbucket)

    interesting. Kind of surprised that both I didn’t catch this in testing and that no one has brought it up before. I think I found a fix but before I put it into a release can you do this for me?

    On line ~263 of mctagmap_functions.php, you’ll see
    /* ===== group numbers ===== */

    replace that line with the below:

    foreach ($groups as $key => $value) {
    	if(is_int($key)){
    		$numar = $groups[$key];
    		unset($groups[$key]);
    		$groups[$key] = $numar;
    	}
    }
    /* ===== group numbers ===== */

    Seems I didn’t catch that 0 (zero) throws off the sorting.

    If that works let me know. I’ll have to redo a little of the logic for when numbers are grouped before adding it to the core.

    Thread Starter lollonemalefico

    (@lollonemalefico)

    Done but dont seems to work ๐Ÿ™

    Plugin Author tugbucket

    (@tugbucket)

    Alright, it’s that bracket. Try this out for me:

    foreach ($groups as $key => $value) {
    	if(is_int($key) || preg_match('[\W]', $key)){
    		$numar = $groups[$key];
    		unset($groups[$key]);
    		$groups[$key] = $numar;
    	}
    }
    Thread Starter lollonemalefico

    (@lollonemalefico)

    Done, no effect at all ๐Ÿ™

    Plugin Author tugbucket

    (@tugbucket)

    Hmmm. well it did have an effect. Notice the ‘[‘ is now near the end by the numbers. On my local where I’m trying to replicate the issue, the bracket was being stuck in the middle of the letter like the zero was before and that broke things.

    Let me add more tags and try to replicate it better.

    Plugin Author tugbucket

    (@tugbucket)

    alright, let’s try this: http://pastebin.com/xjiaVx14

    Thread Starter lollonemalefico

    (@lollonemalefico)

    Done still messed up ;(

    Plugin Author tugbucket

    (@tugbucket)

    well hell. Right above the code I’ve been pasting you’ll see:

    ksort($groups);
    change that to:
    ksort($groups, SORT_STRING);

    and give it a whirl.

    Thread Starter lollonemalefico

    (@lollonemalefico)

    Is working! You are the best! Now it just need a way to include/excclude category

    Plugin Author tugbucket

    (@tugbucket)

    sweet.

    For the exclude,

    exclude: A comma seperated, case sensitive list of the tags you do not wish to appear in the lists.

    and it appears your are doing exclude=”Nuove Serie” and I don’t see it in your list of categories so…

    Thread Starter lollonemalefico

    (@lollonemalefico)

    Yea but if i try to exclude more than one, don’t work!

    Thread Starter lollonemalefico

    (@lollonemalefico)

    Btw i set the topic to resolved

    Plugin Author tugbucket

    (@tugbucket)

    It doesn’t? Ono my local, if i do: exclude="Tacos, Bananas" it seems to work fine. What are you trying to exclude that isn’t working?

    Thread Starter lollonemalefico

    (@lollonemalefico)

    I want to exclude some category to show because i use that plugins for make list of the category ^^

    I can set up a demo page if you want to see it in action

    Thread Starter lollonemalefico

    (@lollonemalefico)

    [mctagmap columns="4" hide="no" num_show="3" more="more ยป" toggle="ยซ less" show_empty="no" name_divider="|" tag_count="yes" exclude="Nuove Serie,K Return of Kings,Anitore EX,Hidan no Aria AA,Valkyrie Drive: Mermaid,Dance with Devils,Garo: Guren no Tsuki,Ore ga Ojousama Gakkou ni "Shomin Sample" Toshite Gets Sareta Ken,Shinmai Maou no Testament Burst,Fushigi na Somera-chan,Fushigi na Somera-chan,Sakurako-san no Ashimoto ni wa Shitai ga Umatteiru,Subete ga F ni Naru, descriptions="No" width="250" equal="no" manual="" basic ="no" basic_heading="no" show_categories="yes" show_navigation="yes"]

    http://www.animesubita.info/test-exclude/

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Wrong alphabetical order’ is closed to new replies.