Jun
01
2010
2

Windows-error op Afrikaanse geldautomaat

Daarom kan  je hier (Pretoria, Zuid-Afrika) geen geld opnemen! Pinautomaten die Windows draaien…

Written by Raween in: Troep | Tags: , ,
May
17
2010
2

Hack: Multi-groups in Joomla and Kunena with NOIXACL

After a few weeks of searching, trying and debugging how to apply multi-groups to users in Joomla and in Kunena (= a forum for Joomla), I found the solution for fixing this!

After a Google-search, I found this helpful topic, but after trying, it wasn’t that good. You can only apply 2 groups to your users. Not 3 or more!

So, let’s edit the suggested code. Here’s the final code for class.kunena.php (line 913-972):

function getAllowedForums($uid = 0, $gid = 0, &$kunena_acl) {
$kunena_db = &JFactory::getDBO();
/*function _has_rights(&$kunena_acl, $gid, $access, $recurse) {

if ($gid == $access) return 1;

if ($recurse) {
$childs = $kunena_acl->get_group_children($access, 'ARO', 'RECURSE');

return (is_array($childs) and in_array($gid, $childs));
}

return 0;
}*/
function _has_rights($uid, &$kunena_acl, $gid, $access, $recurse) {
$kunena_db = &JFactory::getDBO();
$query = "SELECT id_group from #__noixacl_multigroups where id_user='{$uid}'";
$kunena_db->setQuery($query);
$rows = $kunena_db->loadObjectList();

if($rows){

foreach($rows as $row) {

if ($row->id_group == $access) return 1;
$recurse = array();

if ($recurse) {
$childs = $kunena_acl->get_group_children($access, 'ARO', 'RECURSE');

return (is_array($childs) and in_array($row->id_group, $childs));
}
}
}

if ($gid== $access) return 1;

if ($recurse) {
$childs = $kunena_acl->get_group_children($access, 'ARO', 'RECURSE');

return (is_array($childs) and in_array($gid, $childs));
}

return 0;
}
$catlist = '';
$query = "SELECT c.id, c.pub_access, c.pub_recurse, c.admin_access, c.admin_recurse, c.moderated"
. ",(m.userid IS NOT NULL) AS ismod FROM #__fb_categories c"
. " LEFT JOIN #__fb_moderation m ON c.id=m.catid AND m.userid='{$uid}' WHERE published='1'";
$kunena_db->setQuery($query);
$rows = $kunena_db->loadObjectList();
check_dberror("Unable to load category list.");

if ($rows) {

foreach($rows as $row) {

if (($gid == 24 || $gid == 25) or
($row->moderated and $row->ismod) or
($row->pub_access == 0) or
($row->pub_access == -1 and $uid > 0) or
/*($row->pub_access > 0 and _has_rights($kunena_acl, $gid, $row->pub_access, $row->pub_recurse)) or
($row->admin_access > 0 and _has_rights($kunena_acl, $gid, $row->admin_access, $row->admin_recurse))*/
($row->pub_access > 0 and _has_rights($uid, $kunena_acl, $gid, $row->pub_access, $row->pub_recurse)) or
($row->admin_access > 0 and _has_rights($uid, $kunena_acl, $gid, $row->admin_access, $row->admin_recurse))
) $catlist .= (($catlist == '')?'':',').$row->id;
}
}

return $catlist;
}
} // end of class

After this, you should clear the user-cache of the Kunena forum in the settings:

Clear user-cache in Kunena

To bad nor Joomla 1.5.15, nor Kunena or nor the combination NOIXACL-Kunena-Joomla can do this automatically… Hopefully things will change with Joomla 1.6!

Written by Raween in: Tech | Tags: , , , ,
Feb
15
2010
0

Ik heb het laatste exemplaar!

Nergens meer in een fysieke winkel in Nederland is dit boek meer te koop. Ik heb net het laatste exemplaar gekocht bij de Selexyz (Rotterdam). Hup in de koffer ermee!
Image posted by MobyPicture.com
- Posted using MobyPicture.com

Written by mobypic in: Apple, Raween | Tags: , ,
Feb
02
2010
0

iTunes 9.0.3 fixt ’slimme afspeellijsten’ sync bug

Joepie! De synchronisatie tussen mijn iPhone en iTunes werkt weer helemaal 100%

De bug, die ik eerder melde, dat sommige slimme afspeellijsten van iTunes niet overgezet konden worden naar mijn iPhone, is opgelost!

Written by Raween in: Apple | Tags:
Jan
28
2010
3

iPad, the day after

De Apple iPad, wie hier nog niet van gehoord, gezien of gelezen heeft leeft bijna onder een steen. Wat het apparaatje allemaal kan ga ik niet vertellen, dat kan je mooi lezen op de Apple iPad site.

Wat het apparaatje allemaal NIET kan, ga ik hier ook niet vertellen, dat staat al lang en breed beschreven op Gizmodo.

Wat vind jij van de Apple iPad?

De Apple iPad is onwijs...

  • overdreven... (75%, 6 Votes)
  • te gek! (13%, 1 Votes)
  • leuk! (13%, 1 Votes)
  • de bom! (-1%, 0 Votes)

Aantal stemmers: 8

Loading ... Loading ...

(more…)

Written by Raween in: Apple | Tags: ,
Jan
20
2010
0

Go GSK!

Een pluim voor GlaxoSmithKline voor het patentvrij verkopen van geneesmiddelen tegen verwaarloosde ziekten, zoals malaria.

Hopelijk volgen snel andere farmaceutische bedrijven met deze vrijwillige  donatie voor de aller armsten!

Nu de HIV-remmers nog, dan ben ik helemaal blij :-) .

PS: Er wordt nog genoeg verdiend met anti-hypertensiva, anti-diabetica en andere geneesmiddelen, dus wees maar niet bang dat de bedrijven nu failliet gaan ;)

Written by Raween in: Farmacie, Nieuws | Tags: , ,
Dec
30
2009
0

3D here we come!

We are ready for the next revolution!
Watching Avatar, 3D all over the place!
Image posted by MobyPicture.com
- Posted using MobyPicture.com

Written by mobypic in: Troep |
Dec
21
2009
0

Raween en zijn grote vriend: the snowman

Mocht het filmpje hierboven  niet zichtbaar zijn, klik dan hier: Sneeuwfilmpje

Zulk mooi weer moet je natuurlijk vastleggen. Gelijk een goed excuus om iMovie 09 uit te proberen.

PS: Mensen in Oostenrijk lachen natuurlijk om die paar centimeter sneeuw die gevallen is hierzo :-P

Written by Raween in: Raween | Tags: , ,
Dec
20
2009
0

‘Slimme afspeellijsten’ in iTunes 9 syncen niet naar iPhone…

iTunes sync overzicht

iTunes sync overzicht (klik voor een groter formaat)

iTunes 9 faalt! Ik wil al mijn slimme afspeellijst Goede Kerstmuziek syncen met mijn iPhone, maar helaas… De slimme afspeellijst verschijnt niet in mijn sync-menu…

Diverse workarounds werken helaas ook niet…

#fail ( ;-) )

Written by Raween in: Apple, Tech, Troep | Tags: , , ,
Dec
18
2009
0

“Het is zoals het is”…

… waren de laatste woorden van Philip Freriks (zoals hijzelf al zei, woorden van Walter Cronkite). De man was voor mij een held; een soort de Steve Jobs van de NOS. Hij bracht vol overtuiging, passie en vakmanschap het nieuws. Hoe makkelijk dat ook mag klinken.

Hieronder een interview met Freriks (NOS-chat 18-12-2009):

Het is zoals het is.

Written by Raween in: Nieuws | Tags: ,

Powered by WordPress. Theme: TheBuckmaker