MaMo Net



#1 13.11.2009, 18:19
Kleos Abwesend
Mitglied
Dabei seit: 21.05.2009
Beiträge: 30


Betreff: Subcategories edition
Hi,

I have tested this in both local and online installations, so I think it could be a bug; I have not been able to edit a subcategory (a subforum category). In Admin Control Panel > Manage categories and forums, when I click "edit this category" I write the new name and click the "add" button but nothing happens. No errors are displayed, I see the "category successfully edited" screen. The name is still the old one.

I had to delete that subcategory and create it again.

This happens only with subcategories, I edited main categories and it worked.
↑  ↓

#2 13.11.2009, 23:23
MaMo Abwesend
Administrator
Dabei seit: 06.04.2004
Beiträge: 2.675


Betreff: Re: Subcategories edition
Thank you for this information. I haven't tried it yet, but I think this is a bug and wrote a ticket in the bugtracker (#361). I am currently fixing all the bugs in 0.8 Gold so it will be included in 0.8.1 and maybe I'll post the solution here. Smiling

So long
MaMo
Matthias M.
=> Support nur per Forum - dann haben alle etwas davon!
↑  ↓

#3 17.11.2009, 21:39
MaMo Abwesend
Administrator
Dabei seit: 06.04.2004
Beiträge: 2.675


Betreff: Re: Subcategories edition
Hi,

I tried to reproduce this, but it works for me. I tried it in the demo forums, can you reproduce it there?

Regards
MaMo
Matthias M.
=> Support nur per Forum - dann haben alle etwas davon!
↑  ↓

#4 17.11.2009, 22:55
Kleos Abwesend
Mitglied
Dabei seit: 21.05.2009
Beiträge: 30


Betreff: Re: Subcategories edition
I did not find demo usr/pwd. I checked again today, but still the same. I can set an admin for you to check online if you want.
Dieser Beitrag wurde 1 mal editiert, das letzte Mal am 17.11.2009, 23:00 von Kleos. ↑  ↓

#5 17.11.2009, 23:08
MaMo Abwesend
Administrator
Dabei seit: 06.04.2004
Beiträge: 2.675


Betreff: Re: Subcategories edition
Admin data for the demo forums are Admin/Admin.
Would be good to have an admin account on your forums...
Matthias M.
=> Support nur per Forum - dann haben alle etwas davon!
↑  ↓

#6 17.11.2009, 23:39
MaMo Abwesend
Administrator
Dabei seit: 06.04.2004
Beiträge: 2.675


Betreff: Re: Subcategories edition
I just read through viscacha.es, wow, I am really impressed by all your work, we even have a Spanish Wikipedia page. As I can see we have a growing Spanish community. It's good to see that and now I will set the Spanish integration to a higher priority.
Speak to you soon...
Matthias M.
=> Support nur per Forum - dann haben alle etwas davon!
↑  ↓

#7 18.11.2009, 11:27
Kleos Abwesend
Mitglied
Dabei seit: 21.05.2009
Beiträge: 30


Betreff: Re: Subcategories edition
Zitat von MaMo:
I just read through viscacha.es, wow, I am really impressed by all your work
I really appreciate your words. There are still very few active members, but it may be a start.
Zitat von MaMo:
we even have a Spanish Wikipedia page.
Yeah, someone thought that would make more people know about Viscacha Wink

Back to topic; I tried to reproduce the error and it works in your demo.
This is so strange... I have tested this in two different viscacha installations online, and even in a new fresh local viscacha 0.8 (On Apache 2.2.13,PHP 5.3.0,MySQL 5.1.37) and have the same problem in all of them. I must have missed something. I made an admin account for you to check it (see PM).
↑  ↓

#8 18.11.2009, 19:00
MaMo Abwesend
Administrator
Dabei seit: 06.04.2004
Beiträge: 2.675


Betreff: Re: Subcategories edition
Hi,

thank you for the admin account. I tested the behaviour and found the bug.
Here is the fix for admin/forums.php:
Find the follwing code around line 1435
DownloadPHP-Quelltext:
  1.                 foreach ($parents as $id => $p_arr) {
  2.                         array_shift($p_arr);
  3.                         if (in_array($row['parent'], $p_arr)) {
  4.                                 $subs[] = $id;
  5.                         }
  6.                 }
and replace the code with
DownloadPHP-Quelltext:
  1.                 foreach ($parents as $p_id => $p_arr) {
  2.                         array_shift($p_arr);
  3.                         if (in_array($row['parent'], $p_arr)) {
  4.                                 $subs[] = $p_id;
  5.                         }
  6.                 }

Regards
MaMo

PS: Wikipedia deleted my German article Disappointed
Matthias M.
=> Support nur per Forum - dann haben alle etwas davon!
↑  ↓

#9 18.11.2009, 19:31
Kleos Abwesend
Mitglied
Dabei seit: 21.05.2009
Beiträge: 30


Betreff: Re: Subcategories edition
Thanks! I have just applied the fix and works perfect.
↑  ↓

Seiten (1): 1

Alle Zeitangaben in GMT +01:00. Aktuelle Uhrzeit: 02:12.